Specifying "target field" by calculation (in "Set Field")
am 16.11.2007 10:47:36 von carla
In order to make a Find script as generic as possible, I want to be
able to pass it (as parameters) a layout name, a field name, and a
field value. So the script will go to the layout (using P1), set the
field (using P2 and P3), and do the find. Trouble is, I can't see how
to use P2 in the Set Field script step - it seems only to allow me to
specify an actual field name (rather than a field name calculated from
the parameter).
Any suggestions? (FM9, PC).
Carla.
Re: Specifying "target field" by calculation (in "Set Field")
am 16.11.2007 18:58:44 von ursus.kirk
"Carla" schreef in bericht
news:5eb843e6-9286-4051-a506-f348eebb6cba@e4g2000hsg.googleg roups.com...
> In order to make a Find script as generic as possible, I want to be
> able to pass it (as parameters) a layout name, a field name, and a
> field value. So the script will go to the layout (using P1), set the
> field (using P2 and P3), and do the find. Trouble is, I can't see how
> to use P2 in the Set Field script step - it seems only to allow me to
> specify an actual field name (rather than a field name calculated from
> the parameter).
>
> Any suggestions? (FM9, PC).
>
> Carla.
None, you can't dynamically assign fieldnames to the set field function. BUT
if no field is specified the current field is used AND this could be
combined with naming the field as object and the go to object script step.
Keep well, Ursus
Re: Specifying "target field" by calculation (in "Set Field")
am 19.11.2007 09:55:59 von carla
On Nov 16, 5:58 pm, "Ursus" wrote:
> "Carla" schreef in berichtnews:5eb843e6-9286-4051-a506-f348eebb6cba@e4g2000hsg. googlegroups.com...
>
> > In order to make a Find script as generic as possible, I want to be
> > able to pass it (as parameters) a layout name, a field name, and a
> > field value. So the script will go to the layout (using P1), set the
> > field (using P2 and P3), and do the find. Trouble is, I can't see how
> > to use P2 in the Set Field script step - it seems only to allow me to
> > specify an actual field name (rather than a field name calculated from
> > the parameter).
>
> > Any suggestions? (FM9, PC).
>
> >Carla.
>
> None, you can't dynamically assign fieldnames to the set field function. BUT
> if no field is specified the current field is used AND this could be
> combined with naming the field as object and the go to object script step.
>
> Keep well, Ursus
Ursus - that should do it, thanks for the suggestion!
Carla.