pruthirajpahi
27th October 2010, 09:31
I want to press the "Rotate Currency" standard button in "Tools menu" of tfacp1110s000 i.e Purchase Invoices through AFS.
I have written the AFS for tfgld1101m000 i.e Transactions as well as tfacp1110s000. But I don't found any standard function or variable to full fill the requirement.
Kindly suggest the block of code or any reference for the same ASAP
george7a
27th October 2010, 10:29
First you need to go to maintain sessions, then form commands, and see if this session is defined as "choice" or is in an extra menu.
pruthirajpahi
27th October 2010, 14:18
First you need to go to maintain sessions, then form commands, and see if this session is defined as "choice" or is in an extra menu.
Roated Option is in tools menu of the session
First click on tools after that click on roated currency
marnix
27th October 2010, 14:29
I don't remember exactly how, but AFS has a way do simulate 'rotate currency' in a session. There is a special function for this, I think. Check the official AFS guide; Infor support should be able to give you the latest version.
mark_h
27th October 2010, 21:07
This is the correct forum for AFS questions. Not sure which version you are asking about but stpapi.zoom.option maybe what you are looking for.
SYNTAX
void stpapi.zoom.option(string session, long form, string zoom.prog, ref string err.mesg)
ARGUMENTS
session Name of the session this command is executed on.
form Form number on which zoom must be executed. This needs to be specified, as some sessions depend on a particular form being active when the zoom is executed.
zoom.prog Baan session for the zoom. This must be the same as the zoom session specified for the choice field of form. If the choice specifies a zoom to a menu, then this session must be one of those mentioned in the menu.
err.mesg This parameter will contain the text of the error message if the function cannot complete normally.
alakananda12
30th October 2012, 11:44
Hello,
Need to run Rotate Currency through AFS in LN FP8.
Please suggest if anybody already done with this.
Thanks in advance.
Regards,
Alka
mark_h
31st October 2012, 22:46
The only thing I can think of is to see if the stpapi.form.command would work. Something like stpapi.form.command("tfacp1110s000", 5, "rotate.currency", error.msg) - since I am not on LN so I won't be much help and this is pure speculation on my part based off the documentation.