Quantcast
Channel: AX Developer Forum
Viewing all 9880 articles
Browse latest View live

Issue in the update table

$
0
0

Dear all,

I have a code in the modified method table level of the ProjExtCatMap . Here if a user selected the category id Then automatically a enum field mapping has to be updated as true for the respective categoryid and projid.in the PrjExtCat Table.

public void modifiedField(fieldId _fieldId)
{

    Object          formDataSource;
    CaeProjExtCat caeprojextcat;
    ;

    super(_fieldId);

if(this.ExtCategoryId)
      {
      ttsbegin;
        select forupdate projextcat where projextcat.CategoryID == this.CategoryID && projextcat.ProjId == this.ProjId && projextcat.Mapping == NoYes::No;
        {
            print projextcat.Mapping;
            projextcat.Mapping = NoYes::Yes;
            projextcat.update();
             print projextcat.Mapping;
        }
        ttscommit;
      }
}

 

when I run this code I get an error saying that projextcat cannot be updated. Please let me know if there is any other solution


How to give from and to date range in a query through code?

$
0
0

Hi all,

          I am new to AX and I have come across a situation where an user after giving a date range form the query dialog box.

So, how should I have access to that date range in two separate variables viz. FromDate and ToDate respectively through code in fetch method of that report. In other words how can I hold those two dates in two separate variables?

Also I have one more doubt related to same situation. Suppose, I need to give those date ranges through code in fetch method, then, how can I achieve this?

Thanks and Regards

    

 

 

General Journal - Lines

$
0
0

Hi All,

 

I have  added a lookup on general Journal lines overview tab on paymMode field in general ledger. I am able to see the lookup but i cannot save and select any value from that lookup. kindly help.

 

Regards,

Kalpna

TAble level refresh in update method

$
0
0

Hi all,

Please let me know the code for Table level refresh in the update method.

Thanks

The type 'VarString' is not supported as a return value. with RDP parmQuery method

$
0
0

Hi All,

 

My RDP was working before add parmquery method:

 

this is class declaration method of my  data contract:

class ETGExcDiffRepContract implements SysOperationValidatable
{
    StartDate           startDate;
    EndDate             endDate;
    str                 packedQuery;
}

this is my parmquery method:

[DataMemberAttribute,
    AifQueryTypeAttribute('_packedQuery', querystr(GeneralJournalEntryQuery_TR))
]
public str parmQuery(str _packedQuery = packedQuery)
{
    packedQuery = _packedQuery;
    return packedQuery;
}

 

when I run my controller class I get "The type 'VarString' is not supported as a return value" error. What should I do?

 

 

Difference between method : static and public static

$
0
0

I don`t find any restriction when using a static method without public.

 

I wonder when should I use public static instead of just static

 

Thanks

Service tax reverse charge mechanism hotfix download link for India AX2009

$
0
0

Hi All

kindly provide link to download 

Service tax reverse charge mechanism hotfix download link for India AX2009.

Showing Range values in Report which are entered in Query Dialog Box while opening the report

$
0
0

Hi All,

Want to Dispaly the Range Values we entered in Query Dialog Box in Opening Report

Check the Snapshots

 


datasource research / duplicate records

$
0
0

there is checkbox for show all records and formfunctionbuttoncontrol apply button.

if i check the show all records and click apply. duplicate data is shown. e.g

 

Name  age     From                 to

a            1      1/1/1990      1/1/2000

b            2      1/2/1990      1/2/2000

c            3      1/3/1990      1/3/2000

a            1      1/1/1990      1/1/2000

b            2      1/2/1990      1/2/2000

c            3      1/3/1990      1/3/2000

 

but after i click apply button again. it displays the correct info.

Name  age     From                 to

a            1      1/1/1990      1/1/2000

b            2      1/2/1990      1/2/2000

c            3      1/3/1990      1/3/2000

 

what do you think is the problem? and how to resolved this? thanks.

someone told me i should change the datasource to null? on runtime? how to do this?

 

 

outbound service testing in ax2012 or VS(whether it is working or not)

$
0
0
guys we have made a outbound webservice and we want to test in AX2012 whether the services are working properly or not how to do that any idea we have created a web service and activated the service and wrote few code to send the vaulue

show image in ssrs report according to no yes value in field

$
0
0

i am creating SSRs Report and in logic i have 2 fields bank payment and cheque payment.

so if payment type = bank payment then 

it should show image bank on report 

or if payment type is cheque then it should show cheque image 

At  process report i have written logic

and values are coming correctly in tmp table but images are not printing accordingly 

i tried severel scenarios ...  

kindly help 

==

if (VendPaymModeTable::find(ledgerjournaltrans.PaymMode).LtBankPayment == NoYes::Yes)

        {

            LTPaymentRequestTableTmp.ShowBankImage  = true;

        }

        else

        {

            LTPaymentRequestTableTmp.ShowBankImage = false ;

        }

        if (VendPaymModeTable::find(ledgerjournaltrans.PaymMode).LtChequePayment == NoYes::Yes)

        {

            LTPaymentRequestTableTmp.ShowCheckImage = true;

        }

        else

        {

            LTPaymentRequestTableTmp.ShowCheckImage = false;

        }

 

 

"Customer Invoice Report" Empty SSRS Report Page in AX 2012 - HELP !!!

$
0
0

Hi, I've problem in standard "Customer Invoice Report" SSRS report where my temporary table getting populated  but I'm not able to see that data on the print copy.

I've very tiny customization on the report. Still I'm facing this problem. Could any one  please help me in this.

How to find bom items for a particular order in PalnnedOrderDetails of a Master planning module in Ax 2009

$
0
0

Hi All,

 

    In Master Planning module-->Common forms-->Planned order details.

When i open this form, i can able to see all planned orders. Now i am selecting any one record in that form and clicking Inquiries-->Exposion, then i can able to see all bom items which are required to make the previously selected item as finished goods. Now how can we find these bom items coming on what basis. 

Thanks 

Exception has been thrown by the target of an invocation.AX 2012 Purchase order invoicing

$
0
0

Hi All,

I am facing a strange problem while posting a invoice for Purchase Order.

It is giving me a errr:

PostingPurchase order: PO-000047Exception has been thrown by the target of an invocation..

Not able to understand from where these error comes.

 

Can anyone please help...

 

Aman Gupta

 

 

 

 

Grid Control

$
0
0

Hi,Friends

   I have doubt.how to disable  relating fields.For example Am  using two tables....1)Organization table 2) Sub Organization Table

Here Two tables are having Company ID as unique and also  am giving relation(normal) .Now am creating two Grid control in one form.while am clicking the Organization table id automatically table 2 id displays value in second grid view.

In Second table having a relation for id.if id is present in organization table then only second table displays the data.

 

Now my problem is how to create a new ID in second table's(Sub Organization table) id field...and also if id is present in  the relating field ..how to  automatically disabled relating fields..Not in editing mode..Don't give coding i want without coding friends

 

pls anyone answer me

 

 


one time address

$
0
0

Hi All,

 

I want to create one time address, this address effect on only transaction level, but not to the customer.

How can i achieve this with AIF.

can you please give me knowledge on this.

 

Thanks,

Sri.

 

 

Axapta selected data in grid to Axapta parameters screen

$
0
0

Hello,

I am developing on ax 2012. I have SSSS report. How can I select data in grid (for example InventId)   transfer to SSRS report parameters screen InventId field.

Thank you very much.

 

 

Number Series for Product Receipt in AX 2012 R2

$
0
0

Hi,

Can any on suggest me how to define the automatic No. Series for Posting the Product Receipt.

Currently in System we have manual No. Series for Product Receipt which I am updating before posting.

Is there any provision available in  2012 R2 for automation No. Series for Product Receipt while posting.

or do I miss any set up in the Parameters?

Please help me on this.

 

 

Error in Filter functionality on Dispaly method field on the form

$
0
0

Hi all,

      I write following code in the context method on form control for the filter functionality. But when I click remove filter then following error occurs.

"The required QueryBuildDataSource was not found in the Query associated with the FormDataSource '%1 "

and code is -

 

int             selectedMenu;
    formrun         fr;
    Args            ag;
    Name            strtext;
    querybuilddataSource qb1;
    queryrun    qr;
    query       q;
    PopupMenu menu = new PopupMenu(element.hWnd());
    int a = menu.insertItem('Filter By Field');
    int b = menu.insertItem('Filter By Selection');
    int c = menu.insertItem('Remove Filter');
    ;

    selectedMenu = menu.draw();
    switch (selectedMenu)
    {
    case -1: //Filter by field
            break;
    case a:
            ag = new args('SysformSearch');
            fr = new formrun(ag);
            fr.run();
            fr.wait();
//Reading User entered value for filter process
            strtext = fr.design().controlName('FindEdit').valueStr();
            if(strtext)
            {
//Creating a query for filter
                q   = PurchaseTable_ds.query();
                //q   = smmBusRelTable_ds.query();
                qb1 = q.dataSourceTable(tablenum(PurchTable));
                //qb1 = q.dataSourceTable(tablenum(smmBusRelTable));
                qb1 = qb1.addDataSource(TableNum(VendPackingSlipJour));
                //qb1 = qb1.addDataSource(TableNum(CustTable));
                qb1.addLink(FieldNum(PurchTable,PurchId),FieldNum(VendPackingSlipJour,PurchId));
                //qb1.addLink(FieldNum(smmBusRelTable,CustAccount),FieldNum(CustTable,AccountNum));
                qb1.addRange(FieldNum(VendPackingSlipJour,GRNNumber_IN)).value(strtext);
                //qb1.addRange(FieldNum(CustTable,Name)).value(strtext);
                PurchaseTable_ds.query(Q);
                //smmBusRelTable_ds.query(Q);
                PurchaseTable_ds.executeQuery();
                //smmBusRelTable_ds.executeQuery();
            }
            break;



    case b:   // Filter By Selection
            q   = PurchaseTable_ds.query();
            //q   = smmBusRelTable_ds.query();
            qb1 = q.dataSourceTable(tablenum(PurchTable));
            //qb1 = q.dataSourceTable(tablenum(smmBusRelTable));
            qb1 = qb1.addDataSource(TableNum(VendPackingSlipJour));
            qb1.addLink(FieldNum(PurchTable,PurchId),FieldNum(VendPackingSlipJour,PurchId));
            qb1.addRange(FieldNum(VendPackingSlipJour,PurchId)).value(GRN_Number.valueStr());

            PurchaseTable_ds.query(Q);
            PurchaseTable_ds.executeQuery();
            break;

    case c :   // Remove Filter
            q   = new Query();
            qb1 = q.addDataSource(tablenum(PurchTable));
            qb1.clearLinks();
            qb1.clearRanges();
            PurchaseTable_ds.query(Q);
            PurchaseTable_ds.removeFilter();

            break;

    Default:
            break;
    }

 

 

Document title ssrs report ax 2012 Parameter does not exist

$
0
0

Hi,

      I am  using Dynamics Ax 2012 R2 ( CU7 updated). in SSRS report

 When i try to open my customized report SalesInvoice_In I am getting the following error.

Pls Help i have tried to make the parameter as null in contract class

As well as i have set the mandatory values false for parameters in visual studio but doesnt work.

Viewing all 9880 articles
Browse latest View live




Latest Images