Marcus
-
Posts
6 -
Joined
Posts posted by Marcus
-
-
I am using a flat data file that has four coupons in it. Each coupon has different value(s) for their start dates... and other jobs could have different coupons in each position.
I just thought it would be easier to try and figure this out with just the values and then use it with everything else. I wanted code that would allow me to use only one resource which could be used in any position and pull the corresponding values from the file depending upon that position.
I like the later code you posted, it works for me. Excuse my code, I am very unfamiliar with JavaScript, but trying to learn it. Any suggestions for rapid learning JavaScrpit code for FusionPro?
Thank you for your help!
-
This was the code that I ended up with.
var r = [
[Field("N_VAR_1")],[Field("N_VAR_1__2")],[Field("N_VAR_1__3")],[Field("N_VAR_1__4")]
];
var x = FusionPro.Composition.CurrentFlow.name
return r[x];
-
Thanks very much for your help. I went about it a different way, but without your code I wouldn't have gotten it so soon if every.
Thanks, again.
Marcus
-
Help! I have a coupon resource that I need to change values depending on which text box is active. I wanted to have all text boxes using the same resource but changing the value of <<MyVar1>> with a rule that works by the flow of the text boxes, which I can seem to figure out. Any suggestions?
-
I am trying to only have one coupon (resource), which can be used in 4 different positions, that uses a var1 that has different values depending on which text box is to be used. I am a not very experienced with Java, but here is what I have so far. I feel like I need some sort of way to determine which text box is to be used.
if (Field("COUPON_COD") == "C1")
{
return("MyVar1", Field("N_VAR_1"));
}
if (Field("COUPON_CO2") == "C1")
{
return("MyVar1", Field("N_VAR_1__2"));
}
if (Field("COUPON_CO3") == "C1")
{
return("MyVar1", Field("N_VAR_1__3"));
}
if (Field("COUPON_CO4") == "C1")
{
return("MyVar1", Field("N_VAR_1__4"));
}
Thanks,
Marcus
Difference between preview and output
in Issues, Questions, Etc.
Posted