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

To display only the modified field in SysDatabaseLog from

$
0
0

Hi All,

i have requirement to show only the modified field in "Database log(SysDataBaseLog  form)" History tab. By default, Database log show all the fields in Grid with data in value , previous value field.

My client want to see only the fields that are modified and hide/Remove rest of the fields.

Refer below screen shot: 

in buildContents form method(SysDataBaseLog form) i am getting the current value, previous value and field id for the modified fields. But am not able to identify the location where all the fields are dynamically fetch and show on the form. 

Please some one help me with this requirement.

Thanks in advance!!!


How to Solve Service metadata may not be accessible error

$
0
0

I have Create Custom AIF Inbound Service it deployed Successfully. but when i m trying to test in WCF test Client it's not Running. it's giving me Error Like this.

Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata.

Can Any one Please try to fix this error in Details.

Thanks.

Error sending sales order by mail

$
0
0

Hi, I currently have a problem trying to send the invoice generated by a sales order by mail. This is my code, but for some reason it is stuck at this point. It does not give error, nor information, simply it stays "Hung" and does not allow to do anything else, it is mandatory to update the browser.

 static void SenEmailSalesInvoice(CustInvoiceJour _custInvoiceJour)
    {
        SrsReportRunController          controller = new SrsReportRunController();
        SRSPrintDestinationSettings     settings;
        SalesInvoiceContract            salesInvoiceContract = new SalesInvoiceContract();
        Args                            args = new Args();
        SrsReportRunImpl                srsReportRun;
        str                 50          email;
        ReportName               reportName = "SalesInvoiceCopy.Report" ;
        
        if(_custInvoiceJour)
        {
            email = CustTable::find(_custInvoiceJour.InvoiceAccount).email();

            if(email)
            {
                
                controller.parmReportName(ssrsReportStr(SalesInvoiceCopy, Report));
                controller.parmExecutionMode(SysOperationExecutionMode::Synchronous);
                controller.parmShowDialog(false);

                salesInvoiceContract.parmRecordId(_custInvoiceJour.RecId);
                salesInvoiceContract.parmDocumentTitle("Factura");
                salesInvoiceContract.parmCountryRegionISOCode(SysCountryRegionCode::countryInfo());

                // (1) Try by passing args

                args.record(_custInvoiceJour);
                args.parmEnum(PrintCopyOriginal::Original);
                args.parmEnumType(enumNum(PrintCopyOriginal));

                controller.parmReportContract().parmRdpContract(salesInvoiceContract);
                controller.parmArgs(args);
                controller.parmShowDialog(false);
                //// (2) Try explicitly preventing loading from last value
                //controller.parmLoadFromSysLastValue(false);
                //// Change print settings as needed

                settings = controller.parmReportContract().parmPrintSettings();
                settings.emailTo(CustTable::find(_custInvoiceJour.InvoiceAccount).email()); ///
                settings.printMediumType(SRSPrintMediumType::Email);
                settings.emailAttachmentFileFormat(SRSReportFileFormat::PDF);
                settings.overwriteFile(true); //it does not pass from here
                settings.emailSubject(strFmt("Factura(No. %1 ) Cliente (%2) Fecha de factura %3", _custInvoiceJour.InvoiceId, _custInvoiceJour.invoiceName(), _custInvoiceJour.InvoiceDate));
                settings.parmFileName(strFmt("Factura No. %1 - Cliente %2", _custInvoiceJour.InvoiceId,_custInvoiceJour.invoiceName() ));

                controller.startOperation();

            }
            else
            {
                info("No se envio la factura correo no valido"+ _custInvoiceJour.InvoiceId);
            }

        }
        else
        {
            info("No se encontro la factura "+ _custInvoiceJour.InvoiceId);
        }


I have the same code for the free text invoice and it works perfectly.

 public static void SenEmailFreeTextInvoice(InvoiceId    _invoiceId)
    {
        SrsReportRunController          controller = new SrsReportRunController();
        SRSPrintDestinationSettings     settings;
        CustInvoiceJour                 _custInvoiceJour;
        FreeTextInvoiceContract         freeTextInvoiceContract = new FreeTextInvoiceContract();
        Args                            args = new Args();
        str                 50          email;
       
        select _custInvoiceJour where _custInvoiceJour.InvoiceId == _invoiceId;

        if(_custInvoiceJour)
        {
            email = CustTable::find(_custInvoiceJour.InvoiceAccount).email();

            if(email)
            {
                controller.parmReportName(ssrsReportStr(FreetextInvoiceCopy, Report));
                controller.parmExecutionMode(SysOperationExecutionMode::Synchronous);
                controller.parmShowDialog(false);

                FreeTextInvoiceContract.parmCustInvoiceJourRecId(_custInvoiceJour.RecId);
                FreeTextInvoiceContract.parmDocumentTitle("Factura");
                FreeTextInvoiceContract.parmSalesFormLetterIsProforma(false);
                FreeTextInvoiceContract.parmCountryRegionISOCode(SysCountryRegionCode::countryInfo());

                // (1) Try by passing args

                args.record(_custInvoiceJour);
                args.parmEnum(PrintCopyOriginal::Original);
                args.parmEnumType(enumNum(PrintCopyOriginal));

                controller.parmReportContract().parmRdpContract(FreeTextInvoiceContract);
                controller.parmArgs(args);
                controller.parmShowDialog(false);
                // (2) Try explicitly preventing loading from last value
                // controller.parmLoadFromSysLastValue(false);
                // Change print settings as needed

                settings = controller.parmReportContract().parmPrintSettings();
                
                settings.emailTo(CustTable::find(_custInvoiceJour.InvoiceAccount).email()); ///
                settings.printMediumType(SRSPrintMediumType::Email);
                
                settings.emailAttachmentFileFormat(SRSReportFileFormat::PDF);
                settings.overwriteFile(true);
                settings.emailSubject(strFmt("Factura (No. %1 ) Cliente (%2) Fecha de factura %3", _custInvoiceJour.InvoiceId, _custInvoiceJour.invoiceName(), _custInvoiceJour.InvoiceDate));
                settings.parmFileName(strFmt("Factura No. %1 - Cliente %2", _custInvoiceJour.InvoiceId,_custInvoiceJour.invoiceName() ));

        

                controller.startOperation();

            }
            else
            {
                info("No se envio la factura correo no valido"+ _custInvoiceJour.InvoiceId);
            }

        }
        else
        {
            info("No se encontro la factura "+ _invoiceId);
        }


Trace (Log)

$
0
0

Hi Experts,

Can any one share you knowledge on, is it possible to use 'nlog' dll to develop logging and tracing functionality in D365FO.

Thanks in advance

Guru

Adding fields to workflow criteria

$
0
0

I'm trying to add the additional field (created a custom field and a field through a table extension) to the Vendor invoice register journal workflow under platform version 23 to have the results used as a condition within the workflow; however, I cannot find which query the workflow is using to retrieve the fields.

OData Integration as Batch Job

How to get stream from internet url?

Argument to method setFieldValue out of range. Unexpected error occurred when processing the request., TMSException

$
0
0

Hi experts,

I am getting TMS exception error some time at the time of rate route for a load from AIF service request and its crashing Ax service, However after second request for rate route for same load working fine and creating shipment, packing slip and invoice, 

Here is not big issue to resend the request but problem is that its crashing my AOS and service getting restarting when this TMS exception occur

Here is Stack from Transportation system error  log

Exception at level 0Message: Unexpected error occurred when processing the request., TMSExceptionSource: Microsoft.Dynamics.Ax.TmsStack trace:   at Microsoft.Dynamics.Ax.Tms.API.TmsService.ExecuteTransaction(String requestXml)   at Dynamics.Ax.Application.TMSCommProxy.Sendrequest(String _xml) in TMSCommProxy.sendRequest.xpp:line 20Exception at level 1Message: Exception has been thrown by the target of an invocation.Source: mscorlibStack trace:   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)   at Microsoft.Dynamics.AX.ManagedInterop.CReflectionCallHelper.CallXppObjectMethodinIL(Object pILXppInstance, String strMethod, Object[] pParamList)   at Microsoft.Dynamics.AX.ManagedInterop.Record.CallWrapper(String strMethod, Boolean checkKeys, UInt16 dwSecKey, Byte accessType, Object[] pParamList)   at Microsoft.Dynamics.AX.ManagedInterop.Record.setFieldValue(Int32 fieldId, Object value)   at lambda_method(Closure , ProjectionRow , AXQueryProvider )   at Microsoft.Dynamics.AX.Framework.Linq.Data.AxProjectionReader`1.Enumerator.MoveNext()   at System.Linq.Enumerable.<JoinIterator>d__38`4.MoveNext()   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)   at Microsoft.Dynamics.Ax.Tms.Data.TmsDataService.GetRatingDtosList(String inventoryLocationId, String inventSiteId, Nullable`1 scheduledShipDate)   at Microsoft.Dynamics.Ax.Tms.Data.TmsDataService.GetRatingDtos(TransactionFacade transactionFacade, Nullable`1 scheduledShipDate)   at Microsoft.Dynamics.Ax.Tms.Bll.RoutingService.RetrieveRatingDto(TransactionFacade transactionFacade, String carrierCode, String carrierServiceCode, Nullable`1 scheduledShipDate)   at Microsoft.Dynamics.Ax.Tms.Bll.RoutingService.RateSegmentConfiguration(TransactionFacade transactionFacade, XElement segment, TMSRouteSegmentConfig routeSegmentConfig, Boolean isChargeOverride)   at Microsoft.Dynamics.Ax.Tms.Bll.RouteEngine.CreateStaticRouteSegments(TransactionFacade transactionFacade, TMSRouteConfig routeConfig, XElement shipmentTemplate, Boolean isChargeOverride)   at Microsoft.Dynamics.Ax.Tms.Bll.RouteEngine.CreateRoute(TransactionFacade transactionFacade, XElement se, TMSRouteGuide routeGuide, String routeConfigurationCode)   at Microsoft.Dynamics.Ax.Tms.Bll.RouteEngine.ProcessShipment(TransactionFacade transactionFacade, XElement se)   at Microsoft.Dynamics.Ax.Tms.Bll.RouteEngine.Route(TransactionFacade transactionFacade)   at Microsoft.Dynamics.Ax.Tms.Bll.RateRouteBroker.Execute(TransactionFacade transactionFacade)   at Microsoft.Dynamics.Ax.Tms.API.TmsService.ExecuteTransaction(String requestXml)Exception at level 2Message: Exception of type 'Microsoft.Dynamics.Ax.Xpp.ErrorException' was thrown.Source: Ax32ServStack trace:   at Microsoft.Dynamics.Ax.MSIL.Interop.throwException(Int32 ExceptionValue)   at Microsoft.Dynamics.Ax.MSIL.cqlCursorIL.setFieldValue(IntPtr table, String _fieldName, Object _value, Int32 _arrayIndex)   at TMSCarrier::setFieldValueWithFieldId(Object , Object[] )   at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeInstanceCall(Object instance, String MethodName, Object[] parameters)   at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelperMIL.MakeInstanceCall(Object instance, String MethodName, Object[] parameters)

-----------------And below is the stack from event viewer of the ax server at the same time and service restarted

Application: Ax32Serv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
   at <Module>.cqlCursorIL_Native.getFieldValue(cqlCursor*, Char*)
   at Microsoft.Dynamics.Ax.MSIL.cqlCursorIL.getFieldValue(IntPtr, System.String)
   at Microsoft.Dynamics.Ax.Xpp.Common.getFieldValue(System.String)
   at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeInstanceCall(System.Object, System.String, System.Object[])
   at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelperMIL.MakeInstanceCall(System.Object, System.String, System.Object[])
 
Exception Info: System.Reflection.TargetInvocationException
   at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
   at System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
   at Microsoft.Dynamics.AX.ManagedInterop.CReflectionCallHelper.CallXppObjectMethodinIL(System.Object, System.String, System.Object[])
   at Microsoft.Dynamics.AX.ManagedInterop.Record.CallWrapper(System.String, Boolean, UInt16, Byte, System.Object[])
   at Microsoft.Dynamics.AX.ManagedInterop.Record.get_Field(System.String)
   at Microsoft.Dynamics.Ax.Tms.TMSRatingProfile.get_TransitTimeEngineCode()
   at Microsoft.Dynamics.Ax.Tms.Data.TmsDataService+<>c__DisplayClass35.<GetRatingDtosList>b__31(System.Tuple`2<Microsoft.Dynamics.Ax.Tms.TMSCarrier,Microsoft.Dynamics.Ax.Tms.TMSCarrierService>, Microsoft.Dynamics.Ax.Tms.TMSRatingProfile)
   at System.Linq.Enumerable+<JoinIterator>d__38`4[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
   at System.Collections.Generic.List`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]..ctor(System.Collections.Generic.IEnumerable`1<System.__Canon>)
   at System.Linq.Enumerable.ToList[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Collections.Generic.IEnumerable`1<System.__Canon>)
   at Microsoft.Dynamics.Ax.Tms.Data.TmsDataService.GetRatingDtosList(System.String, System.String, System.Nullable`1<System.DateTime>)
   at Microsoft.Dynamics.Ax.Tms.Data.TmsDataService.GetRatingDtos(Microsoft.Dynamics.Ax.Tms.Bll.TransactionFacade, System.Nullable`1<System.DateTime>)
   at Microsoft.Dynamics.Ax.Tms.Bll.RoutingService.RetrieveRatingDto(Microsoft.Dynamics.Ax.Tms.Bll.TransactionFacade, System.String, System.String, System.Nullable`1<System.DateTime>)
   at Microsoft.Dynamics.Ax.Tms.Bll.RoutingService.RateSegmentConfiguration(Microsoft.Dynamics.Ax.Tms.Bll.TransactionFacade, System.Xml.Linq.XElement, Microsoft.Dynamics.Ax.Tms.TMSRouteSegmentConfig, Boolean)
   at Microsoft.Dynamics.Ax.Tms.Bll.RouteEngine.CreateStaticRouteSegments(Microsoft.Dynamics.Ax.Tms.Bll.TransactionFacade, Microsoft.Dynamics.Ax.Tms.TMSRouteConfig, System.Xml.Linq.XElement, Boolean)
   at Microsoft.Dynamics.Ax.Tms.Bll.RouteEngine.CreateRoute(Microsoft.Dynamics.Ax.Tms.Bll.TransactionFacade, System.Xml.Linq.XElement, Microsoft.Dynamics.Ax.Tms.TMSRouteGuide, System.String)
   at Microsoft.Dynamics.Ax.Tms.Bll.RouteEngine.ProcessShipment(Microsoft.Dynamics.Ax.Tms.Bll.TransactionFacade, System.Xml.Linq.XElement)
   at Microsoft.Dynamics.Ax.Tms.Bll.RouteEngine.Route(Microsoft.Dynamics.Ax.Tms.Bll.TransactionFacade)
   at Microsoft.Dynamics.Ax.Tms.Bll.RateRouteBroker.Execute(Microsoft.Dynamics.Ax.Tms.Bll.TransactionFacade)
   at Microsoft.Dynamics.Ax.Tms.API.TmsService.ExecuteTransaction(System.String)
   at Dynamics.Ax.Application.TMSCommProxy.Sendrequest(System.String)
   at Dynamics.Ax.Application.TMSProcessXML_Base.Execute()
   at Dynamics.Ax.Application.WCL_DMS_UtilitiClass.Rateroute(Dynamics.Ax.Application.WHSLoadTable)
   at Dynamics.Ax.Application.WCL_DMS_UtilitiClass.Raterouteworkbench(Dynamics.Ax.Application.WHSLoadTable)
   at Dynamics.Ax.Application.WCL_DMS_UtilitiClass.Shipmentcreationforsoandto(System.String, System.Decimal, System.String, System.String, System.String, Microsoft.Dynamics.Ax.Xpp.AxShared.Date, System.String, System.String)
   at Dynamics.Ax.Application.WCL_DMS_UtilitiClass.Finalshipmentcreation(System.String, System.String, System.String, System.Decimal, System.String, System.String, System.String, Microsoft.Dynamics.Ax.Xpp.AxShared.Date, System.String, System.String, System.String)
   at Dynamics.Ax.Application.WCL_DMS_UtilitiClass.Finaldepotdespatchprocessing(System.String, System.String, System.String, System.Decimal, System.String, System.String, Microsoft.Dynamics.Ax.Xpp.AxShared.Date, System.String, System.String, Microsoft.Dynamics.Ax.Xpp.AxShared.Date, System.String, System.String)
   at Dynamics.Ax.Application.WCL_BK_OrderShipmentProcessing.Finalsalesordershipment(System.String, System.String, System.String, System.Decimal, System.String, System.String, Microsoft.Dynamics.Ax.Xpp.AxShared.Date, System.String, System.String, Microsoft.Dynamics.Ax.Xpp.AxShared.Date, System.String, System.String)
   at Microsoft.Dynamics.Ax.Services.eSamparkOrderShipmentHandlingGroup.Microsoft.Dynamics.Ax.Services.eSamparkOrderShipmentHandling.Finalsalesordershipment(Microsoft.Dynamics.Ax.Services.eSamparkOrderShipmentHandlingFinalSalesOrderShipmentRequest)
   at DynamicClass.SyncInvokeFinalsalesordershipment(System.Object, System.Object[], System.Object[])
   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(System.Object, System.Object[], System.Object[] ByRef)
   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(System.ServiceModel.Dispatcher.MessageRpc ByRef)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(System.ServiceModel.Dispatcher.MessageRpc ByRef)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(System.ServiceModel.Dispatcher.MessageRpc ByRef)
   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean)
   at System.ServiceModel.Dispatcher.ChannelHandler.DispatchAndReleasePump(System.ServiceModel.Channels.RequestContext, Boolean, System.ServiceModel.OperationContext)
   at System.ServiceModel.Dispatcher.ChannelHandler.HandleRequest(System.ServiceModel.Channels.RequestContext, System.ServiceModel.OperationContext)
   at System.ServiceModel.Dispatcher.ChannelHandler.AsyncMessagePump(System.IAsyncResult)
   at System.ServiceModel.Dispatcher.ChannelHandler.OnAsyncReceiveComplete(System.IAsyncResult)
   at System.Runtime.Fx+AsyncThunk.UnhandledExceptionFrame(System.IAsyncResult)
   at System.Runtime.AsyncResult.Complete(Boolean)
   at System.ServiceModel.Channels.TransportDuplexSessionChannel+TryReceiveAsyncResult.OnReceive(System.IAsyncResult)
   at System.Runtime.Fx+AsyncThunk.UnhandledExceptionFrame(System.IAsyncResult)
   at System.Runtime.AsyncResult.Complete(Boolean)
   at System.ServiceModel.Channels.SynchronizedMessageSource+ReceiveAsyncResult.OnReceiveComplete(System.Object)
   at System.ServiceModel.Channels.SessionConnectionReader.OnAsyncReadComplete(System.Object)
   at System.Runtime.Fx+AsyncThunk.UnhandledExceptionFrame(System.IAsyncResult)
   at System.Net.LazyAsyncResult.Complete(IntPtr)
   at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object, IntPtr)
   at System.Net.Security.NegotiateStream.ProcessFrameBody(Int32, Byte[], Int32, Int32, System.Net.AsyncProtocolRequest)
   at System.Net.Security.NegotiateStream.ReadCallback(System.Net.AsyncProtocolRequest)
   at System.Net.AsyncProtocolRequest.CompleteRequest(Int32)
   at System.Net.FixedSizeReader.CheckCompletionBeforeNextRead(Int32)
   at System.Net.FixedSizeReader.ReadCallback(System.IAsyncResult)
   at System.Runtime.AsyncResult.Complete(Boolean)
   at System.ServiceModel.Channels.ConnectionStream+IOAsyncResult.OnAsyncIOComplete(System.Object)
   at System.Net.Sockets.SocketAsyncEventArgs.OnCompleted(System.Net.Sockets.SocketAsyncEventArgs)
   at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationSuccess(System.Net.Sockets.SocketError, Int32, System.Net.Sockets.SocketFlags)
   at System.Net.Sockets.SocketAsyncEventArgs.CompletionPortCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)

Export data to Azure Blob Storage on schedule

$
0
0

Hi

I'm new to D365 FO and am trying to export a data package to Azure Blob storage but can't work out how to do it

I've followed this guide successfully https://gfeaxblog.wordpress.com/2017/10/09/o365-how-to-exportimport-data-through-data-management-framework-dimf/ 

I can download the file to my local machine pressing the download button but can't see exactly how to make it available in Blob storage for another application to pick up from there

Is this possible without coding? I'm using the "Sales orders composite V3" entity picked at random, this is really just a learning exercise for myself and some DBAs to understand how we could use these tools

How to filter ranges from design query's tables to print on report?

$
0
0

Hi experts,

i am trying to filter ranges from design query tables. (e.g i have two tables in query 1.FixedAsset, 2. AssetBook), user add some ranges on AssetTable like asset id etc, and same time user add dimensions like department, BusinessUnit, location from AssetBook.

now i want to get values of these all parameters which user inserted to print on report.

(new report, D365).

Thanks in advance,

Muhammad Hannan gohar.

How to add dynamically existing form datasource to parent query

$
0
0

Hi All,

This is my first question in this forum and i'm newbie in Dynamics AX.

i want to join to BOM query existing datasource RDTable as child of BOM datasource. However when i'm doing it from code a new instance of RefDesTable(RefDesTable_1) is created. i want only to "move" this RDTable from RDTable query to BOM Query. Of course i don't want to to this from properties but from code(i have to dynamically add it from code by button and show in grid one of my columns joined refdestable). My jointype between BOM Datasource and RefDesTable is OuterJoin. 

This is my code how i want to add this from code 

this method is written in BOM datasource and called in button

Am i able to do this from code?

thanks

Number sequence in X++

$
0
0

Hi

I have successfully created NS using X++ code.

Only issue i m facing is that I cannot edit the segment of my NS so as to have format comprising of Company, Contant & Alphanumeric , instead my NS is only Alphanumeric & wont allow to add Company or constant in its segment. Please find my code for load module method shared below & kindly suggest a fix.

Also please note that whenever I chosee ParamWizardIsCOntinious as true , i get error & cant generate my NS.  So wanted to check if there is any way to create continuous NS in X++ or by default we cant create Continuous NS in X++.

protected void loadModule()
    {
        NumberSeqDatatype datatype = NumberSeqDatatype::construct();

        datatype.parmDatatypeId(extendedTypeNum(Myenum));
        datatype.parmReferenceHelp(literalstr("my NS desc"));
        datatype.parmReferenceLabel(literalstr("my NS"));
        datatype.parmWizardIsManual(NoYes::No);
        datatype.parmWizardIsContinuous(false);
        datatype.parmWizardIsChangeDownAllowed(NoYes::No);
        datatype.parmWizardIsChangeUpAllowed(NoYes::No);
        datatype.parmWizardHighest(999999);
        datatype.parmSortField(1);

        this.create(datatype);

    }


create a batchable export file form

$
0
0

Hi,

I want to know, how to build a batch process, which will export file or save it. Following is the design of the form.

The intent is to run a process which will get the records and export it in the form of excel file.

Thanks

The controlCallingMethod form method has been deprecated

$
0
0

The controlCallingMethod form method has been deprecated. Any similar method that I can use to replace this one?

While setting the properties on datasource, relation node gets disable in the child datasource

$
0
0

In a custom requirement, i have to create a query where child parent relation form using multiple table, On the child datasource  i did

fetch - 1:n
Use relation : Yes

After setting these property i am unable to add any relation required using relation node.


Website integration - OData data transfer rate

$
0
0

Hi

I am in a planning phase to implement a D365-Website integration. Some details:

  • Online user count averages around 5000
  • The "largest" pages will load around 400 records (products - so many of the records will include images)

I have worked with OData, but not on this scale (data transfer wise). I would prefer to work with it for various reasons. However some colleagues have expressed concern about data transfer limits (which someone heard from someone). I have not yet found any backing for this concern. https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/data-entities/integration-overview?toc=/fin-and-ops/toc.json mentions "Peak data volume" but I assume it is referring to the examples and not an OData limitation.

Further, data transfer rates is out of my field. I had the idea that it has nothing to do with me - it falls under bandwidth and the server's performance. Correct or not?

In short: Is there a reason not to use OData for integration due to some data transfer limit?

Thanks for reading

Creating a trailerin composite data entity XML

$
0
0

Hi All,

I have created composite data entity for Purchase order and purchase order line.

At the end of the file I need to give a footer that gives total of lineamount and few other totals as well for all the records in the file.

This should occur only once at the end and would be sum of the value in lineamount field for all the lines that are there in the file.

Total has to be file wise not Purcjase order wise.

Any suggestion on how to go about this?

SSRS Subreport Error: Subreport could not be shown

$
0
0

Hi,

I have two reports called DailyProductionPackMatReport and DailyProductionIngRawReport, each with different sets of UIBuilder, Controller, Contract and DP. Both these reports have two same parameter fields ProdId and PickingDate but these parameters are being queried differently.

Report nameParametersScreenshot
DailyProductionPackMatReport

DailyProductionPackMatDS_ProdId

DailyProductionPackMatDS_PickingDate

DailyProductionIngRawReport

DailyProductionIngRaw_ProdId

DailyProductionIngRawDS_PickingDate

My requirement is to print these reports together in one click, hence the idea is to use subreport.

I tried calling DailyProductionIngRawReport from DailyProductionPackMatReport.

Here are the subreport properties:

DailyProductionIngRawReport with design named Report.

I passed DailyProductionPackMatReport parameters values as parameters for the subreport.

Turns out, when printing the subreport, I got Error: Subreport could not be shown.

How is this wrong? Please clarify.

Thank you very much.

New X++ as DotNet Languauge

$
0
0

 I wanted to confirm if, the new X++ language that is used in Dynamics365 F&O latest,

   > is like C# and F# and any other dot net language and generates same .net CIL code.

   > can intermix with C# code or call methods generated using C# assembly without the need for business connector

   > we can code entirely all business in C# as first class language alternative to X++

   > X++ underlying uses same common type system as all other dot net languages.

   Responses appreciated in advance.

While uploading xml file into ax, vendor code is 0100 but it is reading as 100. How to resolve?

$
0
0

While uploading xml file into ax, vendor code is 0100 but it is reading as 100. How to resolve?

Viewing all 17532 articles
Browse latest View live


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