I want to write a formula or javascirpt in such a way that on click of a value in one combobox(AccountType) , i want one value to be displayed in another combobox(PSD Indicator).If i am writing a java script on one event there is nothing being displayed.Can anyone explain me how to implement this.
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:
http://www.computerworld.com/s/article/print/9002170/So_how_i_do_i_you_code_an_AJAX_Web_page_
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. :-/
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
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>
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 VB.net , 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
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
Discuss This Question: 5  Replies