Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
retrieving multiple hidden fields
unknown_user3
How can we retrieve multiple dynamic generated hidden fields having records.e.g. rec_1, rec_2...,rec_100rec_1 = "A, B, C"rec_2 = "X, Y, Z"If hidden fields names are not dynamic in that case its very easy to get them in the Execute of the posted Request Handler. If RecArray.IsColumn(r, 'fieldname') info_req = r.fieldnameEnd What about using r.LLPARAMS_LIST[][]?
Find more posts tagged with
Comments
Hans Stoop
Message from Hans Stoop via eLinkOne way is to have an extra hidden filed that hold the number of recfields. So you know how many there are.The oscript code to acccess them is:for i = 1 to maxRecs rec = request.('rec_', + Str.String(i)) // do what ever you want to doendAnother way is to call them all 'rec'. In this case you will have anadditional field in the request: rec_list, which is a list with all therec values. rec_list will only be present if you have more then 1 recfield. Via the prototype it is possible to force to have a rec_list.Hans_> -----Original Message-----> From: eLink Discussion: Development Discussion > [mailto:development@elinkkc.opentext.com] > Sent: donderdag 21 juni 2007 15:27> To: eLink Recipient> Subject: retrieving multiple hidden fields> > retrieving multiple hidden fields> Posted by Kuncheria, Minu on 06/21/2007 09:23 AM> > How can we retrieve multiple dynamic generated hidden fields > having records.> > e.g. rec_1, rec_2...,rec_100> > rec_1 = "A, B, C"> rec_2 = "X, Y, Z"> > If hidden fields names are not dynamic in that case its very > easy to get them in the Execute of the posted Request Handler. > > If RecArray.IsColumn(r, 'fieldname')> info_req = r.fieldname> End > > What about using r.LLPARAMS_LIST[][]? > > [To reply to this thread, use your normal E-mail reply function.]> > ============================================================> > Discussion: Development Discussion>
https://knowledge.opentext.com/knowledge/llisapi.dll/open/786303>
; > Livelink Server:>
https://knowledge.opentext.com/knowledge/llisapi.dll>
; > To Unsubscribe from this Discussion, send an e-mail to > unsubscribe.development@elinkkc.opentext.com.> > >
eLink User
Message from via eLinkHi, > Message from Hans Stoop via eLink> > [...] > > Another way is to call them all 'rec'. In this case you will have an> additional field in the request: rec_list, which is a list > with all the> rec values. rec_list will only be present if you have more then 1 rec> field. Via the prototype it is possible to force to have a rec_list.For Hans' second alternative, your code could go like this: List lixRecords = {} if ( IsFeature( r, "rec_list" ) ) lixRecords = r.rec_list elseif ( IsFeature( r, "rec" ) ) lixRecords = List.SetAdd( lixRecords, r.rec ) ) end CurroThis email message is intended only for the use of the named recipient.Information contained in this email message and its attachments may beprivileged, confidential and protected from disclosure. If you are not theintended recipient, please do not read, copy, use or disclose thiscommunication to others. Also please notify the sender by replying to thismessage and then delete it from your system.
Hans Stoop
Message from Hans Stoop via eLinkThanks,> lixRecords = List.SetAdd( lixRecords, r.rec ) )I normally use lixRecords = { r.rec }Hans > -----Original Message-----> From: eLink Discussion: Development Discussion > [mailto:development@elinkkc.opentext.com] > Sent: donderdag 21 juni 2007 18:06> To: eLink Recipient> Subject: RE RE retrieving multiple hidden fields> > RE RE retrieving multiple hidden fields> Posted by eLink on 06/21/2007 12:05 PM> > Message from via eLink> > Hi,> > > Message from Hans Stoop via eLink> > > > [...]> > > > Another way is to call them all 'rec'. In this case you > will have an > > additional field in the request: rec_list, which is a list with all > > the rec values. rec_list will only be present if you have > more then 1 > > rec field. Via the prototype it is possible to force to have a > > rec_list.> > > For Hans' second alternative, your code could go like this:> > List lixRecords = {}> if ( IsFeature( r, "rec_list" ) )> lixRecords = r.rec_list> elseif ( IsFeature( r, "rec" ) )> lixRecords = List.SetAdd( lixRecords, r.rec ) )> end> > > Curro> > This email message is intended only for the use of the named > recipient.> Information contained in this email message and its > attachments may be privileged, confidential and protected > from disclosure. If you are not the intended recipient, > please do not read, copy, use or disclose this communication > to others. Also please notify the sender by replying to this > message and then delete it from your system.> > [To reply to this thread, use your normal E-mail reply function.]> > ============================================================> > Topic: retrieving multiple hidden fields>
https://knowledge.opentext.com/knowledge/llisapi.dll/open/12532338>
; > Discussion: Development Discussion>
https://knowledge.opentext.com/knowledge/llisapi.dll/open/786303>
; > Livelink Server:>
https://knowledge.opentext.com/knowledge/llisapi.dll>
; > To Unsubscribe from this Discussion, send an e-mail to > unsubscribe.development@elinkkc.opentext.com.> > >