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

Datasource of type View donit user find first fast

$
0
0

I have a View in a datasource on my Form 

it is the second datasource,

on the init I Add these lines

  public void init()
        {
            super();
            this.queryBuildDataSource().firstFast(true);
            this.queryBuildDataSource().clearDynalinks();   
            this.queryBuildDataSource().addDynalink(fieldNum(View,field1),ParentTable,fieldNum(ParentTable,Field1));
            this.queryBuildDataSource().addDynalink(fieldNum(VIew,field1),ParentTable,fieldNum(ParentTable,Field2));
        }

it works fine, but it is slow with 3000+ lines, with trace profiler I see the query is not with option find first fast.

PS. the query below the view has on all places find first fast.


RE: Demo VM download

$
0
0

Hi Martin,

There was no choice for 365. Please see image.

KR,

Michalis

Demo VM download

$
0
0

Hi All,

is there any link to download a VM  with D365 (as it is for MS AX 2012 R3)?

BR,

Michalis

RE: Project adjustment error - Root node activity

$
0
0

Hi Roberto,

Now I know the full picture. Possibly you can solve it using a new timesheet. Enter a minus line for the wrong entry and a new line for the correct data. But I don't know what exact changes you have done related to the funding rules if this would be possible now.

Project adjustment error - Root node activity

$
0
0

Hi.

I am trying to post a project adjustment of a timesheet line, and I keep getting this error:

"Root node activities cannot be selected for recording time."
How can I create and post and adjustment for this line or what should I do? I can't find a solution for this.
Thanks,
Roberto

RE: Time sheet Automatic Post Batch Process

$
0
0

Hi Padma,

Check LCS issue search for possible known issues and hotfixes. I'm aware of e.g: "KB 4034214 Automatic timesheet posting failing randomly" which has been released for AX 2012 R2

RE: Consuming 3rd Party RESTful APIs in AX 2012 R2

RE: SMS Alert configuration

$
0
0

Dear Guys,

Thanks for the suggestions.

Actually, our vendor is going to implement sms alerts in our AX. This task requires development work so that's why they are taking responsibility to do this for us.


RE: Demo VM download

$
0
0

You are not logged on to an Office365 account that has Dynamics 365 for Operations licensed on it. The one you have seems to be a LiveID account which has AX 2012 and a couple of other products enabled, this account will simply not work.

Use one which is enabled for D365fO, such as the one you could procure if you subscribe for the Technical Preview for AX 7.

RE: SMS Alert configuration

$
0
0

Your vendor will implement it in a way we have suggested most likely, so kindly take your time to mark all helpful answers on the right with the checkbox to resolve the topic.

SMS Alert configuration

$
0
0

I have been assigned a task to configure SMS based alert system in our organization. Well, i've no idea where to start from. Can any body please help me out with this. I have searched www for this purpose but got no favorable information regarding this task.

Awaiting.

RE: How to calculate LedgerJournalTrans GSt Tax line Information

$
0
0

Hi Andre,

Thankyou for the reply.

Atleast you gave reply.

No one in this forum is giving replies.

I will Search more and will update soon.

Thankyou

RE: GST- not Calculating for Project Invoice-India Tax

$
0
0

Hi Raghav,

We are facing the same issue.

Did you manage to calculate GST in project invoice??  If so, can you please share the solution.

Thanks

Bheem

GST- not Calculating for Project Invoice-India Tax

$
0
0

Hi Friends,

I am doing setup for GST-India, based on TaxEngine Setup document, i have configured GST setup but when i create project invoice, GST is not calculating and tax values showing zero.

but when i create Free text invoice with the same customer GST is calculating correctly, please suggest on the same.

If i did wrong setup's GST should not calculate for Free text invoice also i think.

is i need to do Extra setup's for Project module, please suggest on the same.

Regards.

Raghav.

RE: Time sheet Automatic Post Batch Process

$
0
0

Hi Andre,

      Can please explain little  briefly about your suggestion.


RE: Multithread batch job parm

$
0
0

Try to remove the piece where you forcibly want to run the task without saving your batch header with the newly added task. Let the batch job scheduler within the AX AOS pick them up after they are saved.

If you check the example and the comments for it, you could see that they run it client side when calling run on the controller class:

http://www.artofcreation.be/2012/02/27/adding-runtime-tasks-to-a-business-operation-framework-service/

Also please reformat your post using the Rich text format editor with the Code snippet tag </> because it is currently unreadable due to missing indentation and braces.

You could validate on the individual batch tasks using the Parameters button to see what is being passed in. Instead of using a record buffer, try to just pass in RecId maybe.

Multithread batch job parm

$
0
0

Hi guys,

I'm spending too much time on my first parallel code in AX 2012 so I'd like to use some help.

What I need to do is to fill one table with many data using query and some calculations. (Single thread batch took more than a day and I need to optimize it)

Now I have three classes, main class which is called from menu item, class with logic and contract for parm methods.

This is my process method of the class which is called to start the batch.

[SysEntryPointAttribute]

public void process()

{
Query query = new Query(queryStr (ASCSProfitMargin)); // Query name.
QueryRun qr;
QueryBuildRange qbr;
fromDate= Datestartmth(datemthFwd(systemdateget(), -11));
toDate= systemdateget();

qbr = query.dataSourceTable( tableNum (custInvoiceTrans)).addRange( fieldNum (custInvoiceTrans, InvoiceDate));
qbr.value(SysQuery::range(fromDate, toDate));
qr = new QueryRun(query);

ttsBegin;
delete_from table;
ttsCommit;
while (qr.next())
{
mController = new SysOperationServiceController(classStr(ASCProfitMarginRunTaskService),
methodStr(ASCProfitMarginRunTaskService, process));

// Fetch the data contract from within the controller
mContract = mController.getDataContractObject('_theContract');

mContract.parmCustInvoiceTrans(qr.get(tableNum (CustInvoiceTrans)));
mContract.parmCustInvoiceTransDim(qr.get(tableNum (ASCCustInvoiceTransDim)));

// Check if we are batch processing or not
if(this.isExecutingInBatch())
{
if(!mBatchHeader)
{
mBatchHeader = BatchHeader::getCurrentBatchHeader();
}

// Create a runTimeTask within the current batch job
mBatchHeader.addRuntimeTask(mController, this.getCurrentBatchTask().RecId);
}
else
{
// Just run it immediately
mController.run();
}
}

// If we're processing in batch, then save the batch header
if(mBatchHeader)
{
mBatchHeader.save();
}

}

It's creating main batch and many small batches but they inserting empty lines.

That's the method of threads logic:

public void process(ASCProfitMarginDataContract _theContract)
{
try
{
ttsBegin;
fromDateDialog = Datestartmth(datemthFwd(systemdateget(), -2));
// fromDateDialog = Datestartmth(datemthFwd(systemdateget(), -11));
toDateDialog = systemdateget();
// monthCount = 12;
monthCount = 3;

custInvoiceTrans = _theContract.parmCustInvoiceTrans();
custInvoiceTransDim = _theContract.parmCustInvoiceTransDim();

<--- there's my calculation logic --->

tableProfitMargin.insert();
ttsCommit;
}
catch (Exception::Deadlock)
{
retry;
}

}

The problem is that it's inserting many records but all of their values are null.

It looks like it didn't takes data from contract parm or something like that. Am I missing something?

That's one of parms method I use example:

[DataMemberAttribute]
public CustInvoiceTrans parmCustInvoiceTrans(CustInvoiceTrans _custInvoiceTrans = custInvoiceTransSum)
{
;
custInvoiceTransSum = _custInvoiceTrans;
return custInvoiceTransSum;
}

RE: Fixed assets customized report creation in SQL report builder

$
0
0

Hi,

The asset book and asset trans table contain those values.

Based on the values that you find there, you have to calculate the total depreciation and the net book value of the assets.

Those tables don't contain those values itself; that's why a calculation is required.

For details, please take a look at the asset statement classes.

Best regards,

Ludwig

RE: Fixed assets customized report creation in SQL report builder

$
0
0

If you know the location of the fields within AX, then Right click the field > Personalization, then in the bottom right corner you would see what form datasource / table and field, or display/edit method is being used.

It is also possible that in some cases it is not a (datasource-)bound field, but the value is calculated and assigned from code. In that case using the AOT in the AX developer client and checking the form control should reveal what piece of code is being used for the calculation such as a class. You can work your way back from there to figure out what to put on your report to get the expected results.

Fixed assets customized report creation in SQL report builder

$
0
0

Hi All,

I am new to DAX development area.
I've been assigned a task to create location wise fixed asset report according to following format:

DOPLocationCodeGroupDecriptionCostDepreciationAccum. DepreciationNet Book Value

7/1/2016

 ABC

RE013

AC

AC-2-RE013

45,000

20%

25,600

19,400

I've already created the report up to 70% but i am not able to find the Net Book Value and Fixed asset depreciation value from any DB table. Here are the tables which i've closely analyzed.

[ASSETDEPRECIATIONPROFILE]
[ASSETBOOKTABLE]
[ASSETTABLE]
[ASSETBOOK]
[ASSETBOOKMERGE]
[ASSETTRANS]
[ASSETBALANCES]

Can anyone please help me with this issue. Where to find depreciation value and net book value from database. I've to submit the report very soon.

Thanks in advance.

R

select * from [dbo].[ASSETDEPRECIATIONPROFILE]
select * from [dbo].[ASSETBOOKTABLE]
select * from ASSETTABLE
select * from [dbo].[ASSETBOOK]
select * from [dbo].[ASSETBOOKMERGE]
select * from dbo.ASSETTRANS
select * from ASSETBALANCESelation

Account codeAccount selection

Item

code

Item relation
Price (sales)GroupTrdAgrWSTable000103
Viewing all 175888 articles
Browse latest View live