Up till now I was hard-coding the labels. I decided that I start to have enough custom that I need to make use of the resources file.
I followed these steps on how to add a resource file:
https://docs.microsoft.com/en-us/dynamics365/commerce/dev-itpro/pos-view-extension
Under my main custom extension, I created a folder Resources, a folder under it called Strings, a folder under Strings called en-US and then the file: resources.resjson, The latter was created by selecting to add a new item, then I chose under Visual C# Items, the Resources File, file type and just renamed it to be of type: resjson.
I hope I did it correctly because the above link is not very clear about that one.
I also added the file to my manifest.json:
However when I run cloudPOS with Google Chrome and look in Developer Tools, I see the error:Failed to load resource: the server responded with a status of 404
If I remove my Resources file out of the manifest.json file, then the error goes away. So how do I add my Resources file? Can there be only 1 Resources file? We have another Resources file belonging to another ISV but they have their own manifest.json file.
For a view the columns labels show as the string-id instead of the value assigned to the string_id.
Also, although all the Microsoft examples show the label id's as "String_1" for example, the "string_1" is hard-coded. To prevent my labels to be confused with that of another ISV's resources file id's I named mine "tmc_1" for example. Is there a rule that it absolute has to start with "string"? Below is an example from the above link showing it is just a hard-coded value. So I can only assume that it can be anything s long as it is in the Resources-file.
So how can I get it to see my Resources file?
Any help is much appreciated