80 pts.
 ComboBox event
Hi,

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.



Software/Hardware used:
Lotus Notes 5.0
ASKED: October 21, 2009  3:58 AM
UPDATED: October 27, 2009  4:08 AM

Answer Wiki:
I would write a short lotus script in the "exiting" Event of the AccounType first Combo Something like : <pre> Dim ws as new notesUIWorkSpace Dim uidoc as notesUIDocument Set uidoc=ws.currentdocument Call uidoc.FieldSetText( "PSD_Indicator" , uidoc.FieldGetText("AccountType") ) Call uidoc.refresh </pre> HIH
Last Wiki Answer Submitted:  October 21, 2009  2:04 pm  by  BruceWayne   4,075 pts.
All Answer Wiki Contributors:  BruceWayne   4,075 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

It’s important to know whether you’re talking about a Lotus Notes client or a web browser.

 1,620 pts.

 

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. :-/

 105 pts.

 

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

 80 pts.

 

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>

 4,075 pts.

 

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

 80 pts.