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

c# enum in x++

$
0
0

i have  c#  library deployed to dynamics ax .  i must pass c# method  enum  , which  is  declared in c# class .   i  am not able to  get  this done .      

AMMobile.AMMobileService.TaskType t;

TaskType is  enum ;   i  can't  set value in it .  i  have  int  values of this  enum , but i can't  convert int to c# enum too.

can you help me with this issue?


Can't retrieve personalization from another user

$
0
0

After when I saved a personalized form then settings applies to current form, I don't need to close and open the form again.

When using Retrieve from User option - there isn't change anything after selection only changes the selection screen form greyed out. When closing the form and open again nothing changes.

Do you know whether this feature relates to any Security settings or parameter because I cannot find anything in TechNet documentation?

Thanks in advance!

Best,

Pal

Adding multi tasks using SysOperation Framework

$
0
0

Hi!

I'm trying to create to batch for the first time... and I encountered some problem...

I want to create single BatchJob which contains several Tasks...

I created DataContract :

[DataContractAttribute]
class AABatchDC
{
    str   parmStr;
}

[
    DataMemberAttribute,
    SysOperationLabelAttribute(literalStr("Label Attribute")),
    SysOperationHelpTextAttribute(literalStr("Help Text Attribute")),
    SysOperationDisplayOrderAttribute('1')
]
public str parmStr(str _parmStr = parmStr)
{
    parmStr = _parmStr;
    return parmStr;
}

and Service

class AABatchTask
{
}

[SysEntryPointAttribute(false)]
public void pr(AABatchDC _contract)
{
    AABatchTest bt;

    bt.initValue();
    bt.Field1 = strFmt("%1 : %2", _contract.parmStr(), DateTimeUtil::utcNow());
    bt.insert();
}

and MenuItem (Action) with Object "SysOperationServiceController" and Parameters "AABatchTask.pr"

Everything works fine... but every time i add new task it also create new BatchJob... ;/

How can i add several tasks to one batch ??

It will be perfect if i could choose BatchJob in Parameters...

Thank you in advance!!

 

Guide to upgrade code from AX 2012 R3 to Dynamics 365 for Operations- step by step

$
0
0

Have done through on many sites regarding "upgrade code from AX 2012 R3 to Dynamics 365 for Operations", but no find out proper steps for the same. 

If anyone can provide steps. 

Works AX2009 together with Office365

Logic on Delete_From command on temp tables (real tables set to tmp) reliable?

$
0
0

Hi all,

normally the set oriented delete_from command falls back to a looped record single delete, if (the delete method is overwritten). This behavior does not occur if the table is a real one, which was set to temp mode using the setTmp() method.

I've detected this behaviour during analyzing the functionality of ReqTransExplosion form. I was wondering why they can use a delete_from (without any further skipXXXXX methods) on a temporary ReqTrans buffer which is filled using some helper classes (ReqTransFormExplosion, ReqTransExplode), without running in the ReqTrans delete method, which is (maybe) going to delete other records (in other tables). 

My question: Is this reliable in all cases? Or is this behaviour bound to the tier where the temp ist created? Or if the cursor is attached to a Formdatasource? Or does this this even depend on the kernel version? 

Is there a differnt behaviour for example, if using such constructs under batch/cil. I need to use some of the helper classes (or at least code parts) within a batch class and don't want to have some strange side effects on deleteting the (temp) ReqTrans cursor witihin my code.

Is there an official statemenet about that available?

Or is it even better not to rely on the "never fallback"?

regards

Douglas

Unable To Create the Continuous Build using VSTS and lifecycle services

$
0
0

Hi,

docs.microsoft.com/.../continuous-build-test-automation

I have followed the same steps as specified in the above link to create the build and development environment using life cycle services and also mapped my VSTS project in life cycle services to create the build definition.

After that My build and dev environment were successfully deployed in azure and my build definition was also created in VSTS but the issue is when i checkin my wrong code the build was successfully created and i was expecting it to be fail as the code was containing some syntax errors.

I just checked the console messages On MS build Step of my build and found out one warning message i.e

"Warning : 12:31:12 AM: No Models returned by model info provider from metadata"

 

 

I am unable to resolve the above issue can anyone please help me to fix this issue.

Payment gateway integration with D365

$
0
0

Hi Experts,

We are trying to integrate a Payment gateway with D365, they have provided .DLL file of their application(Active X Control) and that .DLL file contain set of methods.

Kindly suggest us how do we proceed.

Thanks


workflows not working issue

$
0
0

Dear All,

we were using ax 2012r3 my issue is workflows not working in all levels.

it was suddenly not working ,if i click on submit button status was changing to in review but alerts not going to approver.i checked in view history there showing workflow activated but items are not created.

for time being i have started  Tutorial_workflow processor manually it is working  

but if i close that again workflow is stopped ,

how can i solve this please help. 

Regards,

Ashok

How to restore a copy of a Dynamics 365 for Operations database on local VM?

$
0
0

Hi,

How can I restore Dynamics  AX 365 for operation DB from one VM to an other VM?

Shall I take back up from  AxDB and AxDW databases and restore them on new VM (using SQL Server Management Studio)? Or other databases ( DynamicsAxReportServer, DynamicsAxReportServerTempDB, DYNAMICSXREFDB, etc... )should be restored?

Element in the Enum is not showing in Form...

$
0
0

Hi all,

I created a base enum.

with properties

Also created a table with this enum as a field

with filed properties

The problem is when I open the table/form when I am goint to input, I did not find enum value 'None' whose element value = 0.

But I wonder, other than None when I give for '0' value, they are showing in table. But how ever the functionality mismatch is coming with this enum when I change enum values.

Please help...

Thanks in advance..

VSTS check-in conflicts due to different Startup object

$
0
0

Dear all,

As a dev team we are facing an embarrassing issue.

Since every developer working in the same project has set up his own startup object [which is recorded in project file] we have to resolve conflicts of that particular line each time we check-in our changes.

I think , unless there is a way to ignore that portion of code only in VSTS, Microsoft has to make startup object property in a separate developer settings file that should be ignored for version controlling.

Any team facing the same issue, any workaround? 

Passing and consuming C# List in AX 2012 (X++)

$
0
0

Hi All,

How should I pass List object in C# to X++?

For Example,

In C# Managed Code:

public List<String> GetStringList()
{

List<String> list = new List<String>();

list.Add("One");
list.Add("Two");
list.Add("Three");

return list;

}

In X++: AX 2012 R3

static void Job9(Args _args)
{
ABJNewtonsoftJson.Program program;
List list = new List(Types::String);
ListEnumerator enumerator;
System.String netEmement;
str val1, val2;
;

program = new ABJNewtonsoftJson.Program();

list = program.GetStringList();
enumerator = list.getEnumerator();

while (enumerator.moveNext())
{
netEmement = enumerator.current();
val1 = netEmement;
}
}

// It seems like, I'm hitting error in below X++ lines:

enumerator = list.getEnumerator();

EDT Properties Which cannot be Reused in Fields

$
0
0

Hi

Can Anybody let us know the properties of EDT which cannot be reused in Field level .

Thanks 

Raghu

run ssrs report with two design

$
0
0

I have rdp class that has two temp table, in process in rdp class i want to run specific function based on design in menu item and another function based on another design.

how to do this??

Regards,


Convert container to System.Byte[]

$
0
0

Hi there

I have pictures in the data base (such as company logo) and I need to pass it to an external application which need the content as a System.Byte array.

How can I achieve such a thing?

Regards

Packaging Solution with the command prompt

$
0
0

I have been using Visual Studio in order to create the deployment package of my solution. I open Visual Studio then select Dynamics 365 > Deploy > Create Deploy Package. Afterwards I select the Application Suite and select where to place the deployment package. Clicking create then creates the package for me. (This is the standard way to do this).

I was wondering if there was a way to execute this process through the command line? Or is there a way to get the final deploy package through the command line?

Ultimately I want to automate this process in an ant script.

Field Property in D365

$
0
0

Where could I find the field's property of a table in D365 ? EX: Description, Type ( String, integer,..), Length..

pdfsharp dll not working in batch mode

$
0
0

I have an issue with pdfsharp dll. I was able to use the dll in on a local dev instance to successfully merge two pdf files using x++ code. When I promote this dll to TEST in a different instance it fails to run in batch mode. It runs fine in interactive mode.

My server configuration

Local dev instance- AX 2012 R3 all in one  box where we have the SQL and SSRS on the same box.
TEST instance = AX 2012 2 AOS Server. 1 dedicated batch server and 1 ssrs server.

The process worked correctly on both AOS servers when running in interactive mode. It fails only in batch mode. Something that is not reflecting in CLR.

I have added the required dll files to both server\bin and client\ bind folder.

I have also done multiple compile and CIL generations and nothing seems to help.

Any suggestions on how to resolve this issue in batch.

Filter Entity Export

$
0
0

Hi

I am currently creating a new entity from smmBusRelTable with some more datasource related to it.

I need to filter the data for the export.

Which method i need to override to include my validation codes?

Thanks.

Viewing all 17532 articles
Browse latest View live