Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Problem with the FullPath method
January 26, 2022
10:18, EET
Forum Posts: 22
Member Since:
March 26, 2021
sp_UserOfflineSmall Offline

I’m exploring the possibilities with the address space and I’m annoyed by a peculiarity of our system inherited from the item addressing method used before the switch to the server using Prosys Sentrol.

To explain briefly, in that system items are defined as:
(IP address)!(expression)
For example:

I wanted to take advantage of the new browsing possibilities to move to a space modelling this
    + Task1
        + P
           + [1]
           + [2]
           + [3]
           + [4]
               + Counter

Defining the hierarchy is not a problem, but for the client the resulting item is :[4].Counter

I can make the system tolerant and accept this syntax as well, and then correct it in the FindItem event, but before I do that I would have liked a confirmation that there is no other possible solution to define this Fullpath in a custom way.

Another question, is there a “good” way to handle arrays and allow access in the browser to different index values?

Thanks in advance

January 27, 2022
11:17, EET
Jouni Aro
Forum Posts: 1015
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Good question 🙂 Which means that the answer is not so good…

I took a look and it seems that it’s pretty much hardcoded that the address space tree levels are using a single character and the customisations are not really possible without modifications to the components.

Regarding arrays, there is no specific handling for the array elements, so you would need to break them up yourself. In your case, it seems even that the array elements are in the middle of the tree, which makes it even more tricky.

If you find a way to customise these in your code – or how the component interface could be improved to support this in practice, I would be happy to hear, though.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
25 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 138

pramanj: 86

rocket science: 81

Francesco Zambon: 81

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 713

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1476

Posts: 6294

Newest Members:

mariam6210, donblanchard632, HowardLon, delilahhuggard, salvadorcolby69, HelenImpar, MnoioDat, babuinsobaka, Miikka Mikkonen, rickeylipinski

Moderators: Jouni Aro: 1015, Pyry: 1, Petri: 0, Bjarne Boström: 986, Jimmy Ni: 26, Matti Siponen: 328, Lusetti: 0

Administrators: admin: 1