Support Forum

Ask questions and get help from MobileTogether experts.
MobileTogether Product Information
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
tra4tor  
#1 Posted : Wednesday, October 7, 2020 3:47:40 PM(UTC)
tra4tor

Rank: Newbie

Groups: Registered
Joined: 10/1/2020(UTC)
Posts: 6
Germany
Location: niedersachsen

Thanks: 1 times
I have a nested table as in tha image. the xml structure looks like below:
Code:


-Parent (F119)
	-child (F304)
		sub-child (F132)
			-sub-sub-child (F133)
			-sub-sub-child (F134)
		sub-child (F140)
		sub-child (F136)
	-child (409)
-Parent (F305)
	-child (F397)




I have created a repeating table and another table with repeating row inside one cell of the first previous.
table and conect them to data source (xml file)

Question is that:
1- Is that possible to save changes in text field by pressing button number 5 in image into the connected xml data source. or I have to load/save from/to persistent structure and then remove the datasource file and save the new content?
i.e when I press button # five for ID F119 than it saves all the underlaying child changes into data source

2- Is that possible by pressing buttons 2 and 3 dynamically add rows with similar structure to the same row above or below current row? how? it is important that when pressing #2 or 3 to create new

3-By pressing the button number 4 create a childs/sub node for that current row?

Any solution would be appreciated.

Thank you in advanced
File Attachment(s):
MTG-Scratch.zip (31kb) downloaded 1 time(s).
tra4tor attached the following image(s):
Screenshot 2020-10-07 162606.png
bbv  
#2 Posted : Tuesday, October 13, 2020 2:56:38 PM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 412

Was thanked: 69 time(s) in 69 post(s)
The answer to all your questions is YES. But we need your MTD file to show how
tra4tor  
#3 Posted : Wednesday, October 14, 2020 3:55:11 PM(UTC)
tra4tor

Rank: Newbie

Groups: Registered
Joined: 10/1/2020(UTC)
Posts: 6
Germany
Location: niedersachsen

Thanks: 1 times
Originally Posted by: bbv Go to Quoted Post
The answer to all your questions is YES. But we need your MTD file to show how


In the zip file You can find the project mtd file. as you may see table are hard coded inorder to show nested structure, is there any way to dynamically create the table based on the xml nested structure. i need around 14 nested row!!!

I also tried to get the next sibiling of current node and then insert node before that sibiling but it gives undefined namespace error.

Thank you in advanced
bbv  
#4 Posted : Thursday, October 15, 2020 2:40:14 PM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 412

Was thanked: 69 time(s) in 69 post(s)
I extended the Templates example from the previous post to show adding Delete, Insert Before and Insert After buttons
File Attachment(s):
Templates.mtd (21kb) downloaded 3 time(s).
thanks 1 user thanked bbv for this useful post.
tra4tor on 10/19/2020(UTC)
Users browsing this topic
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.