Skip to main content

Posts

Showing posts from June, 2012

Call go to main table form using jumpref method in axapta

public void jumpRef() { Args args; menuFunction menuFunctionobject; ; args = new Args(); menuFunctionobject = new menuFunction(menuitemDisplayStr(“FormName”), MenuItemType::Display); args = new Args(menuFunctionobject.object()); args.caller(element); args.record(“datasource which added in the current form”); menuFunctionobject.run(args); }

How to get dimension value from ledger dimension in axapta 2012

DimensionAttribute dimensionAttribute1; DimensionAttributeValueGroupStatus dimAttrValueGroupStatus1; DimensionAttributeValueGroupCombination dimAttrValueGroupCombo1; DimensionAttributeValueGroup dimAttrValueGroup1; DimensionAttributeLevelValue dimAttrLevelValue1; DimensionAttributeValue dimAttrValue1; DimensionAttrValueCOAOverride dimAttrValueCOAOverride1; DimensionAttrValueLedgerOverride dimAttrValueLedgerOverride1; DimensionFinancialTag dimensionFinancialTag1; InventPosting inventPosting1; DimensionValue Dim1, Dim2, Dim3; MainAccountNum LedgerAc; RecId LedgerRecId, dimCombinationId; dimCombinationId = 65656776; // for example here i gave a valid ledgerdimension // find MainAccountId from LedgerDimension LedgerAc = MainAccount::findByLedgerDimension(dimCombinationId).MainAccountId; LedgerRecId = Ledger

ForceLiterals in axapta

ForceLiterals ForceLiterals instructs the kernel to reveal the actual values used in the "where" clauses to the database server at the time of optimization. This is an example of how to use this keyword. static void DemoForceLiterals() { InventTrans inventTrans; ; while select forceliterals inventTrans order by itemId where inventTrans.DatePhysical >= mkdate(21,12,2012) { } }

Add Roles to an Existing User in ax 2012 for sharepoint

1. Open the Microsoft Dynamics AX client. 2. Go to System Administration > Common > Users > Users. 3. Double-click user1  in the grid to edit his record. 4. Click Assign roles in the User's role section of the form. 5. Select module  and click OK. 6. Click Start > Power button options > Switch User. 7. Press Ctrl-Alt-Delete to log on. 8. Click Other User 9. Log on as user1. 10. Run the Dynamics AX client. 11. View the changes in user1's access. 12. Switch user back to Administrator