
Anonymous
Not applicable
2011-10-21
03:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How can I subdivide a string like "level1 | level2 | level3" into 3 Datafields
Hi! I try to analyse our data from our ticketsystem. There is a field called section where users can choose the concerning topic of the ticket via a treeview. The database shows the 3 levels of this treeview as one string like 'level1 | level2 | level3'. How can I subdivide this string via script into three fields for each level? Thx!
1,553 Views
1 Solution
Accepted Solutions

Not applicable
2011-10-21
03:28 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You can Subfiled function.
eg:
subfield(S, ';' ,2) | returns 'cde' if S is 'abc;cde;efg' |
669 Views
3 Replies

Not applicable
2011-10-21
03:28 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You can Subfiled function.
eg:
subfield(S, ';' ,2) | returns 'cde' if S is 'abc;cde;efg' |
670 Views

Not applicable
2011-10-21
04:54 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try ths in your script.
Temp:
Load * Inline [
LinkValue,
level1 | level2 | level3
];
LinkSplit:
Load LinkValue,subfield(LinkValue,'|') as LinkSplit Resident Temp;
Drop table Temp;
Regards,
Kiran.

Anonymous
Not applicable
2011-10-26
03:54 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks! Very helpful!
669 Views
