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

Manage mandatory field in OuterJoined form datasource

$
0
0

Hi,

Here is my requirement :

DataSourceA with fields A.recId, A.Name, A.DataSourceBRefRecId

DataSourceB with fields B.recId, B.Name, B.someData (Mandatory on table lvl)

DataSourceB OuterJoin DataSourceA.

A.DataSourceBRefRecId can be empty.

When I update record in DataSourceA with A.DataSourceBRefRecId empty(0 in database), I got the errorBox : B.someData is mandatory.

How to avoid this ? I have no more idea of what checking. (I dont want to disable mandatory property of tableB.someData).

I hope this is clear, if not, I will be there to provide more informations.

Thx


Missing Item model group

$
0
0

A value is missing. Enter a value in the Item model group field in the Released product details form for product 801 to be able to proceed.

I am getting above mentioned error while importing sales order line. I have checked that item model group has already been set to product 801, but still facing this error.

Please help to resolve this issue.

I also went through discussion on above issue in community forum and also followed same but still error has not been resolved.

account number for transaction type exchange rate loss does not exist while doing foreign currency valuation in AP

$
0
0

Dear All

Good Morning!!

Please be informed that i am also getting same error and i have setup 

1  GL >> Posting >> accounts for automatic transactions 

2. GL >> setup >>Ledger >> realized gain/loss and unrealized loss/gain accounts 

Here i need to know whether we need to select  realized gain/loss and unrealized loss/gain accounts for related currencies also or not

since we have selected same accounts at ledger as specified above point # 2 so i think we no need to specify accounts for each currency 

We would request you all please check and clarify above clarification 

suppose it is  a bug please let us know the hotfix for the same and do the needful.

Thanks inadvance

Best Regards

DAM

foreign currency revaluation error in AP

$
0
0

Hi

Please be informed that we are getting below error while running the foreign currency revaluation in AP module 

Error: Account number for transaction type exchange rate loss does not exist 

Ax: 2012

further we have check the below related setups which already exist with related accounts

GL >> Setup>> Ledger >> Realized gain, Realized loss, Unrealized gain,Unrealized loss

and

auto posting account for Exchange rate loss,Exchange rate gain

but

for any currency master level not defined any exchange rare loss gain accounts, please check and let us know may be this cause, 

We would request you to check and let us know this is due setup issue or data issue

your early reply is highly appreciated 

Best Regards

DAM

Lookup control: show Name for the user but get ID in x++

$
0
0

Hello Everyone,

I create a lookup control. i displayed 2 fields (Id and Name) like the that : 

SysTableLookup            sysTableLookup;
    Query                          query;
    QueryBuildDataSource  qbds1;
    FormStringControl callerControl;
    ;
    sysTableLookup = SysTableLookup::newParameters(tablenum(UserInfo),this);
    query = new Query();
    qbds1 = query.addDataSource(tablenum(UserInfo));
    sysTableLookup.addLookupField(fieldNum(UserInfo, Id));
    sysTableLookup.addLookupField(fieldNum(UserInfo, Name),true);
    sysTableLookup.parmQuery(query);
    sysTableLookup.performFormLookup();

How can i get the Id value when i select one row from the lookup?

Remark : I can have many rows in the lookup with the same Name

exp : Id      |    Name

        123    |  "Text1"

        144    |  abc

         985   |  "Text1"

Thanks a lot :) 

Dynamics AX 2012 User permission issue

$
0
0

Issue::

====

Discount field is not able to edit in AX 2012

Path:

====

Accounts Receivable--->Common--->All Sales order--->Sales order lines

Permission to user:

===========

Discount field is not editable if user is given all permissions except admin permission, Please find screen shot. If Admin permission is given the field is editable. 

  • Edit button is selected on the form
  • There is no customization on the field
  • Table :: SalesLine Field :: LineDisc
  • There are no extra policy settings , it is same as standard.  Any suggestion is appreciated. 

Thanks in advance

How to set Privilege to different roles the Sales Picking list and Packing slip post rights

$
0
0

Hello All,

I had a problem.

I need to assign the Sales and Marketing \ All sales orders\Pick and Pack\Picking list and Packing Slip's

post privilege.

They use the same form - SalesEditLine  but Picking list use Caller - SalesFormLetter_PickingList

Packing Slip use Caller - SalesFormLetter_PackingSlip

Could set the different Privilege for different roles?? and How to do?

Please help.

Thanks in advance.

BR, Jen

How to get Dimension value and put into table

$
0
0

This is Financial dimension under sales and marketing. How can I get * SalesRepresentative value?? 


AX is not opening

$
0
0

Hi All,

We have installed new DEV environment AX 2012 R3, AX was working properly till yesterday, to configure EP team has installed Share point 2013 , from that time on wards we are not able to open AX , it is opening the attached screen shot , we have checked the event viewer logs , getting the below errors, 

Do we need to re-install AX again or is there any option to reolsve this , please advise us. 

 Could not load assembly 'Microsoft.Dynamics.Retail.StoreConnect.TransAutomClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64' or one of its dependencies.

 Could not load assembly 'TillLayoutDesigner, Version=6.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.

Could not load assembly 'SystemSettings, Version=6.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.

 Could not load assembly 'Microsoft.Dynamics.Retail.TillLayoutDesigner, Version=6.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.

 Could not load assembly 'RetailControls, Version=5.3.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.

Regards,

Akbar

edit a query in a list page form but the filter is not use

$
0
0

Hi all,

I need to add a few criteria to a query in the listpageform, and prompt the user for criteria and then send that input to the datasource to executing my query. I have override the initializeQuery() like following:

public void initializeQuery(Query _query)

{

   QueryRun           qr;

   SMAAgreementLine   smaAgreementLine;

   FormDataSource formDataSource = new FormDataSource();

 

    _query.dataSourceNo(1).addRange(fieldNum(smaAgreementLine, Suspended)).value(SysQuery::valueUnlimited());

   qr = new QueryRun(_query);

 

   if(qr.prompt())

   {

       _query = qr.query();

   }

   super(_query);

}

After that open the form and change the filter to Service agreement "00001", click ok. But the result is not applied the new filter( the result is still SysQuery::valueUnlimited() filter).

We cannot send the user's input to datasource and execute the new filter.

 

After debugging, I found the query has been actually changed but not execute. Could you please help me? Thank you very much.

Query Repro_ServiceAgreementLineQuery object 1cbda3d0: SELECT * FROM SMAAgreementLine(SMAAgreementLine_1) WHERE ((AgreementId = N'00001')) JOIN * FROM SMAAgreementTable(SMAAgreementTable_1) ON SMAAgreementLine.AgreementId = SMAAgreementTable.AgreementId JOIN * FROM ProjTable(ProjTable_1) ON SMAAgreementTable.ProjId = ProjTable.ProjId JOIN * FROM ProjInvoiceTable(ProjInvoiceTable_1) ON ProjTable.ProjInvoiceProjId = ProjInvoiceTable.ProjInvoiceProjId JOIN * FROM ProjFundingSource(ProjFundingSource_1) ON ProjInvoiceTable.ProjInvoiceProjId = ProjFundingSource.ContractId OUTER JOIN Person, Person FROM HcmWorker(Ref_HcmWorker_HcmWorker) ON SMAAgreementLine.Worker = HcmWorker.RecId OUTER JOIN Name, RecId FROM DirPerson(Ref_DirPerson_HcmWorker_DirPerson_FK) ON HcmWorker.Person = DirPerson.RecId

Management reporter user access

$
0
0

Hi ,

i have installed Management reporter CU10  in my machine and did the data mart configuration to integrate with AX 2012 R3.

But we dint register the license key , so we have limited user access.SO i thought to remove administrator user access and tried to add new user with administrator access.

But it is not removing from MR even i removed from AX and also i tried to update security user,securtypermissionintegration table with another user.it updated the MR DB and in MR report designer i can  able to see the users with that rights, but when i try to open the report with that user access,it is  showing has "Permission are nto there for this user,contact your system administrator".

Can anyone help me with this.

Get Address with Full Country Name

$
0
0

Dear All,

I use Microsoft Dynamic AX 2012R3

I create a function to get primary address of customer

Here is my code

public String255 getPrimaryAddress(AccountNum _accountNum)
{
    CustTable       custTable;
    DirPartyTable   dirPartyTable;
    DirPartyLocation    dirPartyLocation;
    LogisticsLocation   logisticsLocation;
    DirPartyPostalAddressView postalAddressView;

    custTable       = custTable::find(_accountNum);
    dirPartyTable   = DirPartyTable::findRec(custTable.Party);
    dirPartyLocation    = DirPartyLocation::findPrimaryPartyLocation(dirPartyTable.RecId);
    logisticsLocation   = LogisticsLocation::find(dirPartyLocation.Location);
    postalAddressView   = DirPartyPostalAddressView::find(dirPartyTable.RecId,logisticsLocation.RecId);

    return postalAddressView.Address;
}

And this is an example of address I get

As we can see, the bottom of address I can get short name of country

How to make it full name country?

Thanks in advance

Best Regards,

Bintang

Modifiedfield method in Table Extension

$
0
0

Hi All,

I want to when inputting ItemId, some fields will be filled automatically. But I don't know the problem with my coding so it can't input automatically. I have debugged and the field is filled. However, when the field is executed it is not filled. Does anyone know what's the problem?

[Extensionof(tableStr(SalesQuotationLine))]
final class SalesQuotationTable_SalesPrice_Extension
{
    [DataEventHandler(tableStr(SalesQuotationLine), DataEventType::ModifiedField)]
    public static void SalesQuotationLine_onModifiedField(Common sender, DataEventArgs e)
    {
        ModifyFieldEventArgs    event           = e as ModifyFieldEventArgs;
        SalesQuotationLine      salesQuotLine   = sender as SalesQuotationLine;
        FieldId                 fieldId         = event.parmFieldId();
        PriceDiscTable          priceDiscTable;
        switch(fieldId)
        {
            case fieldNum(SalesQuotationLine,ItemId):
                select priceDiscTable where priceDiscTable.ItemRelation == salesQuotLine.ItemId && priceDiscTable.ItemCode == PriceDiscProductCodeType::Table;
                if(priceDiscTable)
                {
                    salesQuotLine.ZIris         = priceDiscTable.ZIris;
                    salesQuotLine.ZUpFront      = priceDiscTable.ZUpFront;
                    salesQuotLine.ZOngkir       = priceDiscTable.ZOngkir;
                    salesQuotLine.ZIncentiveDealerSalesman  = priceDiscTable.ZIncentiveDealerSalesman;
                    salesQuotLine.ZIrisBruto    = priceDiscTable.ZIrisBruto;
                    salesQuotLine.ZRoomDealer   = priceDiscTable.ZRoomDealer;
                    salesQuotLine.ZOTR          = priceDiscTable.ZOTR;
                    salesQuotLine.ZNotice       = priceDiscTable.ZNotice;
                    salesQuotLine.ZUnNotice     = priceDiscTable.ZUnNotice;
                    salesQuotLine.ZCost         = priceDiscTable.ZCost;
                    salesQuotLine.ZRoomDiscount = priceDiscTable.ZRoomDiscount;
                    info(strFmt("priceDiscTable = %1", priceDiscTable.RecId));
                }
                break;
        }
    }

}


Thanks,

How to Join two dataset in AX 2012 Reports build in MVS 2012(RDP class)

$
0
0

Hi everyone,

I have dataset name "Workercost" and "ContractValue"

I want to display Workercost.amount value in ContractValue dataset Matrix

Its was easy to use lookup function in SSRS report builder to join two datasets and filter the value but in Visual studio RDP class lookup function is not available.

Can someone please tell me the replacement of lookup function for Visual studio report server or any other method to resolve my issue.

thank you

Changing the initial RECID value for records in unused tables

$
0
0

Hi all

We have a special requirement of having all RECIDs below the default initial value of 5637144576. Changing the existing records are no problem since this is a small database with relatively few records and this can be done be SQL scripts. Changing the existing number sequences in SYSTEMSEQUENCES is also no problem.

The rule however is that only tables that has records in has a number sequence created in SYSTEMSEQUENCES, and the first time a record is created in a unused table, a new sequences is added by the Store procedure sp_GetNextRecId. In this procedure the initial value is 5637144576, which we changed to 1637144576 (minus 4.000000000).

Even after restarting the AOSs (clearing the cache) and the SQL database engine service, AX still initialize new records in unused tables with 5637144576. Executing sp_GetNextRecId manually in SQL Studio Management and entering a tableID of a table returns the expected value of 1637144576.

How come, and what can we do about it? Any thought are welcome, just do ask why we has this requirement.

Thanks

Thomas


get URL property String of URL menuitem for Particular Record in AX 2012

$
0
0

Dear All,

I used the below code to redirect from one Web page to another in Datasource write() method in DataSet of particular Web Control. Its working fine.

WebLink webLink = WebLink::construct();
VendPaymentRequest VendPaymentRequest = VendPaymentRequest::find('VPR-000159');
webLink.menuFunction(new WebUrlMenuFunction(webUrlItemStr(VendPaymentRequestListPage)));
webLink.record(VendPaymentRequest);

webSession().redirect(webLink);

My requirement is how to get the exact URL for Particular record like below.

VendorPortal/Enterprise%20Portal/VendPaymentRequestListPage.aspx?
WMI=VendPaymentRequestListPage&WTID=107089&WKEY=%5b65534%3a5637149832%5d&WCMP=AYN&WDPK=initial&WHPV=6920EF0CC6B58E35A0D92D87AB24F758556CE48011E99366BB750754CAE94ACB

 


Actually I send a mail to the User in X++. When the User click the Link in Mail, Particular List page or Details page will be opened in EP for given record filter.

Workflow approver change

$
0
0

With regards to the aforementioned subject, We have PO approvals by department heads and one of the department head has been recently changed so as we want to change the name in PO approver.

Best Regards

Unable to Select Company in Select Query Form on reports

$
0
0

Hi,

Today we faced a strange issue. it happening to specific users. Previously everything fine. 

When click on Select button on report. after selecting range when click Ok.

throwing Error "select at least one company before saving query".

When we go to company tab, we cannot see any companies there. For remaining people we can able to see. 

I have restarted AOS, Re Deployed Report, Clear User Data and done Incremental CIL.

Sales Order - The transactions on voucher do not balance as per XXX

$
0
0

I'm trying to post a PrePayment invoice on a purchase order, and am getting an error about the voucher not balancing.. Any advice? 

The transactions on voucher do not balance as per 23/10/2018. (accounting currency: 300.00 - reporting currency: 300.00)

Error While applying Deployable Package (Access Denied Error)

$
0
0

Good Morning,

I am trying to apply Platform update 20  to my sand box

Steps i followed 

1. Download Zip file

2.Copy to VM the extract over desktop

3.Chane Machine name in DefaultTopology xml File

4. Apploied these 3 commands 

a)  AXUpdateInstaller.exe generate -runbookid=Runbookone.xml -topologyfile=DefaultTopologyData.xml -servicemodelfile=DefaultServiceModelData.xml -runbookfile=Runbookone.xml

b)   AXUpdateInstaller.exe import -runbookfile=Runbookone.xml

c)   AXUpdateInstaller.exe execute -runbookid=Runbookone

But after c Step i am getting following error

So here i am getting this error.

This was the path Screen shot

First zip files are there i though because of that file is in zip format i am getting error.

Then i extracted first 2 folders are extracted ones.

Again i did rerun.

But again same error.

Please show some light on this.

Regards.

Have a great day.

Viewing all 73760 articles
Browse latest View live


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