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

Chain of Command

$
0
0

Dear all,

I read some documents and I trying to understand the basic use of COC ( Chain of command  )

Suppose I wants to add  my own customized code in STANDARD METHOD on standard Table OR Class OR Form in MIDDLE, then it's possible only through COC.

We can use Pre and Post Event handler before OR after base code executing. I can't cal these event handler  in middle  of BASE code. So, we need to use  COC to add my custom code in middle of BASE code.

So, first we need to create a EXTENSION Of that Class OR Table OR Form whatever...

We can call like Tablestr() OR formstr() OR classstr()

Extension of(Tablestr(PriceDiscAdmTrans))

Public final class myPriceDiscAdmTrans_extension

Public Boolean validateWrite()

Boolean ret;

ret = next validate write();

If(!this.fromdate)

ret = checkfailed("Frontage must be filled in...");

So, here it execute first the Standard method and then it execute my validation ( customized code).

Kindly verify. Ist correct?

Please give me more she'd on this.

Thanks!


BYOD Not Exporting All Records

$
0
0

When I go to "Accounts Payable > Inquiries and reports > Invoice > Invoice journal", I get over 10,000 records. But when I export (full export via BYOD)...

VendInvoiceJournalHeaderStaging = 494 records 

VendInvoiceJournalLineStaging = 4259 records

Why are there so many records filtered out? I want to pull everything, but it seems like I'm not getting close to everything.

Any help is greatly appreciated!

Architect of Dynamics 365 On cloud

$
0
0

Dear All,

Kindly share the Architecture of D365 for cloud and Domain requirement.

Below points are required for New Environment:

My customer do not have any Active Directory. So, for D365 cloud what are recommendation of MS for it.

Active Directory on cloud or a on-premises. Moreover, If I will go to cloud active directory (Azure Active Directory or O365) so which service for feasible/recommendation on it.

Also share the requirement of ADFS for it on both cases (on cloud AD and on-premises AD)

Synchronization errors

$
0
0

Hi,

I just create new filed in Ledger Journal table  getting below error 

Can any one suggest me on below errors pls :-

Error Synchronize database Cannot execute a data definition language command on ().
The SQL database has issued an error.
Info Synchronize database SQL error description: [Microsoft][SQL Server Native Client 11.0][SQL Server]The object 'I_211TYPENUMIDX' is dependent on column 'JOURNALNUM'.
Info Synchronize database SQL statement: ALTER TABLE "DBO".LEDGERJOURNALTABLE ALTER COLUMN JOURNALNUM nvarchar(20) NOT NULL
Error Synchronize database Problems during SQL data dictionary synchronization.
The operation failed.
Info Synchronize database Synchronize failed on 1 table(s)

Error 2:-  Added new field on Agreement table and enable alert rule on field. (error coming when alert getting generated)

[Microsoft][SQL Server Native Client 11.0][SQL Server]A column has been specified more than once in
the order by list. Columns in the order by list must be unique.. The SQL statement was: "SELECT T1.PURCHNUMBERSEQUENCE,T1.VENDACCOUNT,T1.VENDORDATAAREAID,T1.BUYINGLEGALENTITY,T1.WORKFLOWSTATUS_PSN,T1.INSTANCERELATIONTYPE,T1.AGREEMENTCLASSIFICATION,T1.AGREEMENTSTATE,T1.DOCUMENTTITLE,T1.DOCUMENTEXTERNALREFERENCE,T1.CURRENCY,T1.DEFAULTAGREEMENTLINETYPE,T1.DEFAULTAGREEMENTLINEEFFECTIVEDATE,T1.DEFAULTAGREEMENTLINEEXPIRATIONDATE,T1.ORIGINATOR,T1.LANGUAGE,T1.EARLIESTLINEEFFECTIVEDATE,T1.LATESTLINEEXPIRATIONDATE,T1.ISDELETED,T1.DEFAULTDIMENSION,T1.AWARDDATE,T1.DEPARTMENT,T1.PROJECTMANAGER,T1.TOTALAMOUNT,T1.BOOKMARK1_4895,T1.PURCHAGREEMENTSTATUS,T1.DEFAULTAGREEMENTLINEEXPIRATIONDATE1_4895,T1.MODIFIEDDATETIME,T1.MODIFIEDBY,T1.CREATEDDATETIME,T1.RECVERSION,T1.RELATIONTYPE,T1.PARTITION,T1.RECID FROM AGREEMENTHEADER T1 WHERE (((T1.PARTITION=?) AND (T1.RECID=?)) AND (T1.INSTANCERELATIONTYPE IN (4902) )) ORDER BY T1.RECID,T1.RECID OPTION(FAST 2)"

Regards,

KVNKK

Getting the selected query range value in Variable

$
0
0

Hi Experts,

I have one table named "RetailTransactionTable".

In this table we have different customer account.

I want to calculate net amount based on different customers account through Query classes.

I tried like this:

#OCCRetryCount
Query query;
QueryRun queryRun;
QueryBuildDataSource qbds;
QueryBuildRange queryRange;
RetailTransactionTable retailTransactionTable;
real netTotalAmount;


Integer noOfCustomer = _CustomerTransactionContract.parmNoOfCustomer();
query = new Query(SysOperationHelper::base64Decode(_CustomerTransactionContract.parmQuery()));

queryRun = new QueryRun(query);

while (queryRun.next())

try

qbds = query.dataSourceTable(tableNum(RetailTransactionTable)); 
qbds.addSelectionField(fieldNum(RetailTransactionTable,netAmount),SelectionField::Sum); 
retailTransactionTable = queryrun.get(tableNum(RetailTransactionTable));

}
catch (Exception::Deadlock)
{
retry;
}
}

info(strFmt("%1",netTotalAmount));
}

Please suggest me the right path

Thanks

Sona Jee

Type Information for Variables on Mouse Over?

$
0
0

Hi all,

One thing I miss a lot when developing in Visual Studio for Dynamics 365 FO is the lack of a tool tip that shows the variables type when I hover the mouse over a variable. Only way to find out the type for sure is to press F12 on the variable to go jump to its definition. The mouse over would be much more convenient, especially in cases where F12 is not working, like inside a table method when you refer to a table field like

this.FieldName

In Visual Studio you can press 

Ctrl + K, I

to bring up the tooltip window with the type information, in case it does not come up autmatically. If I do this in X++, I get a tooltip with the text 

GetDataTipTextFor: <variableName>

So not very helpful.

My question is: Does anybody have a solution for this problem? Does anybody know of any extension that can do it? How do others deal with this problem?

Any feedback is welcome. Thanks.

Best regads,

Mark

Hide Setup Menu From General Ledger Module

$
0
0

Hello All,

I want to hide Setup Menu From General Ledger Module for few roles related to accountant....

Is it possible to hide it in a simple way without using security development tool..?

I have tried by disabling the following Duties... but its not working..

LedgerGeneralLedgerProcessEnable - Enable general ledger process

LedgerGeneralLedgerProcessPerfReview - Review general ledger process performance

LedgerRoleCenterGLProcessPerfReview - Review general ledger process performance through the role center

Can anyone guide me with any other possible ways...? Or what are all the duties should I have to disable to achieve my requirement?

Year in lookup in table field

$
0
0

Hi all,

we have a field in table there we want year in drop down, is there any standard functionality is there to achieve this.

Kindly suggest me 

Thanks


How to bypass the parameter dialog when we open a report through form in D365?

$
0
0

Hi all,

I had costanalysis report which is based on a query (comprises of Header table and line table), when i open the form and select a record and will click on the report , it is opening the parameter dialog(but no parameters to select only dynamic parameter included) and i click on ok, it is fetching all the record details instead of displaying the particular record details on the report,.? 

Note: on listpage/transactions page i used a menu item button->points to Output menuitem->inturn calls the report directly.

how to overcome this.? as i am not aware on how to use controller class.. any suggestions pls

How to open selected record in report when we open the report through form listpage and form transactions page?

$
0
0

Hi all,

I had a report which is based on only Dp class and a controller class and i dont have a contract class, used only dynamic parameter? but when i open the report through form, i am getting all the record details , i need only the current record details to be print on the form!! how to acheive this.!!please suggest

In list page/transactions page -.>i used a menu item button which points to output menuitem ->which inturn calls the controller class for report.

TemDB lookup

$
0
0

I am aware of a (the?) way to do this. There are many examples on the web and I am more than capable of writing a lookup for a form control.

However, this specific lookup is used a lot. My boss likes the idea of a year lookup. So in basically every new add-in I create, I need to build this lookup.

My attempt to create a easily-reusable-implementation looks like the following:

1. XYZYear is an EDT Integer with Form Help set to XYZYearLookup

2. XYZYearLookup is a Lookup Form with XYZYearTmp as datasource

3. XYZYearTmp is a TempDB Table with exactly one field XYZYear

The idea is that this will enable me to simply drag in XYZYear on tables/forms. The lookup is already written and I can continue without bothering about year lookups.

It works....almost. The lookup is fine. But after a year is clicked, the form control does not show anything. I guess it is because the table buffer went out of scope, thus the selected record no longer exists. So I am wondering whether this solution can work? If it can; how do I keep the TempDB buffer in scope? (The lookup method on a FormIntegerControl does not return anything.)

If there is uncertainty about the code implementation:

class XYZYearLookup extends FormRun
{

   XYZYearTmp yearTmpLocal;

   void init()
   {
      super();
      yearTmpLocal = XYZYearTmp::constructRangedDefault(); //insert some years
      XYZYearTmp.linkPhysicalTableInstance(yearTmpLocal);
   }
}


And it actually does not make sense to me that the TempDB buffer is the issue. I'm not sure exactly how these lookups work, but all that it needs to return is the integer? The buffer/record is not relevant. In other words the integer value can (should) exist in the FormIntegerControl without the existence of the lookup form's buffer.

Thanks for reading

Exception handling Error

$
0
0

Hi,

there's a query related to exceptional handling. In C# or .net we can use try catch method and print our own customized message, but as per dynamics we can't do that . We just throw an exception which generally system generate. I want to know that can we throw our customized message in try catch method ? if anyone have answer then do let me know with example . 

i've searched a class CLRInterpo class but don't know how to consume it in try catch method

how to take json format in to DF365FO

$
0
0

Hello ,

Any one can you please share procedure take json format int to D365FO.

Regards

Priya

Displays for development

$
0
0

I have another related post: https://community.dynamics.com/365/financeandoperations/f/765/t/295208 I separated them because I was afraid only one question would be addressed. Yes this is not specific to D365, but still very relevant to development in D365.

I currently have a 27inch Dell. I want to ask the boss for another screen. I once borrowed a 29inch which worked well and at another time I worked with two 27inch displays. I am unsure which I should go for: one massive screen or two smaller ones (or three?). Do some sizes become impractical? Any opinions on curved displays? Is 4K at all relevant for development?

Please don't tell me it comes down to my own preference. I am posting because I'd like to get an opinion - I haven't been developing for long so I don't trust my own preference. I'd just like to know what (in someones opinion) works well. I mean if you have been developing for decades (like many respected admins on this forum), you must have some opinions on this topic. Or I hope so :)

Thanks for reading

Thanks for reading

Exporting positive pay file with a .csv extension

$
0
0

The previous posts were about AX2012 using AIF ports, which is why I'm creating a new question.

Is there a way I can export the positive pay file with a .csv extension instead of .xml? I know I'll need custom code for this, but I'm struggling to see where I can create a post-handler or extension for this, since there are two ways you can create the positive pay file (periodic tasks and through the bank accounts screen). 


Performance issues with AX development

$
0
0

Maybe this does not belong on this forum, but this is the only forum I am a member of and I only develop in AX. Please bare with me.

So I recently sold my soul to acquire a decent PC. I assigned my VM 40960MB RAM and 5 cores, with more than enough left on the host. Should say that is enough. The improvements are noticeable but not as great as I hoped:

1. Building a project of 10 to 15 elements still takes 3 to 6 minutes

2. Sometimes I get ahead of the text editor

3. Some AOT element designers are still laggy (for example Data Entites, Views, working with a table inheritance structure - especially on forms)

Further I noticed that the resources aren't actually used.... I took a screenshot of the task manager while building:

Like most things, I don't know much about hardware and performance. I provided the details I thought relevant.

Is there something I can do to speed up the process of building and designing? I think I've got the hardware part. Is there some settings I can play with to try and improve performance?

Thanks for reading

Debugger is not hitting

$
0
0

Hi All,

Trying to debug some of the code but the debugger is not getting hit, debugger is enabled and account exist in Debugger group.

Kindly advise how to proceed.

Regards,

Akbar

Manage Nuget Package option disable in VS2015

$
0
0

Hello,

I am not able to see the Nuget option enabled in VS 2015. As per the internet search I restarted VS twice but no help.

Adding two datasources for different tables to same query object for a SysQueryForm

$
0
0

Hi

A sysQueryForm is not filtering by a field correctly. This field is from a different table that has been joined after modifying the sysquery.

How to add two different tables as a data source of a query object and filter by the field of the joined table on a sys query form?

    //Project (Fiters out by ProjId on sys query form)

 qbdsProject = _qbdsHeader.addDataSource(tableNum(ProjTable));
 qbdsProject.relations(true);
 qbdsProject.joinMode(JoinMode::ExistsJoin);
        projAdjustmentSelect = queryRun.query().dataSourceTable(tableNum(ProjTable));
        elements = projAdjustmentSelect.rangeCount();
        for (i = 1; i <= elements; i++)
        {
            projAdjustmentSelectRange = projAdjustmentSelect.range(i);
            qbr = qbdsProject.addRange(projAdjustmentSelectRange.field());
            qbr.value(projAdjustmentSelectRange.value());
        }
        
        }
       
       // Code I added to set the data source to new table and filter out by new field in the joined table of the sys query form
        qbdsProjPostedTrans = _qbdsHeader.addDataSource(tableNum(ProjPostedTransTable));
        qbdsProjPostedTrans.relations(true);
        qbdsProjPostedTrans.joinMode(JoinMode::ExistsJoin);
        projPostedTransTable = queryRun.query().dataSourceTable(tableNum(ProjPostedTransTable));
        elements = projPostedTransTable.rangeCount();
        for (i = 1; i <= elements; i++)
        {
            projPostedTransTableRange =  projPostedTransTable.range(i);
            qbr =  qbdsProjPostedTrans.addRange( projPostedTransTableRange.field());
            qbr.value( projPostedTransTableRange.value());

how to put where clause as string in c#?

Viewing all 17532 articles
Browse latest View live


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