Quantcast
Channel: Iulian Cordobin's Groups Activities
Viewing all 1084 articles
Browse latest View live

How to Restrict deletion of a record if its id is in use

$
0
0

Dear All

I have make a table and form for create data ,

I want to restrict  deletion of  a record if its id is in use 

please help me 


Map object not initialized

$
0
0

Dear All


How to fix it

I have share screen shot 

Adding caption to UI builder generated dialog box

$
0
0

Hi,

I want to add a caption to the dialog box (parameter window) generated using a UI builder.

I am looking for code similar to what I would do in case of legacy reports to add a caption to the dialog box

Dialog dlg = new Dialog("@labelID");

I tried to add a caption in by overriding the new method of UI builder class, passing a dialog box with the caption to the super method, but that did not workout.

Any help is appreciated.

AX2012 claim based user authentication

How to use LogonAs to logon to another AX server

$
0
0

hi all,

Currently, I'm using this code to login to one AX server (AX 2012) from my computer:

                //test logon AX 
                System.Net.NetworkCredential nc = new System.Net.NetworkCredential("akason", "123abcd");
                using (Session session = new Session())
                {
                    try
                    {
                        session.LogonAs("akason", "AXDEV", nc, "DAV", "en-us", "02@AX12R3CU9:2713", "");
                        string result = session.isLoggedOn().ToString();
                    }
                    catch (Exception ex3)
                    {
                        logger.Error(ex3.ToString());
                    }
                }

But I cannot connect to this AX server. I got the error: "Could not load file or assembly 'Microsoft.Dynamics.AX.ManagedInterop, Version=6.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. An attempt was made to load a program with an incorrect format."
Did anyone login success before? please advise.

Thank you so much.

How to set SSRS language in the data provider class

$
0
0

Hi,

I am aware of this.parmReportContract().parmRdlContract().parmLanguageId(language-id) code to change the language of the report. But, I have seen this code only in the controller class's prePromptModifyContract() method.

I have a scenario where the language of the report needs to be determined in the data process class (DP class) of the report. How can I specify the language in the DP class processReport() method?

Regards,

Abhinay

MPOS Installer does not detect SQL Express if installed separately

$
0
0

Hi All,

I tried installing MPOS on a ACER Iconia W4 device. The MPOS installer could not download and install the SQL Express it gave me an error 

This SQL Server Setup media is not supported on a X86 system.  To continue, run the SQL Server Setup media that matches your system.


So i tried to install SQL Express from the link suggested by the MPOS installer. However later on running the MPOS installer it gave an error that the SQL Express "localhost\SQLExpress" is already installed on machine, verify that you have sysadmin permission on the instance. however the installer is unable to query the SQL Express version. This is either due to the Windows service for the SQL Express not running or user running the installer does not have permission on the SQL Instance.

Am unable to get past this error.

Any Ideas?

Hitesh

Error when upgrade AX 2012 R3 CU9 to CU10

$
0
0

Hi all,


I have AX 2012 R3 CU9 and i use axupdate.exe to upgrade to CU10.

Kernel version and Application vrsion is not the same :

Kernel version : 6.3.3000.111

Application version : 6.3.3000.110

In Software Update checklist when i Compile into .NET Framework CIL i have this error :

the inbound port is not starter

Faulted: System.OperationCanceledException: AIF Service group not activated. Service group: ApprovalsServices. Error: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target appealed. ---> System.TypeLoadException: Could not load type 'Dynamics.Ax.Application.SysCustomChartAxis' from assembly 'Dynamics.Ax.Application, Version = 6.3.3000.110, Culture = neutral, PublicKeyToken = null'.

   to Microsoft.Dynamics.Ax.Services.ServiceHelper.GetKnownTypes (ICustomAttributeProvider provider)

   --- End trace of inner exception stack ---

   to System.RuntimeMethodHandle.InvokeMethod (Object target, Object [] arguments, Signature sig, Boolean constructor)

   to System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal (Object obj, Object [] parameters, Object [] arguments)

   to System.Reflection.RuntimeMethodInfo.Invoke (Object obj, BindingFlags invokeAttr, Binder binder, Object [] parameters, CultureInfo culture)

   to System.ServiceModel.Description.TypeLoader.GetKnownTypes (Object [] knownTypeAttributes, ICustomAttributeProvider provider)

   at System.ServiceModel.Description.TypeLoader.UpdateOperationsWithInterfaceAttributes(ContractDescription contractDesc, ContractReflectionInfo reflectionInfo)

   to System.ServiceModel.Description.TypeLoader.LoadContractDescriptionHelper (Type contractType, serviceType Type, Object serviceImplementation)

   to System.ServiceModel.Description.ContractDescription.GetContract (contractType Type, Type serviceType)

   to System.ServiceModel.ServiceHost.CreateDescription (IDictionary`2 & implementedContracts)

   to System.ServiceModel.ServiceHostBase.InitializeDescription (UriSchemeKeyedCollection baseAddresses)

   to System.ServiceModel.ServiceHost..ctor (Type serviceType, Uri [] baseAddresses)

   Microsoft.Dynamics.Ax.Services.AifHelper.PublishServices to (String serviceGroupName)

   --- End trace of inner exception stack ---

   to Microsoft.Dynamics.Ax.Services.AifHelper.PublishServices (String serviceGroupName)

   to Microsoft.Dynamics.Ax.Services.AifHelper.PublishAllServiceGroups (Dictionary`2 faultedServices)

Also for Port DocumentHandling, ExpenseServices, SysWindowsAppApprovalsServices and TimesheetServices the same error.


also when i run Presynchronize i have this error :

Module : ReleaseUpdateDB63_HRMMinor

Method name : allowDupIndex

Description : Disable the index

System.NullReferenceException: Object reference not set to an instance of an object.

    Dynamics.Ax.Application.ReleaseUpdateExecute.Run to () in ReleaseUpdateExecute.run.xpp: line 36

    to Dynamics.Ax.Application.BatchRun.runJobStaticCode (Int64 BatchID) in BatchRun.runJobStaticCode.xpp: line 54

    to Dynamics.Ax.Application.BatchRun.runJobStatic (Int64 BatchID) in BatchRun.runJobStatic.xpp: line 13

    to Batchrun :: runJobStatic (Object [])

    to Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall (Type type MethodName String, Object [] parameters)

    to BatchIL.taskThreadEntry (Object threadArg)



Any help pls.....

Regards,


Show value used to filter from data source

$
0
0

I have a query based  list page and I need to show the value used to filter the data  source  in initializeQuery method on the list page we select control +G similar to the form shown below , how can I do this ?

Cannot create a record in Item table (RetailInventTable) in counting screen

$
0
0

Hello all,

If I insert a new line to counting screen (InventJournalTrans table) i get "Cannot create a record in Item table (RetailInventTable).The record already exists." error. Currently we are not using retail module so I have disabled it from licenses screen and also resynced the database, however i keep getting this error.Any ideas?

HTML Name

HTML Name

Move code from 2012 to AX7

$
0
0

I have a relatively simple Module in AX 2012, how do i best move the code to AX7?

How to backup an Application Server (AOS) and restore it on another Server

$
0
0

Hello Members,

Please the HP Server DL 380  , I used as  Application Server for AX 2012 is having a motherboard problem which HP is trying to resolve for me.

My Question is this;

I was able to swap the hard disk on Database Server which is still working , and I was able to access the Application Server OS , Files ,e.t.c .

Please how can I backup the Application Server (AOS) and re-install it on another Server depending the time HP resolve the it.

Thanks you

Understanding TFS with AX 2012 (III)

$
0
0

So now some basic tasks with TFS and their approach in AX. Let's look at the way the deletes are handled and then the renames, using a simple example.


Create three classes test1, test2 and test3. Add them to source control and then check in (you will do this on a first  AX instance - let's call it AxOne). Now perform a VC Synchronize on a second instance (AxTwo). You will get both objects.

Now, let's go in AxOne and delete test1. Then, go to AxTwo and perform a Synchronize.

You are getting this as part of your process:

    Delete from $/Test/Project/Classes/test1.xpo with ChangeType: None and Status: Deleting.

Now, since it was deleted from the TFS server, the object should be removed from AxTwo as well. We look at the code in charge to do that, that can be found at:

[c]\Data Dictionary\Tables\SysVersionControlSynchronizeLog\Methods\processDelete 18

[c]\Data Dictionary\Tables\SysVersionControlSynchronizeLog\Methods\processDeletesInBatchNum2

[c]\Data Dictionary\Tables\SysVersionControlSynchronizeLog\Methods\processBatchNum  18

and, after letting the code to process the changes, we will indeed notice that the task is performed properly.

So, let's move over to the rename of an object. A rename should be of course bringing together a delete and an add (the add is actually a rename change action in TFS). And if you look closely at what TFS does this is exactly how it plays out.

Number of Operations: 2
Number of Conflicts: 0
    Delete from $/Test/Project/Classes/test2.xpo with ChangeType: None and Status: Deleting.
    Get C:\#AxR.Test\Project\Classes\test2Rename.xpo from $/Test/Project/Classes/test2Rename.xpo with ChangeType: None and Status: Getting.

The code in charge to do that is found in the same table method

[c]\Data Dictionary\Tables\SysVersionControlSynchronizeLog\Methods\processModelInBatchNum

[c]\Data Dictionary\Tables\SysVersionControlSynchronizeLog\Methods\processBatchNum

At this point we are able to better understand the process of how AX works with TFS.


Cannot install Web Services on IIS

$
0
0

Hi all,

I have error when install "Web services on IIS" AX 2012 R2.

When i clicked "Next" on "Specify Business Connector proxy account information" its show error "The password for Business Connector Proxy account CONTOSO\Administrator is incorrect".

But i'm very sure that i type exaclty password for Contoso\Administrator.

Thank you very much !

Cannot edit a record in Sales order - update table (SalesParmTable). An update conflict occurred due to another user process deleting the record or changing one or more fields in the record.

$
0
0

Hi People,

i am getting the following error while trying to cancel a Product Receipt on one of my POs.

'Cannot edit a record in Sales order - update table (SalesParmTable).

An update conflict occurred due to another user process deleting the record or changing one or more fields in the record.'

Not sure what might be happening.

Can you please help?

Thanks,

Nidhi Goyal

EP issue : Unable to retrieve data from the data source. Contact your system administrator for assistance

$
0
0

Hi All,

When I am opening EP page for some profiles then facing these issue

1 - Unable to retrieve data from the data source. Contact your system administrator for assistance

2 - Unable to set parameter values before rendering the report. Contact your system administrator for assistance.

3 - Query (12, 2) The dimension '[Transaction date - fiscal calendar]' was not found in the cube when the string, [Transaction date - fiscal calendar].[Year].[All], was parsed.

Please share your view .. how can we resolve this issue.

My user have system admin rights in Ax and I am admin at server as well.

Thanks

mandatory comments in timesheet

$
0
0

Hi guys,

I am trying to make comments mandatory at Form level  but as it's an array field, i am not sure how to code it in validatewrite method.

We use mobile app for timesheet and it's not mandatory on mobile app. we do not want to make any change in that interface. Hence I need to make the comments mandatory at AX Client (Form Datasource) and EP datasource level instead of table level.

Can someone please guide me here? Thanks,

How to insert values in table on click of submit button on form and retrieve the same on a grid

$
0
0

Hi Team

I am new to MS Dynamics AX, I have creates a SalesOrderTable with three fields ordeno, orderdate, productname, quantity. I have created a form on which these fields I have drag and dropped. now I want to add the values into these fields and store it in data base. and retrieve it on a grid for this I have created another form can some one help me to understand how to do it.

Thanks

Mohammed Abdul Haleem

Viewing all 1084 articles
Browse latest View live


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