Have a look at this:
community.dynamics.com/.../ax-2012-add-dynalink-in-x
You might want to add the link for your caller record.
Have a look at this:
community.dynamics.com/.../ax-2012-add-dynalink-in-x
You might want to add the link for your caller record.
Hello:
I've dynamically added a button to my VendInvoiceJour form to call another form B for additional data. This form B relates to the VendInvoiceJour RecId.
In the click method of the dynamic button I have put the following code, but when calling it does not bring me in correct registration but another one. This despite making Select with the RecId of VendInvoiceJour and passing the result of the query to form B:
Your help please.
void GNP_VendInvoiceJourAddData_Clicked(Args _args) { Form formAddData; Args args; Object formRun; GNP_VendInvoiceJourAddData gnp_VendInvoiceJourAddData2; GNP_VendInvoiceJourAddData arg_VendInvoiceJourAddData2; ; args = new Args(); select firstOnly gnp_VendInvoiceJourAddData2 where gnp_VendInvoiceJourAddData2.VendInvoiceJour == VendInvoiceJour.RecId; args.name(formstr(GNP_VendInvoiceJourAddData)); //args.record(GNP_VendInvoiceJourAddData::find(VendInvoiceJour.RecId)); args.record(gnp_VendInvoiceJourAddData2); if (args.record() && args.dataset() == tableNum(GNP_VendInvoiceJourAddData)) { arg_VendInvoiceJourAddData2 = args.record(); } args.caller(this); formRun = classfactory.formRunClass(args); formRun.init(); formRun.run(); formRun.wait(); formRun.detach(); }
You should return the CodeTypeProofPayment = "07" but instead bring "01".
Are you asking about InventTransId (aka 'Lot ID')?
Hi,
Please check if you have modifiedby and ModifiedDateTime properties enabled on the table.If so, we can get the latest modified by information. As others suggested, we can enable database logging(for update operation) to track future changes on this table. It can be set at the path System administration/Setup/Database/Database log setup and logged information can be found at the path: System administration/Inquiries/Database/Database log
Refer following links to enable/configure database logging:
(Enable Database Log for Table in Ax 2012)
community.dynamics.com/.../enable-database-log-for-table-in-ax-2012
(Dynamics Ax 2012 : Exploring Data Base logging for Insert ,Update and Delete)
(What you should know about database logging: functional impact)
www.artofcreation.be/.../what-you-should-know-about-database-logging-functional-impact
There is no AX data provider for Entity Framework, therefore you can't use this framework unless you're willing to write the provider by yourself.
By the way, the LINQ provider wouldn't help you in your integration scenario. Use OData services instead.
Hi,
Could you provide us the description/kind of data each field could hold, as it's difficult to predict the nature based on name.
I don't have any related data to go on, just the request. But I'm having a hard time finding how Lot is used in AX. I'm assuming it's InventTransID? What table would provide me the information I'm looking for?
Hi Imran,
Following Ludwig's suggestion, I created a positive adjustment for a quantity of 300 and posted it. I then create a negative adjustment for the same quantity. Using the 'Inventory' -> 'Marking' function, I can see previous receipts which this adjustment out can be marked against:
You can set the 'Marking' before or after the adjustment out is posted.
While performing issuance in inventory management, a user has mistakenly put a positive quantity of 300 rather than to be negative. Now I need to adjust the positive quantity which is now considered purchased by AX with zero value. Please guide me what should I do. I have couple of suggestion in my mind along with the problem with every one:
1. Use item issuance of -300 which will eventually knock off the quantity with the positive 300 and then issue -300 more for actual issuance but in this case there will be an issue of item rate. If i perform issuance 1st time it will issue item with the rate based on item model group which is Weighted average and same is the problem with actual issuance. I need to adjust quantity not rate.
2. What will happen if i use adjustment journal, as far as i know it will hit only profit and loss account if we adjust items quantity. Will it effect on rate/unit too or nor?
3. Is there any way to reverse the line of issuance journal which is in positive 300, if it does will it adjust the rate of per unit item or not? also will it also reverse the voucher transaction or not?
If there are any suggestions please help
>There is no AX data provider for Entity Framework,
>therefore you can't use this framework unless you're
>willing to write the provider by yourself.
Thanks.
>By the way, the LINQ provider wouldn't help you in your
> integration scenario. Use OData services instead.
May I ask why? I am creating POC and seems LINQ query works at lease I can get the result for a particular table.
Hi,
Lot is InventTransId and you can find this field on table InventTransOrigin. Need to check for other fields.
Help text of InventTransId: Summary number/lot ID for transactions attached to the same inventory transaction.
Here is a list of related data:
Source System Code Description
PCB 1 VALUE NOT IN UDC
PCB A APPROVED FOR SHIPMENT
PCB B SUB-STANDARD
PCB D DAMAGED
PCB G GARBAGE
PCB H VALUE NOT IN UDC
PCB I INSPECTION REQUIRED
PCB N POSSIBLY NON-COMPLIANT
PCB Q UNDER QUARANTINE
PCB R REWORK OR REPACK
PCB S AGED
PCB W WASTE
PCB X QFS CRITICAL HOLD
PHI - APPROVED
PHI A DO NOT USE
PHI B OUT OF SPEC RAW MATERIAL
PHI C CONTROL
PHI D DONATE
PHI E EXPIRED
PHI F FAIL NOT FOUND IN WHSE
PHI G FG ON HOLD MICRO/C
PHI H HELD
PHI I PENDING QC INSPECTION ING/FG
PHI K SKIP (FAIL IN QAD)
PHI L LOADED SHORT DATED
PHI M PENDING MICRO/CHEM TEST
PHI O OBSOLETE PACKAGING
PHI P DISPOSE
PHI Q UNDER QUARANTINE
PHI R TO RETURN TO SUPPLIER
PHI S TO BE SOLD BY PROC DEPT
PHI T HOLD FOR TESTING
PHI U RETURN (QCRET IN QAD)
PHI V VENDOR HELD/VIRTUAL LOCATION
PHI W REWORK
PHI X IN (QAD)
Just you know I am submitting data through OData so works with angularUI and call functions in assembly class when validating on the server side.
Hi,
I feel expression is fine. Could you let us know the output you are getting from it.
zero
=IIF((Fields!Amount.Value >0 ) , Fields!Creadit.Value, Fields!Debit.Value)
what't the error on this expression i need to view Amount field if it's bigger than zero it's value should putted in creadit
if less than zero the value putted in debit
This would be the "Lot Status Code"
I'm looking for a defenition in AX for "Lot" and related tables. Currently I'm looking in InventTrans tables but cannot find these source fields:
SOURCE_BUSINESS_UNIT_CODE
LOT_DESC
LOT_STATUS_CODE
LOT_STATUS_DESC
QUARANTINE_FLAG
SUPPLIER_LOT_CODE
SOURCE_SUPPLIER_CODE_PRIMARY
LOT_EXPIRATION_DATE
LOT_ONHAND_DATE
LOT_SELLBY_DATE
LOT_AGE_DAYS
LOT_EXPIRED_FLAG
Have you got answer for this question?