×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Hi Brad we use templates to generate (in this case) xml code to feed views
designer.

An (simplified) example:

<form:FormElement label="#PHLABEL" id="#PHID">
<form:fields>
<Input id=" #PHID" type="Number" value="{ #PHSRC}" placeholder=" #PHHINT
">
<layoutData>
<l:GridData span="XL2 L3 M3 S4"/>
</layoutData>
</Input>
<Input id=" #PHID" type="Number" value="{ #PHSRC }" placeholder=" #PHHINT
">
<layoutData>
<l:GridData span="XL2 L3 M3 S4"/>
</layoutData>
</Input>
</form:fields>
</form:FormElement>

Has to became:

<form:FormElement label="Importo, intervallo copertura"
id="l_importocoperto">
<form:fields>
<Input id="importocopertoi" type="Number"
value="{MUCA05IX_MDP&gt;/RISPOSTA/P/IMPCOPERTOI}" placeholder="Inserisci
importo ...">
<layoutData>
<l:GridData span="XL2 L3 M3 S4"/>
</layoutData>
</Input>
<Input id="importocopertof" type="Number"
value="{MUCA05IX_MDP&gt;/RISPOSTA/P/IMPCOPERTOF}" placeholder="Inserisci
importo ...">
<layoutData>
<l:GridData span="XL2 L3 M3 S4"/>
</layoutData>
</Input>
</form:fields>
</form:FormElement>

reading a file like this one:

Field PlaceHolder Value
Imp #PHID l_importocoperto
Imp #PHLABEL Importo, intervallo copertura
Imp #PHID importocopertoi
Imp #PHSRC MUCA05IX_MDP&gt;/RISPOSTA/P/IMPCOPERTOI
Imp #PHHINT Inserisci importo ...
Imp #PHID importocopertof
Imp #PHSRC MUCA05IX_MDP&gt;/RISPOSTA/P/IMPCOPERTOF
Imp #PHHINT Inserisci importo ...

Both templates and the file reading are recursive and happens in diffrent
moment that's why I'd like to have %SCANRP with *FIRST.

Of course I already wrote the code to handle this situation but having
*FIRST or *LAST in %SCANRP could be a good solution.

HTH



--
Marco Facchinetti

Mr S.r.l.

Tel. 035 962885
Cel. 393 9620498

Skype: facchinettimarco

2018-08-22 16:48 GMT+02:00 Bradley Stone <bvstone@xxxxxxxxx>:

Can you give an example of when you would want this functionality?

I am at a loss as to how this couldn't be solved some other way, but from
experience I know that only means I haven't come across that scenario yet.
:)

Bradley V. Stone
www.bvstools.com
Need to interface with Braintree with your IBM i? Contact me
<https://www.bvstools.com/contact.html> for more information!

On Wed, Aug 22, 2018 at 9:31 AM Marco Facchinetti <
marco.facchinetti@xxxxxxxxx> wrote:

Hi, hopefully I'm not alone:

http://www.ibm.com/developerworks/rfe/execute?
use_case=viewRfe&CR_ID=123877

TIA
--
Marco Facchinetti

Mr S.r.l.

Tel. 035 962885
Cel. 393 9620498

Skype: facchinettimarco
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD

--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.