on 03-10-2015 12:15 PM
HI,
There is a way to change the secondary value (remove the first path) but bind the all path
for example in the sedonray value I have like following example
e.g. I've userid: "/c01/b2/u3/u44" so when you type de ,you got the userid: "/c01/b2/u3/u44" in the list of the auto complete.
I want just for display (in the list) to remove the first path like when user type de he will see in the list "b2/u3/u44" and not "/c01/b2/u3/u44"
(remove the /c01/) ,but when it selected under the hood to bind the full path which is "/c01/b2/u3/u44" ,
there is a way to do it ?
I know how to get the string after change with the following code
var result = '/' + value.split('/').slice(2).join('/');
this will return from the full path "/c01/b2/u3/u44" the follwoing
"/b2/u3/u44"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Maksim
Thanks! its a bit more complicated....the only problem with you example is that when you select some value you see the orignal path in the auto complete text box ...
I want it to be like the value that was selected like "/b2/u3/u44" but under the hood bind it to the full value which is "/c01/b2/u3/u44" (the model should have this value "/c01/b2/u3/u44" ) just for display in the text field and in the list box I get the shorter value...
Regards
Stephane
still not 100% clear but try
Hi Maksim,
The only problem that was remain is that if I choose value and save it I saw the shorter value(in the text box ) which is what I need , but when I open the screen again I see in the auto complite text box the full path. since I bind the full value to the required property .
is it possible to handle it that when I open the screen and when it read the value to provide in the text box the shorther value ?
Regards,
Stephane
So if you know how to strip the first part of the path, then what is your problem?
I mean, if you use a formatter function which strips the first part of your additionalText property, that should work. Or am I missing something?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.