Hi,I want to read the Static Text inside any form of databse through program. How come i can achieve that? Using any tools its easy. But if i want to implement the same thing in my program then what is the approach i should follow.
Eg> Name :
Roll : <Field>
now supose there is a form with two field one is folloing after a static text Name : and another one is following static text Roll.
I have gone through almost all the classes but have not able to find any suitable one -using which i can read those Static Text Or caption of any Action.
Any suggestion will be heartedly appretiated in advance.
Regards,
Raju Saha
Subject: how to Read the static text inside any form
On a form (which is different than a document), the “static text” you are describing is rich text inside the $Body field. Given this, you have a few choices:
You can get the form, get the UNID, open the form as a document (using GetDocumentByUNID), then get the $Body field as a NotesRIchTextItem and use the NotesRichText classes to get the text.
Or, you can render the whole form and document together using RenderToRTItem and then use the NotesRichText classes to navigate to the text.
Or, you can dump the form to DXL and parse the XML records to find the static text.
Or, you can use a third party product such as our Midas Rich Text LSX which will let you access the form and the text fairly simply.
I think I’d start with the first or second method. The first has the advantage that it is more clear what is static and what is not.
Subject: RE: how to Read the static text inside any form
thanks ben. I have never tried to access the $ body field and even it has n ot apeared in my mind. but now i m sure it is possible through this. thanks a lots. i have tried through dxl and design synopsis document and later i decided to implement those at last if there is no way. thanks a lots. Can u tell me about that how come i can search inside the program code of other database using the program. i need to implement the search inside the script of any action or event.
Subject: how to Read the static text inside any form
You could change your static text to a computed field. Maybe you have to play with some other attibutes (like no border and the colors) to mimic a static field.
Subject: RE: how to Read the static text inside any form
Hi rob,I am not trying to give lookings to a field to make it static. I am thinking to read the static text those basically we called “Label” or “caption” through LS. Every forms have normally the equal no of static text which describe the data of the following field. And in this case i m trying to read that static text. Or u can say i want to access the text properties through lotus script.
Subject: RE: how to Read the static text inside any form
Yes, I understand what you want to achive, but I cannot think of any other means to access these other thatn using DXL.
Subject: RE: how to Read the static text inside any form
thanks Rob. ya you r right . its posible through dxl. but i was searching some easy and notes lavel implementation.if i dont able to do with anything else i will surly use the dxl. but in the mean ben has given me an idea of using the $body field. this would be an easy and reliable aproach at this point. thanks a lots to think abt the problem.