ComboBox event

80 pts.
Tags:
ComboBox
JavaScript
Lotus Notes
Lotus Notes 5.x
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Ledlincoln
    It's important to know whether you're talking about a Lotus Notes client or a web browser.
    1,620 pointsBadges:
    report
  • CallMeRich
    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 pointsBadges:
    report
  • SAMRAJ
    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 pointsBadges:
    report
  • BruceWayne
    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,110 pointsBadges:
    report
  • SAMRAJ
    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 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following