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

Use a drop down button to select a row from table

$
0
0

Hi,

I need to add a drop down button to a form which holds the list of employee names form the employee table.

When an employee name is selected from the drop down it have to display the entire row of selected employee from the table .

Thanks in advance,

Riyaz_A


Which type is fastest to convert from C# to Microsoft Dynamics Type?

$
0
0

I am using dll library in my axapta code. In that dll I have (in some cases) 82 000 values that I want to use in axapta. I found that CLR interop in axapta is much slower than calling C# directly from another C# program. According to my test the handling of .dll is like 100 times slower in Axapta than in C# itself. So the code that needs 300ms in C# needs 30s in Axapta.

I am looking for type that is fastest to convert from C# to Axapta one.

I try to use System.Data.DataSet class but accessing its values is slow in AX. (The C# dll just have static method with this return type.)

I try to use Object[][] array but again the receiving values from this by it is slow again. (Again just the C# returns Object[][]).

The receiving the object from C# is fast and it uses 300ms but accessing values is slow so I would like to have some C# type that can convert whole collection at once and fast.

So what is the fastest collection to be converted from C# to Axapta?

Is it possible to use CIL of AX classes to create AX in C# without using reflection?

$
0
0

I am working on the task where I am moving a lot of variables (100 000+) from C# to AX. Everything I tried yet fail on performance. (Calling C# in X++, Receiving C# array in X++, calling static method in C# trought recursion, Creating X++ object in C# trough reflection - business connector, receiving string from C# and parsing it in X++, receiving string and parsing it in X++ using C# call) 

I need to find some trick how to fast transfer those variables or how to make some X++ data-storing object in C# 

One thing that comes to my mind is creating X++ object directly in C# suing CIL call in C#. Did anyone tried this? Will it be fast?

It should be possible the classes in AX are translated to CIL and http://stackoverflow.com/questions/3328901/how-to-insert-cil-code-to-c-sharp 

Multi select combobox using enums...

$
0
0

Is it possbile? As far as i know it's possible with a query;

   msCtrl = SysLookupMultiSelectCtrl::construct(element, TestCtrl, querystr(StudentCourse)); etc...

Regards

update_recordset statement not working. The same with while select forUpdate works..

$
0
0

Hi,

any known issues about this?

I've encountered a custom method which tries to update a set of record by joining 2 tables with the update_recordset statement. Something like:

update_recordset myTable1
                            setting [fieldsList]
                            join myTable2
                                where [conditions]

The instruction returns this error "could not update a record" and i can see this join doesn't retrieves anything.

If i do the same with a "while select forUpdate" statement, it works fine. The records are retrieved and updated.
Obviously this takes much more time than the update_recordset.

Any idea about this issue?

Thank you in advance

LOGISTICPOSTALADDRESS and SALESTABLE relation

$
0
0

Hello all,

I have a little problem. I need to make a query in SQL to show all the invoices that have been delivered to a country not UK.

So, I need the field LogisticPostalAddress.CountryRegionId.


The problem is that I can't find the relation between this table and salestable or CustinvoiceJour. At first, I tought that one relation could be LOGISTICSPOSTALADDRESS.LOCATION = CUSTINVOICEJOUR.DELIVERYPOSTALADDRESS but the data that shows is not the correct, so the link is not the correct one.

Did you used this relation already? Can you tell me the correct relation?

Thank you very much!

Specific Dimension on VendOpenTrans Grid

$
0
0

My task is to add a field in VendOpenTrans with a specific Dimension. I have added to my DataSources in VendOpenTrans tables DimensionAttributeValueSet, DimensionAttributeValueSetItem, DimensionAttributeValue and DimensionAttribute. In their properties I have made joins (join source) with InnerJoin LinkType (I tried all of the options here). Then I have add a field on my grid from DimensionAttributeValueSetItem -> DisplayValue (field name). And now in ExecuteQuery method of VendOpenTrans I add a code:

public void executeQuery()
{
    QueryBuildRange dimensionAttributeValueSetRange;
    ;

    dimensionAttributeValueSetRange = this.query().dataSourceTable(tableNum(DimensionAttribute)).addRange(fieldNum(DimensionAttribute, Name ));
    dimensionAttributeValueSetRange.value(queryRangeConcat(queryValue('KUP_NKUP_Zaliczka'), queryValue('')));

    super();


}

The final result of this is that I have a new filter with my dimension. So I don't see on my grid records that have an empty value in this dimension. The thing that I want to achieve is to show the value of "MyDimensionName" if It's filled but when It's not record should be shown with just an empty value... I spend on this many many hours and I still didn't work it out...

Data upgrade check list from ax 2009 to ax 2012 R3

$
0
0

HI,

I am Upgrading from AX 2009 to AX 2012 R3, I have completed all   Preprocessing upgrade checklist in the source system and code upgrade check list in the target system but while I am trying to connect to source database from target system data upgrade check list, it’s not getting completed and next checklist not getting active.

Appreciate your suggestion on this

 

Thanks

BPS

 


HTML Name

HTML Name

HTML Name

HTML Name

range values for a range

$
0
0

Hi I do have a form where I define (besides some others) a querybuildrange on WMSLocationId at table InventDim

now I want to use only WMSLocationID where a customized field on the WMSLocation is set to a special value

how can I do this

I cannot Sync AX Database.

Get check value from a FormGroupControl

$
0
0

Hi,

I don't know how to get the value of a group with has the frameOptionButton() method set to check.

How I can know if the value of the group is checked or not check?

Thanks in advance.


Temporary table as form data source

$
0
0

I have a form which should display data in the grid based on certain parameters. The grid has a temporary table as its data source.

Please see the image below:


Now, I have used the linkPhysicalTableInstance( tempTable::populateTable(parm1, parm2)) on the clicked event of OK button. The records are getting inserted into the temporary table but are not getting displayed on the form.

Any idea about this?

Finding modified records in custtable

$
0
0

Dear all,

while integration customer created in ax after that sum data's will be modified .. so we can send that modified records to third party .here how to identify which record is modified in custtable .. for this i tried modified date time compare to today date time so it will run only ones in a day .. and here my issues is  are batch job is running every 15 minutes means the modified date time compare to today date time logic will be collapsed so how to get update or modified records for sending to third party...  

How to unlink two grids

$
0
0

Hi everyone, 

I am having an issue at the moment. I have designed a simple form with two grids populated by two separate datasources, the first one based on VendTrans table and the second one based on VendInvoicePurchLink table.

I have coded a button two retrieve the purchase order(s) based on an invoice number. So far everything works just fine. The problem is that when I filter the records in the first grid (VendTrans table), the records in the second grid (VendInvoicePurchLink) also get filtered, and not in a good way. I haven't specified any dynalinks for these datasources and I don't understand why this is happening. I have tried to override the following methods : enter(), inputSearch() and filter() but without success. Any clues on how I could make these two grids independent, that is, if I filter the results in the first grid, the second grid isn't filtered automatically ? 

Best regards, 

AIF Inbound XML cause Error: The value cannot be null: Parameter Name: document

$
0
0

Hello together,

I want implement an AIF Inbound service for exchange data. For that I have created a table and query. With the wizard I have created the nessary private Project. Furthermore I have Setup the Inbound port and the Service object.

For testing I have created a sample XML which you can find below. If I try to Import this XML I receive the error message "The value cannot be null: Parameter Name: document".

Have someone an idea why this error occur?

<?xml version="1.0" encoding="UTF-8"?>
<Envelope xmlns="schemas.microsoft.com/.../Message">
 <Header>
  <Action>schemas.microsoft.com/.../create&lt;/Action>
 </Header>
 <Body>
  <MessageParts xmlns="schemas.microsoft.com/.../Message">
   <AxdObiZEKOM_DEB_HIST xmlns="schemas.microsoft.com/.../ObiZEKOM_DEB_HIST">
    <AxdEntity_ObiZECOM_DEB_HIST_1 class="entity" action="create">
     <DATEI>/PDIS/OBI/TNP/6069/100152-RSSBELEGDATEN-20130326-1431.xml</DATEI>
     <DATID>127</DATID>
     <ERDAT>26.03.2013</ERDAT>
     <LFDID>11</LFDID>
     <MAHNS>0</MAHNS>
     <MANDANTID>100152</MANDANTID>
     <MANDT>242</MANDT>
     <MSERDAT>27.03.2013</MSERDAT>
     <MSERZET>110017</MSERZET>
     <TNP_BETRAG>134,89</TNP_BETRAG>
     <TNP_JE_NO>10012356</TNP_JE_NO>
     <TNP_JEDAT>26.03.2013</TNP_JEDAT>
     <TNP_JETYP>10</TNP_JETYP>
     <TNP_KUNNR>1000200456</TNP_KUNNR>
     <VBELN_VA>2000596685</VBELN_VA>
     <WAERS>EUR</WAERS>
    </AxdEntity_ObiZECOM_DEB_HIST_1>
   </AxdObiZEKOM_DEB_HIST>
  </MessageParts>
 </Body>
</Envelope>

Column Totals for Custom Field in SSRS Reports

$
0
0

I have problem face with custom column totals in SSRS Reports. i have one table with 5 fields, Total Amount is one of the field.so i want Summations of All Values(Grand Total). Total amount field is not in the Dataset,it is only appear in Report section. Please Help me...

Ex:-

Item     Quantity       Unit Price     Total Amount

A             10               100                1000.00

       B             20                 200               4000.00

      C             10                  50                    500.00

-----------------

Total:-5500.00

----------------

Viewing all 17532 articles
Browse latest View live


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