ComboBox event
70 pts.
0
Q:
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: Oct 21 2009  3:58 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
1610 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button

I would write a short lotus script in the "exiting" Event of the AccounType first Combo
Something like :

Dim ws as new notesUIWorkSpace
Dim uidoc as notesUIDocument
Set uidoc=ws.currentdocument
Call uidoc.FieldSetText( "PSD_Indicator" , uidoc.FieldGetText("AccountType") )
Call uidoc.refresh


HIH
Last Answered: Oct 21 2009  2:04 PM GMT by BruceWayne   1610 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

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

 
0