|
| Issue to update a picklist |
 |
Fri, 16 May 2008 10:36:01 GMT |
Hi everyone,
I got a little problem: i have in my request form a picklist of dn's
whose items are loaded with a global query executed in a onLoad event,
then i put the selected value of this field in the flowdata to get it
at the next approval activity, but here is my problem:
I want to offer users the ability to modify the selected value of this
field.
I mean that i'd wish that i can load the same items in the approval
field with my query but put the default selected value on the one which
was selected in the request form.
If I just use directly the same global query on the field with an
onload event like i did on the first form, then the data of the
flowdata is overwrited by the query and i loose the choice made in the
request form.
I also tried to keep in a variable the value selected, then to execute
the query to put the usual contents in my field but i don't know how to
set the default selected value on the one i've stored...
Thanks for support,
Sébastien
--
sjahan
------------------------------------------------------------------------
sjahan's Profile: http://forums.novell.com/member.php?userid=16002
View this thread: http://forums.novell.com/showthread.php?t=328235
|
| Post Reply
|
| =?UTF-8?Q?R=C3=A9p.=20:=20Issue=20to=20update=20a=20picklist?= |
 |
Fri, 16 May 2008 12:43:54 GMT |
Hi Sébastien,
As long as you save the initial values - which are the previously selected
values - with a field.getValues() you can then after you set the available items
with a globalquery reselect some of these items with a call to
field.select(array) or form.select(fieldname, array);
thanks
Rudy
>>> Le 16/05/2008 Ã 12:36,
sjahan<sjahan@no-mx.forums.novell.com> a écrit dans le message
<sjahan.39i15z@no-mx.forums.novell.com> :
Hi everyone,
I got a little problem: i have in my request form a picklist of dn'swhose items
are loaded with a global query executed in a onLoad event,then i put the
selected value of this field in the flowdata to get itat the next approval
activity, but here is my problem:
I want to offer users the ability to modify the selected value of thisfield.
I mean that i'd wish that i can load the same items in the approvalfield with my
query but put the default selected value on the one whichwas selected in the
request form.
If I just use directly the same global query on the field with anonload event
like i did on the first form, then the data of theflowdata is overwrited by the
query and i loose the choice made in therequest form.
I also tried to keep in a variable the value selected, then to executethe query
to put the usual contents in my field but i don't know how toset the default
selected value on the one i've stored...
Thanks for support,
Sébastien--
sjahan------------------------------------------------------------------------sj
ahan's Profile: http://forums.novell.com/member.php?userid=16002View this
thread: http://forums.novell.com/showthread.php?t=328235 |
| Post Reply
|
| Re: Issue to update a picklist |
 |
Fri, 16 May 2008 13:16:02 GMT |
Thank you, i didn't know the select function, this one doesn't appear in
the ECMAscript editor ... :(
Thank you very much !
--
sjahan
------------------------------------------------------------------------
sjahan's Profile: http://forums.novell.com/member.php?userid=16002
View this thread: http://forums.novell.com/showthread.php?t=328235
|
| Post Reply
|
| Re: Issue to update a picklist |
 |
Mon, 19 May 2008 08:56:01 GMT |
Hi, since i use the select function i got a new issue directly related:
Actually i have in my form two fields, direction and service.
Direction contains several services.
The two fields are dn picklist, and when i choose a direction, it has
to update the field service with services of teh direction selected.
I select the proper value in the request form, but when the workflow
arrived to the approval form, here is the problem :
The direction field is properly updated by passing by three steps :
1. loaded the flowdata value, the one i've picked before,
2. onload event, --> load all the directions available in the
picklist,
3. select the value previously transmitted by flowdata, which is the
one selected.
There is three changes, so the onchange event is called three times and
my service field is updated three times ... and the good value is
obviously overwritted, since it's just transmitted by flowdata...
So i cannot proceed exactly the same way to store the service
previously selected...
Is there some place i can store a variable out of the event script ?
I tried some field set on visible=false, but it doesn't seem to work
...
--
sjahan
------------------------------------------------------------------------
sjahan's Profile: http://forums.novell.com/member.php?userid=16002
View this thread: http://forums.novell.com/showthread.php?t=328235
|
| Post Reply
|
| Re: Issue to update a picklist |
 |
Mon, 19 May 2008 09:16:02 GMT |
Actually the exact question is: Is there a way to store some data in a
field?
I tried to accessed the flowdata from the form but it seems
impossible.
I tried to use a field invisible, but invisible makes an error cause
the field doesn't exist (not instantiated) in the form...
Thanks for support.
--
sjahan
------------------------------------------------------------------------
sjahan's Profile: http://forums.novell.com/member.php?userid=16002
View this thread: http://forums.novell.com/showthread.php?t=328235
|
| Post Reply
|
|
|
|
|
|
|
|
|
|