Hello All, I have a radio button field :Overview: having YES|NO options.I have another field called :Submit: which is a dialoglist.If a value starting with ‘STAR’ is selected from dialoglist,Based on the value selected from dialoglist my radio button value needs to be changed
This entire process needs to be done when clicked on ‘Test’ action button.
As iam a fresher and iam new to this technology.Can anyone help me to do this.Thanks in Advance!!!
Subject: Browser? Notes client?
Hard to help without knowing that:)
Subject: Change the value of Radio Button
Hi Christopher, Iam extreemely sorry for that.“Its a Client based application”.As iam posting my first query,i have missed that out.From now on…I will take care of that
Subject: easy peasy
in your code, just set the field
function language
field foo:=“bar”
or
@setfield(“foor”;“bar”)
lotusscript
doc.foo=“bar”
Subject: Change the value of Radio Button
Hi Christopher i tried with that …but i dont think that does workout as iam change the value of a radio button based on the the value selected
Subject: Still easy peasy
@setfield(“foo”;@if(name=“jim”;“bar”;othername=bill";“bar1”;“bar2”))
Subject: Change the Value of Radio Button
Hi Christopher, Thank u very much.That has worked out .How to do the same in Scripting?
Thanks in Advance
Subject: Have a go
Have a go at how you think it can be done in script, post your code if it doesn’t work.
You’ll want to hook your code into the events for the buttons, or document event and use notesuiworkspace.
Subject: Operation Failed
Hi, I tried using the below code in the Query save of the event.
dim eval as variant
eval=Evaluate(“@contains(Submit;STAR)”,Source)
if eval=True then
call Source.GotoField(“Overview”)
call source.Fieldsettext(“Overview”,"Yes)
Source–NotesUIDocument
Submit–is a dialoglist
STAR—is one of the value
Iam checking if any value starting with STAR is selected in the dialoglist then i need to change the radio button field “Overview” to “Yes”.
Have i missed out something or am i doing wrong.
While saving iam getting the error Operation failed.
Subject: I got the solution for that
Hi,I have got the solution.I tried suing Instr function and its working fine.thanks to all for your support and gidance