You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

How can I manipulate Long char with PeopleCode.

2 replies [Last post]
ChiDONEt's picture
User offline. Last seen 3 years 3 weeks ago. Offline
Joined: 09/24/2008
Posts: 6

I have a field name "BigText" with type long with length 0 ( for unlimited chars) on record MyPrueba, and I have a page where I use a Long Edit Box, on the same record MyPrueba I have a field named "PasteInfo". I copy a lot of text from excel to field "BigText" and I have a PushButtom "PasteInfo" How I do if I want to filter the text, its to say eliminate the characters and only left digits. I only want to assign to a variable but I'm not get the value. Note I want to filter before save.

Example:
On field pushButtom on FieldChange I have the following code:

REM &Cadproceso = GetField();
&Cadproceso = Myprueba.BigText.value;
&Longcad = Len(&Cadproceso);
MessageBox(0, "", 0, 0, "The text is " | &Cadproceso | " And the lenght is " | &Longcad );

or...

If I can to get the value from htmlarea and after assign to longChar. I am trying with the following, But I dont get the value:
Local string &DQ;

&DQ = Char(34);

&CodHtml = &CodHtml | "" | Char(10);
&CodHtml = &CodHtml | "function Test(element1,element2)" | Char(10) | "{" | Char(10);
&CodHtml = &CodHtml | "var text1 = document.getElementById(element1); ";
&CodHtml = &CodHtml | "var text2 = document.getElementById(element2); ";
&CodHtml = &CodHtml | "text2.value = text1.value; }";
&sHTML = &sHTML | "" | Char(10);

&sHTML = &sHTML | " ";
GM_PRUEBATRANSF.GM_CODHTML = &sHTML;
MessageBox(0, "", 0, 0, "La cadena es " | GM_PRUEBATRANSF.GM_LISTADEMPLEADOS);

Lepa's picture
User offline. Last seen 5 days 11 hours ago. Offline
Joined: 06/23/2008
Posts: 570
Re: How can I manipulate Long char with PeopleCode.

Can you give us an example? for example present to us a sample text that is being copied over and how do you want it to be after striping the unwanted characters.

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

ChiDONEt's picture
User offline. Last seen 3 years 3 weeks ago. Offline
Joined: 09/24/2008
Posts: 6
Re: How can I manipulate Long char with PeopleCode.

Please forget, I find the error. I was have enabled deferred process.

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
The question below is to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.