shywanna
26th October 2009, 20:57
Is there a way to set a default value on a form based on company? Currently we have our default value set as a string in double quotes. I want to be able to choose between 2 defaults based on company code.
mark_h
26th October 2009, 21:34
Yep - not sure if you can use get_compnr() in the default field, but you can set the current company in before program section. Then on the form try some.compnr=701 ? "ABC" : "DEF". There is a more complete thread on using this functionality, but I will have to search for it(I think it was using the input expression instead of default value).
current.compnr = get.compnr()
Then some.compnr=701 ? "ABC" : "DEF" goes into the default field value.
shywanna
2nd November 2009, 21:45
Thanks for the quick response. I finally have a little time so I can test this out.