Quantcast
Channel: Martin Dráb's Activities
Viewing all 17532 articles
Browse latest View live

Runbase batch and SysOperation Framework

$
0
0

Dear All,

As i know SysOperation framework is following MVC Architecture and It's run on CIL because of that SysOperation execution is much faster than RunBase batch.
Could you please let me know is Runbase batch is also run in CIL? and any other difference between RunBase batch and SysOperation framework.

Thanks!

Regards,

Arpan Sen


Insert a single record

$
0
0

Hi

I have following SQL to insert a single record in CaseDetailBase Table.

ttsBegin;
            select forUpdate caseDetailBase;
                caseDetailBase.ProdId           = prodTable.ProdId;
                caseDetailBase.ProjIdRef        = prodTable.ProjId;
                caseDetailBase.Description      = 'GIS';
                caseDetailBase.Status       = prodTable.ProdStatus;
                caseDetailBase.insert();
            ttsCommit;


I get thi serror when I run it:

Cannot create a record in CaseDetailBase. Description: GIS already exists. 

Compile AX using axbuild.exe

$
0
0

Is there any proper document on how I can use the axbuild.exe command in cmd with proper steps. All I know it is quick way to compile the AX but how it works I don't know. Also my compilation from the default AX environment takes hours on compilation so this will be good option to use.

I know we have to use

axbuild.exe  xppcompileall  /s=01
C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin

But how it is used I don't know. Can someone guide me on this?

Import of Fee Journal Via Excel

$
0
0

Hi,

I am trying to import Fee Journal data using Excel Add-in and getting following error

The value in field VoucherNumberSequenceTable is invalid.

Please Advise.

Thanks

Pallavi


                       

How to add display method in query range?

$
0
0

There is a column(TestQty) in a listpage . Value of that column is populated from by a display method. It is not from a table field.
I want to add range on a query which will filter data based on that column's value 

Like I want to fetch those values for which TestQty>0
How can I achieve that?

How to restore the backup in AX or SQL from the previous backup?

$
0
0

Can someone please share the steps or a really good documents on how we can restore the previous backup into Dynamics AX 2012 R3 or from SQL database?

Workspace Tiles for records

$
0
0

Is it possible to add workspace tiles dynamically in an AX7 workspace? For example you have a data table and you want to represent each record with a tile in the workspace. When you add or remove a record in the table the workspace should also add or remove a tile in the workspace.

Business connector InvalidLogonInSingleSessionException

$
0
0

Hello,

I am working on an integration project (AX and third party shipping software).

This shipping software has an API based on the WCF service.

For some reasons (nested classes and etc.) I developed ‘wrapper’ library in C# and deployed it to AX.

This works good both on the AOS and client, however there is one issue:

To avoid a hard-code, I decided to create a parameters table in AX and get some values from there through Business connector. This approach did not work and I was getting “InvalidLogonInSingleSessionException” every time. Nevertheless the same code works perfectly in a separate application (for instance console app). My understanding is that it is because my assembly is loading by AOS or AX client, and should be another way to access the AX tables. Unfortunately, I did not find the answer anywhere, even in Microsoft.Dynamics.BusinessConnectorNet library itself.

Then I used to add the AX table directly to my library project, but it works only on the client. In any case, I personally dislike this solution.

So the question is: how to log in and access the data in AX from .NET library that has already been loaded by AOS?

I am newbie in AX and in development in general, so I really want to know what I did wrong.

Any help will be appreciated.

Thanks


x++ List of all Methods on a table.

$
0
0

Hi.

I need to retrive a list of all methods on a table.

I tried the following

SysDictTable dTable = new SysDictTable(tableName2Id('CustInvoiceJour'));
et dictMethodSet = dTable.methods(true, true, true);

SetEnumerator iter = dictMethodSet.getEnumerator();

while (iter.moveNext())
{
dMethod = iter.current();

info(dMethod.name());
}

 I Also tried.

Microsoft.Dynamics.AX.Metadata.MetaModel.AxTable table = Microsoft.Dynamics.Ax.Xpp.MetadataSupport::GetTable("CustInvoiceJour");

Microsoft.Dynamics.AX.Metadata.Core.Collections.IKeyedObjectCollection sen =  table.Methods;

for (int i = 0; sen != null && i < sen.Count; i++)

{
Microsoft.Dynamics.AX.Metadata.MetaModel.AxMethod method = sen.getObject(i);
info (method.Name);
}

Both methods have the same Issue, they do not include extension Methods.

public static class OTDTableMethod_Extension
{

public static str otdFullName(CustInvoiceJour _custInvoiceJour)
{
return 'test';
}

}

Is there anyway to get all methods for a table or anyway to get all extension methods ?

Compile and Compile forward

$
0
0

Hi All,

What is the difference between Compile & Compile Forward ? When we used Compile Forward.

Can you please give more shed on this.

Thanks!

Regards,

-Arpan Sen

Tables and Classes involved in production process

$
0
0

Dear All,

I am new in Production Module. I want to know detail about production module.

Could you please let me know which Tables and Classes are involved in production process.

Thanks!

Regards,
Arpan Sen

Layer conflicts and Model ID conflicts

$
0
0

Dear All,

Some time it's happened when we move our objects from one environment (TEST) to another environment (DEV).
Could you please let me know what is the reason behind Layer conflict and Mode ID conflict? How to resolve both conflicts. Please give me an example.

Thanks!

Arpan Sen

How to join two tables AssetTable and OMOperatingUnit

$
0
0

Hi all,

My question is that how to join two tables AssetTable and OMOperatingUnit so that field "Name" of table OMOperatingUnit should be displayed in AssetTable(AOT) instead of Record-id(OMOperatingUnit).

suppose i recently start working in AOT.

see the picture for further assistant :

thank you

ASCIIIO file import System.NullReferenceException: Object reference not set to an instance of an object.

$
0
0

Hi All,

I'm trying to import ";" delimiter file through batch. I get an error System.NullReferenceException: Object reference not set to an instance of an object. 

importFileLoc = new AsciiIo(filePath, 'R');

importFileLoc.inFieldDelimiter(Delimiter);

The filePath which I selected in dialog, does have value in the RUN method when run through Batch. Can somebody help me in resolving this issue.

Regards,

Pradeep

How to add image to a product using DMF

$
0
0

Hi,

I want to add product with images using DMF ,but i am not getting the image field under Product entity.

Please Advise.

Thanks

Pallavi


How to pass defaultDimensions in AIF document service XML(File system adapter) ?

$
0
0

Hi All,

Can you please suggest, how to pass the defaultDimension values in xml file for AIF document service using file system adapter.

The following is my sample file format.

 

<?xml version="1.0" encoding="utf-8" ?>
<Envelope xmlns="http://schemas.microsoft.com/dynamics/2011/01/documents/Message">
<Header>
  <MessageId>{5603D03A-4330-404D-9F27-168BE0FEA13E}</MessageId>
  <Action>http://schemas.microsoft.com/dynamics/2008/01/services/LedgerJournalService/create</Action>
</Header>
  <Body>
    <MessageParts>
      <LedgerJournal xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/LedgerJournal">
        <LedgerJournalTable class="entity">
          <JournalName>GenJrn</JournalName>         
     <LedgerJournalTrans class="entity">
     <AccountType>Ledger</AccountType>
            <AmountCurCredit>0</AmountCurCredit>                      
            <AmountCurDebit>21</AmountCurDebit>           
            <CurrencyCode>USD</CurrencyCode>           
            <TransDate>2015-02-05</TransDate>
            <Txt>TestTxt</Txt>
          </LedgerJournalTrans>
  
        </LedgerJournalTable>
      </LedgerJournal>
    </MessageParts>
  </Body>
</Envelope>

I tried to pass in the following format but it doesn't work.

<DefaultDimension>
<Values xmlns="http://schemas.microsoft.com/dynamics/2008/01/sharedtypes">
<Value>
<Name>MainAccount</Name>
<Value>110110</Value>
</Value>

</Values>
</DefaultDimension> 

 

Thanks

Nagaraj

Add azure connection

$
0
0

dear Sir,

when looging to : https://lcs.dynamics.com

Lifecycle Services > could host environment > +Add azure connection

After supplying name and subscription ID, and requesting Download, we get error the following error:

 

 403 - Forbidden: Access is denied.

You do not have permission to view this directory or page using the credentials that you supplied.

 

please can you provide any help ?

 

Thank you

 

[E-mail address removed by a moderator to protect the user against spam bots.]

Customized Sales Totals Summary Part

$
0
0

Hello,

I am created the two tables called salestotalssummary and SalesEncumbranceSummary with some fields related to summary of the sales order.

Customize the Class Sales total to get the summary fields.

This customization is based on the purchtotalsummary in standard ax.

After creating the new sales order in summary section amount and sales tax is coming, but currency and total amount is not coming.

Once i am click the sales order confirmation button it is throwing the debugger error.

Please find the below details what i am develop and customize to get this.

Tables/SalesTotalsSumamry (New)

Tables/Salesparameters

Tables/SalesEmburanceSummary (New)

Class/SalesTotals

Class/SalesTotals_Trans

Class/SalesTotalsSummaryController (New)

Form/SalesTable

Form/SalesTableListpage

Form/SalesTotalsSummaryPart (New)

FormParts/SalesTotalsSummaryPart

Menuitem/Display/SalesTotalsSumamryPart

SoundEx function

$
0
0

Dear Friends

Can you explain how to use the soundex function in ax 2012 using x++ code.

Thanks in advance.

Changes lost after checking-in menu items

$
0
0

Hi all,

  Recently, I am experiencing very strange behaviour with menu items and TFS.

  More specifically, I made changes on several menu items and checked them in all at once.  Unfortunately, the changes on half the menu items were lost.  If I go on the menu items where I have lost the changes and view the history, the latest changeset is not listed.  This leads me to believe that these menu items were NOT even checked in while the rest were for some reason or another.  However, I did not receive any errors or warnings during the check-in.

  Furthermore, if I check-out one of the menu items where I have lost the changes, do the changes again and check-in, sometimes it works.

  Has anyone encountered this behaviour before?  Why is this happening?  I have only noticed this happening on menu items till now only.

Viewing all 17532 articles
Browse latest View live


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