Is it possible to use ResourceModel for defining keys in Universal Server Settings file? #134
-
|
Is it possible to create pattern (URL) based on ResourceModel? I'd like to build URL like this one <key name="Resource Help" pattern="http://FixedAddress/path/{ResourceModel}" icon-key="web" /> What is the syntax? I am using 8.2 with Gen1 shells. If this is not possible, is there any workaround? George Rainovic (grainovic) - 05/02/2018 12:34 AM
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi grainovic, The information about customizing these links can be found in this online help page. The short answer is that these links can only be static or by using resource attributes - become dynamic (and a special case for the Address), but you cannot use the resource model/family. In your case, you might use one of the following: 1. In our modern shell standards, any shell has a "Model" and "Model Name" attributes, so if you have them with your shells, you can use them in the links you're trying to generate. However, these attributes might be too specific sometimes (might be something like "ABox 1023"), so if you don't want to have a page for each different specific model, you might take the next approach. 2. You might also add a different attribute which might be "Resource Help URL" and it will either have the full help page address or just a relative path to be added to the above key. This can make it more generic if you have multiple models that will have the same help page. The place where you add the attributes in the links that you create is up to you, so if, for example, your help page can get arguments, you might want to build a url that looks like: http://fixedaddress/path/resourcehelp.html?resourcemodel={Model Name}In that case, if your page has some logic that knows how to map any specific model to a generic one, you'll be able to use one of the existing attributes. To learn more about the standards and the defined attributes for each one, you can take a look here: https://github.com/QualiSystems/cloudshell-standards/tree/master/Documentation If you use/d shellfoundry to create any of the shells, in most cases you got these attributes as well (at least the Model one that was defined long time ago). Yaniv Yaniv Kalsky (Yaniv.K) - 05/02/2018 01:27 AM
|
Beta Was this translation helpful? Give feedback.
Hi grainovic,
The information about customizing these links can be found in this online help page.
The short answer is that these links can only be static or by using resource attributes - become dynamic (and a special case for the Address), but you cannot use the resource model/family.
In your case, you might use one of the following:
1. In our modern shell standards, any shell has a "Model" and "Model Name" attributes, so if you have them with your shells, you can use them in the links you're trying to generate. However, these attributes might be too specific sometimes (might be something like "ABox 1023"), so if you don't want to have a page for each different specific model, you might…