Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all 175888 articles
Browse latest View live

PO packingslip posted on the month end . While posting invoice next month, GRN account line missed

$
0
0

We posted packingslip , 2 lines posted with one debit and credit. While posting invoice, normally packing slip entry will be reversed and exp account /inventory account debited with vendor account credited. 

In this case, the posted credit line of GRN is missed.


AxdDimensionUtil::getLedgerAccountId is not working

$
0
0

AxdDimensionUtil::getLedgerAccountId is not working 

Transfer Order Over delivery and Under delivery not working on Transfer order

$
0
0

Dear All,

I am in a bit confusion in Transfer Order Over Delivery and under delivery concept. For Doing so I have done the setup of Inventory parameter and 

Item over delivery and under delivery . Then after we created the Transfer Order of 5000, Picked Qty 5000, Shipped Qty 5000 then want to Receive 5020 qty, while during receiving system throw an error "Receive now incl. scrap exceeds the remaining receive quantity." . Kindly advice me in this regards.

Classify fixed assets

$
0
0

Can we classify fixed assets to groups and subgroups in ax 2012 ?

For example if we have 3 major groups and each group has 10 sub-groups.

sysoperation framewrok No metadata class defined for data contract object

$
0
0

Hello,

I'm trying to learn sysoperation framework class. I've written 3 classes:

1) Contract:

[DataContractAttribute]

class SimpleBatchJobContract

{

    str         text;

}

[  

    DataMemberAttribute('Text'),

    SysOperationLabelAttribute("@ICL363"),

    SysOperationControlVisibilityAttribute(true)]

publicstr parmText (str _text = text)

{

    text = _text;

    return text;

}

2) Service:

class SimpleBatchJobService  extends SysOperationServiceBase

{

}

 [SysEntryPointAttribute]

publicvoid run(SimpleBatchJobContract _batchJobContract)

{

    ;

    try

    {

        info(strFmt('%1',_batchJobContract.parmText()));    }

    catch

    {

        info(funcName());

    }

}

 3) Controller:

// Объявление класса-наследника SysOperationServiceController

class SimpleBatchJobController extends SysOperationServiceController

{

}

 

// Данныйметодсодержитописаниезадачи

public ClassDescription caption()

{

    return("Пример простого пакетного задания");

}

protectedvoid initService()

{

    this.parmClassName(classStr(SimpleBatchJobService));

    // Указание метода Serviceкласса, который будет запущен

    this.parmMethodName(methodStr(SimpleBatchJobService, run));

    // УказаниережимазапускаклассаService

    this.parmExecutionMode(SysOperationExecutionMode::Synchronous);

}

publicstatic SimpleBatchJobController construct()

{

    returnnew SimpleBatchJobController();

}

publicstaticvoid main(Args _args)

{

    SimpleBatchJobController controller;

    ;

    controller = SimpleBatchJobController::construct();

    controller.initService();

    controller.startOperation();

}

when i try to launch controller class I get the error:

No metadata class defined for data contract object

Can you help me to understand what's wrong?

Thanks.

End production: negative cost amount for receipts is not allowed

$
0
0

Dear Experts  , 

I am facing error while ending production order stating "negative cost amount for receipts is not allowed "  , this production order has picking list which contains item posted with - negative qty ( wastage item to generate scrap ) more than the qty of production order. Say Production order is for 100 kg  and wastage produced 223 kg ( as this was a trial product so we have generated more wastage ) 

Can anyone explain the reason and the solution ?

new windows are opening in background by default

$
0
0

How can I set the default so that new windows don't open in the background?

Import XML Bank Statement to AX 2012

$
0
0

Greetings

I am looking for some advice about how can I import bank statements that are coming in XML format to AX 2012? I already learned how to parse it in X++, but now i am stuck at the question "where should I put those fields?". Maybe there is easier way of importing those files?


Display product image in ax 2012

$
0
0

Dear Experts,

I know it's a silly question but anyhow.

I have one x++ report for inventory and need to display the product image on this report.

May I know how can i do this.

Regards,

Ahmed

Display method on query range

$
0
0

Hi Guys,

I have a display method in Vend Trans Table displayDiscountDate() which gives the cash discount date for the vendor transactions. I want to give this display method in Query range in ssrs report. I tried by giving it but  can't be done, because queries are run on SQL Server while display methods are defined in Dynamics AX.  Can you please advise on this. I heard about sysqueryrangeUtil class but not sure how to use that. Please help me

        query = new Query();

        qbdsvendTrans = query.addDataSource(tableNum(vendTrans), tableStr(vendTrans));

        qbdsvendTrans.addRange(fieldNum(VendTrans, displayDiscountDate())).value(queryRange(fromdate,todate));

Can we import/apply Product template while importing products in ax 2012?

$
0
0

Hi All,

Can we apply product templates while import products in ax 2012?

Thanks,

Vkunchakuri

SSRS report and grouping

$
0
0

Hello ALL,

Need some guidance on SSRS group header visibility property. There is grouping on report based on account expression

  

Group header needs to repeat in each new page in case number of transactions are more to accommodate in one screen.

I have set properties as 1st screen to repeat group in each page. However on next page group expression is not coming.

Any suggestion are appreciable.

Thanks

Neetu

Enterprise Portal Get Parameters and caller form name in asp

$
0
0

Hello, 

I want to get Caller Form Name and Parameters passed to current web menu item I can do the same thing in AX form as the following code 

element.args().menuItemName();
element.args().parm();
how can I do the something in Page Load method of Web control.
Thanks in advance. 

Creating a query object that takes user input before initializing?

$
0
0

Hello.

I need to create a way for users to be able to quickly view all line items for a single customer.  While there is a way to do this in AX already, we have made customizations to our customer merging so that when we want to see all the line items for a single customer, we also want to see all the line items for any customer that is merged to that original customer.  This isn't possible for the existing implementation, and I feel that it would be easier to create a new menu item to do this functionality rather than try to overhaul the existing one.

I'm thinking the easiest way to do this is to create a new menu item, then upon clicking that menu item, a simple dialog box shows up asking the user to input an account number.  Then after entering the account number, you click OK, which uses that user input for the query object which initializes and pulls up the grid that shows all the line-items for that customer and the merged accounts.  The problem is, I'm not sure this will actually work as I've never been able to utilize user input in a query object before, and I'm not sure where to put the code for the dialog box.  I tried checking the MS docs online for examples using query objects, but none of them did anything fancy like this (they just used static values).  Can anyone provide me with the general steps of how to implement this, or provide an alternative way that may be easier?

Print destination settings comes up with the last person printer settings values

$
0
0

Hi,

When setting up printing for the route card report it seems that all values are based on the last person to adjust the print settings.

It takes a long time for the Print destination settings form to come up and in this case I don’t even have this printer.

Any idea to solve the issue?

Thanks

Shan


How to display header text in grid column based on the row/cell value dynamically?

$
0
0

Hello,

  Is there a way to dynamically change the text of a column header in a Grid based on the valued of the cell text? I have a grid that may have say 10 rows and in a particular column I am displaying some number and a dynamic string. The dynamic string would be same for all the 10 rows at any time for a specific column and users want the column name to be changed dynamically based the string value in the cell. Is there a possibility or work around? 

Thanks,

Dave

Add condition to create load AX 2012

$
0
0

Hi AX Geeks,

I want to add a purchase order to the load that I am creating. But if the domiciliation date of the purchase order ( a specific filed added to the PurchTable) is less than 30 days, then block the creation of the load.

Here is the interface when the work need to be done: 

I created this method in LoadTable :

public Boolean checkDomicilationDate()
{

whsLoadline loadLine;
PurchTable purching;
DimensionAttributeValueSet dimAttrValueSet;
DimensionAttributeValueSetItem dimAttrValueSetItem;
DimensionAttributeValue dimAttrValue;
DimensionAttribute dimAttr;
Common dimensionValueEntity;
str dimensionValue;

boolean ret;

ret = true;


select * from purching order by purching.domReqDate desc where purching.PurchId==this.OrderNum;
{
/////// info dimension sales or production /////
dimAttrValueSet = DimensionAttributeValueSet::find(purching.DefaultDimension);

// Find all of the 'value set items' linked against the 'value set'
while select dimAttrValueSetItem
where dimAttrValueSetItem.DimensionAttributeValueSet == dimAttrValueSet.RecId
{
// Find the dimension 'value' (DimensionAttributeValue) that the set item points to.
dimAttrValue = DimensionAttributeValue::find(dimAttrValueSetItem.DimensionAttributeValue);

// Find the underlying attribute.
dimAttr = DimensionAttribute::find(dimAttrValue.DimensionAttribute);


If(dimAttr.Name=='Activity')
{
if(dimAttrValue.getValue()=="REV")
{
if(today()-purching.DOMReqDate<30)
{
ret = checkFailed(strFmt("The domiciliation date is less than 30 days, you cannot create load"));
}
else
{
ret= true;
}
}
}
}
}

return ret;
}

And I called this method in callLoadTemplateAssignment() method of the class WHSLoadPlanningWorkbenchForm : 

public WHSLoadTable callLoadTemplateAssignment(
WHSLoadTable _whsLoadTable,
boolean _newLoad,
Object _caller)
{
Args args = new Args();
FormRun templateAssignment;
WHSLoadTable loadTable = _newLoad ? null : _whsLoadTable;

args.name(formStr(WHSLoadTemplateAssignment));
args.caller(_caller);
args.parmObject(this);
args.record(loadTable);

templateAssignment = classfactory.formRunClass(args);
templateAssignment.run();
templateAssignment.wait();

if (templateAssignment.closedOk())
{

if (_newLoad)
{
loadTable.setLoadId();
loadTable.LoadDirection = loadDirection;
loadTable.initFromLoadTemplateId(loadTemplateId);
loadTable.LoadPaysFreight = this.parmLoadPaysFreight();

if(loadTable.checkDomicilationDate())
{

loadTable.insert();
}
}


else
{
// ensures that load directions match between the associated orders
if (loadDirection != loadTable.LoadDirection)
{
throw error(strFmt("@WAX1682", loadTable.LoadDirection));
}

// ensures that the Pays Freight on the associated orders' dlvTerms are in sync
if (loadTable.LoadPaysFreight != this.parmLoadPaysFreight())
{
throw error(strFmt("@TRX1630", this.parmLoadPlanningWorkbenchServerForm().parmOrderNum()));
}
}

_caller.addLoadLines(loadTable);

}

this.clearGlobalVariables();

return loadTable;
}

This solution didn't work for me.

Any suggestions, please?

Batch Job Works Incorrectly

$
0
0

Hello experts,

I'd like to get any help from you.

I'm using AX2012(default version), not R2 or R3.

The kernel version of AX is 6.0.1108.3459 and application version is 6.0.1108.670.

My problem is batch job which doesn't work correctly.

The batch is working every single 2 minutes, and batch job history shows all "Ended" without any error log.

The main purpose of the batch is to change status "S" when the batch works correctly and when it has error it will change into "E".

After end of the batch job, the status is changed into "E", even though the batch job history doesn't show any error or problem.

So I tried to debug the class so that I check if some of its code have problem, but it doesn't have problem.

Moreover, the very thing that made me wondered was if I run the class manually(not by batch job), it worked correctly and it return the status "S"(which means it succeeded).

Consequently, What I want to ask is why the class works in wrong way when it run by batch and it works correctly when it run by manually.

How can I approach to solve this issue, please give me any idea about it.

Thanks.

Dynamics 365 Finance and Operation

$
0
0

Hello,

I would like to download Dynamics 365 Finance and Operation VM for training.

Would someone please help and provide me the links?

Many thanks in advance and very appreciated.

Edwin

Export operation number and operation name

$
0
0

Dear experts!

Could you pls guide me how to export all operation number and operation name from Dynamic AX2012 to excel file.

Currently i copy and paste one by one from AX to Excel, that's not a good idea, and cost me a lot of time.

Thank you so much in advance for your help!

Viewing all 175888 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>