Ledlincoln
1220 pts. | Oct 22 2009 2:34PM GMT
It’s important to know whether you’re talking about a Lotus Notes client or a web browser.
CallMeRich
10 pts. | Oct 22 2009 3:28PM GMT
Ledlincoln is absolutely correct. The LotusScript solution provided by Batman should work perfectly for a Notes Client application; however, if this is for a Domino (web based) application, then you’ll need to use AJAX calls instead (if you want a smooth user interface without ugly screen refreshes). For more info, check out:
<a href="http://www.computerworld.com/s/article/print/9002170/So_how_i_do_i_you_code_an_AJAX_Web_page_" title="http://www.computerworld.com/s/article/print/9002170/So_how_i_do_i_you_code_an_AJAX_Web_page_" target="_blank">http://www.computerworld.com/s/article/p…</a>
Unfortunately, I never found any good/specific “AJAX in Domino” sites … so it is a real pain in the @ss to get AJAX to work the first time you try to add it to a Notes/Domino DB; however, once you get it to work for one DB, it’s not too hard to repeat that solution in your other DBs. Good luck.
P.S.: My company still uses Notes/Domino 7.x … if your company has already upgraded to 8.5.x, then you might be able to use XPages (instead of AJAX?) to simplify this … but I dunno since I’ve never had the opportunity to play around with XPages yet. :-/
SAMRAJ
70 pts. | Oct 23 2009 3:22AM GMT
Hi ,
I am running on a notes client.And i wanted to know how to get a particular choice from the dialoglist in lotus script.Cn anyne hlp me ….
Regards,
Raji
BruceWayne
1610 pts. | Oct 23 2009 10:26AM GMT
That’s right but he didn’t mentioned Web at all, so …
In order to find a specific value, you have to loop inside the combo values, something like :
<CODE >
Dim ws as new notesUIWorkSpace
Dim uidoc as notesUIDocument
Dim doc as notesdocument
Dim tabCombo as variant
Set uidoc=ws.currentdocument
Set doc=uidoc.Document
Set tabCombo=doc.MyComboToCheck
If not isEmpty( tabCombo)
Forall value in tabCombo
If value = “MyValueToSearch” then
… Your code here…..
End if
End forall
End if
End forall
</CODE>
SAMRAJ
70 pts. | Oct 27 2009 4:08AM GMT
That’s great Bruce , but my requirement is i am unable to set the value to the dialoglist from the values of the dialoglist.
Example : In <a href="http://VB.net" title="http://VB. " target="_blank">VB.net</a> , we say that combobox.itemindex =1 but i am not sure what is the option to be used in lotusscript to dynamically select the option
There are two dialoglists Account Type (has 11 items)and PSDIndicator(has three items).Thta’s like
IF AccountType = 1
then PSDIndicator should be default selected as 1(he/she should be alowed to selct the other values as well)
else if AccountType = 9
then PSDIndicator should be default selected as 3(he/she should be alowed to selct the other values as well)
Any help on this would be greatly appreciated….
Thanks
Raji






