I managed to to get AccPac support to list what the FUNCTION fields in view PO0699 do (see below). Does anyone know of a reference where I can lookup this information for any view?
Here is a list of FUNCTION values for PORCPG (PO0699):
Invoice all: 2
Initialize receipt from single PO: 4...
I'm not sure how we got the type libray for the xapi, but the wrappers I'm talking about were written by us. We create a wrapper for each view that we use, with the fields we need and getters and setters for each.
Basically so we can do : MyHeaderView.VendorId := '70111';
Instead of...
Thanks Jay. When I recorded a macro, it did not capture inserting the detail lines. It just did it, and left them not complete. I thought there was some magic involved with the ...view.fields.field["FUNCTION"] = 4 going on in the dll. When I marked each PO line as complete, the macro logged the...
I am trying to receive a PO through the xapi.
The reciept does get created, but none of the detail lines are there.
My code is Delphi, and we have wrappers to encapsulate views so some of this may look strange:
m_rcptHeaderView := m_Session.OpenView('PO0700', 'PO')...
I do have a macro to look at now. I can't create or view macros on my machine, there's something wrong with my Accpac install I guess. But that's another issue.
I did manage to get an optional field in for the first detail line, but I haven't got the second one in yet.
I am working on inserting Journal entries through the xapi. I have the Batch, Header and Detail working, but I can't stuff an optional field value in. Does someone have some examples?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.