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

How to get folder path when select file by FileUpload control

$
0
0

Hello,

Is it possible to get the path of the folder from where the file is being selected from fileUpload control?

I want to access the folder whenever a file is selected from file upload. Can anyone please guide me on this.

Thanks.


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?

Registering External Application

How can i use static variables

$
0
0

i need to use static variable to get it's value in any class in my solution .

i created a class named Myclass 

public class Myclass {

public static str myVar ;

}

an other class where i need to set a value to my variable 

public class MyOtherClass {

Myclass myclass;

myclass.myVar = "valeur";

}

but i get errors .

Copy and Restore SQL DB from Azure to Local VM

$
0
0

Hi,

I need to copy a DB from Azure SQL (UAT) to my local VM SQL.

I cant use any of the below steps.

1. Moving the DB from Azure SQL to Azure storage and then download from it Local VM.

2. Adding the VM IP in the Trusted store in Azure subscription.

Apart from this can anyone how to complete this tasks.

Thanks.

AIF Inbound Port with HTML Adapter and anonymous authentication in IIS

$
0
0

Hi,

I have a problem with a custom Web Service deployed as a AIF Inbound Port with HTML Adapter and with anonymous authentication activated at IIS. The reason for that is because we need to provide a Web Service to SAP...

When I try to use the Web Service, just from a sample Visual Studio sample adding the Service Reference I just get the error "The HTTP request is unauthorized with Client authentication scheme ´Negotiate´. The authentication header received from the Server was ''.  "The remote Server returned an error: (401) Unauthorized."

Maybe someone has an idea or a nice like with the steps to check in order to create this simple web Service?

Thanks

how to put where clause as string in c#?

Report query range default to unlimited

$
0
0

I am trying to build a report with an AOT query. I want my query's ranges to default to SysQueryRangeUtil::valueUnlimited() if the user did not enter a value. I tried a few things and googled a lot. I found this page https://dataqueen.unlimitedviz.com/2011/06/how-to-default-to-all-in-an-ssrs-multi-select-parameter/ but it seems like a lot of work :(

For clarity: The query's ranges are shown in the report dialog. And then if they are left open I get zero results in my report. I assumed this is because the query still filters on the empty ranges - I get results if I specify applicable ranges.

I've done a few reports following the DP, Contract and Controller path. But I am trying to do this one with only an AOT query (and View). I reasoned if I can do it this way it might speed up work in future.

Is there a way to default to an unlimited query range if the value is not filled in?

Thanks for reading


Add extra fields to existing map(customization) and map the extra field to a new field in table(extension).

$
0
0

Hi,

Is there any way to map the new fields added in table extension to a new field added in a map through customisation.

Because, I have added new fields into the map through  customisation. I want to map this new field to a new field in table extension. In my scenario, map is already been added in the table mappings. So, I no need to add the map again.

But I cant able to view the new field added in map, in the mappings node.

I have done synchronising database and also built the models ins D365. But mappings didnt list the newly added fields in map.

Is there any way to solve this problem?

Thanks in advance,

Elamathi. S

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 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.

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

Services: Authenticating a native client app

$
0
0

I have registered an app in Azure

Below is the code and specified the configurations

Below is the code for main operation been performed

But when I am testing the connection it is giving the below error

Please suggest

Calling custom service with nested data contracts

$
0
0

Hi Martin, i am using above approach to create purchase order but unable to read "purchaseOrderLines" and "productAttribute" contract from Json in Dynamics 365 Fin and Ops.

Json

{
    "purchaseOrderHeader": {
        "orderNumber": 123,
        "orderType": null,
        "vendorAccount": "0001",
        "shipToCode": null,
        "orderCreationDate": null,
        "purchaseOrderLines":
			[{
				"orderDetailsId": 1,
				"itemNumber": "Apple 7",
				"productAttribute":
					[{
						"productAttributeName": "COLOR",
						"productAttributeValue": "RED"
					}],
				"quantity": 10,
				"unit": "ea",
				"lineStatus": "",
				"costUnit": 1000,
				"netAmount": 10000,
				"productHierarchy": ""
			}]
}


Contract method

[DataMemberAttribute("purchaseOrderLinesContract"),
AifCollectionTypeAttribute("PurchaseOrderLines",Types::Class,classStr(PurchaseOrderLinesContract))]
public List parmPurchaseOrderLinesContract(List _purchaseOrderLinesContract = purchaseOrderLinesContract)
{
	purchaseOrderLinesContract = _purchaseOrderLinesContract;
	return purchaseOrderLinesContract;
}


Service Class

Class PurchaseOrderService
{
  [SysEntryPointAttribute(true)]
   public void createPurchaseOrder(PurchaseOrderHeaderContract contract)
   {
		ListEnumerator  enumerator;
        List            purchOrderLinesList;
        PurchaseOrderLinesContract purchOrderLinesContract;
        try
        {
            purchOrderLinesList = contract.parmPurchaseOrderLinesContract();
            enumerator = purchOrderLinesList.getEnumerator();
            while(enumerator.moveNext())
            {
				purchOrderLinesContract = enumerator.current();

            }
        }
        catch
        {
			throw error('Unable to create Purchase order');
        }
   }

 

Unable to get "purchOrderLinesContract" and "productAttributeContract" from enumerator because enumerator return JsonObject like

[JObject:{itemNumber": "Apple 7",  "orderDetailsId": 1, "quantity": 10,"unit": "ea", "lineStatus": "","costUnit": 1000,"netAmount": 10000 , "productAttribute": [{"productAttributeName": "COLOR","productAttributeValue": "RED"}]}]


Any help plzzzzz

 

On premise Dynamcis 365 Vs Cloud Dynamics 365 for Operations

$
0
0

Hi All,

Which one is better On premise Dynamics 365 or Cloud Dynamics 365?

What are all the major advantages disadvantages of Cloud Dynamics 365 over the on premise Dynamics 365.

Thanks,

Krihna


How to access view used in AOT query in DP class

$
0
0

Hi Techies,

I am developing one custom SSRS report in D365 in which I have created one union query(AOT, with two views), I need to use this AOT query in my dp class to get fields from it, because normal get function of queryRun doesn't allow me to add the view here,

How to do this?

Any response is appreciated.

Thanks in advance!

Sangram

ISV solution distribution to different customers

$
0
0

Hi community,

today I have question more about process then about solving an issue. We have prepared our ISV solution and we want to distribute it to our customers. What I am interesting for it is way to install our package from point of view of installed Binary and X++ hotfixes on those environments. I can imagine that we have installed other hotfixes on our DEV/TEST environments than a customer have. 

So my question is what is need to be done to install our solution to customer? It is needed to have same hotfixes installed on customer environments before deploy package? What if there is another ISV solution? Do we need to cooperate with other vendor and check also their installed hotfixes?

Maybe silly question, but I can imagine that some hotfix we use/have could lead to some issues with other vendor solution, because they do not need/use same hotfix.

Thank you all for any insights.

Marek

Consuming web service in d365

$
0
0

I have written the c# code to consume web service using OAuth2 . The code is taken from the d365 cookbook (authenticating native client app pg 380).

Instead of console app to call the getauthentictaionheader() function, i am trying to call it in x++, which is throwing the error that this method is not found on the namespace.classname.

Code:

public static void main (Args _args)

{

 namespace.classname authobj = new

 namespace.classname();

 authobj.GetAuthenticationHeader(); - (this line shows error)

}

Activities Functionality implementation

$
0
0

Hi All,

I have a requirement to implement activities (as in vendor master) for my new form.I follwed standard codes which they followed...

and found SysPluginFactory classes which is involved...i created my own methods to implement this ...but when opening the association tab in activities form and selecting parent id i was getting "object reference not set error"

I debugged and checked it was causing from SysPluginFactory class which is there in SmmActivityParentLink class

caseIActivities = SysPluginFactory::Instance('Dynamics.AX.Application', classStr(CaseIActivities), metadataCollection);

i was unable to resolve it.has anyone faced this issue or any resolution which would be appreciated.

Thanks.

Customized workflow not showing in form

$
0
0

I have created customised workflow in AX7. But it is not showing in form. Can anybody can me help me on this.

Viewing all 17532 articles
Browse latest View live


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