Rank: Newbie
Groups: Registered
Joined: 9/20/2020(UTC) Posts: 2  Location: Mechelen
|
I'm just new to mobile together and I'm following the tutorials. I'm at part three where an image will be rotated and changed in the detail record. The tutorial video uses elements for image-source and edit-book-id. When I use the clear button to remove the image and then use camera or gallery to add a new this does not work. With the installation there is the books.mtd app but this app uses attrbutes instead of eleents, over here using the clear button and then attaching an image works. But if I change this example and add the delete-node as in the tutorial I get errors. What should I use the tutorial or the installed example and what with th errors. The error I get is when appending the image after the delete-node - 'Append Node' has an invalid XPath 'attribute Image { mt-transform-image( $PERSISTENT/Root/@image-source, 500, 0, 50 ) }'
- Wrong occurrence to match required sequence type
- XPTY0004: The parameter value ('0' item(s)) at position '1' of the 'mt-transform-image' function has the wrong occurrence to match the sequence type xs:base64Binary ('exactly one')
- Cannot Update Node '$PERSISTENT/Root/@image-source' (no 'Target Node' found)
|
|
|
|
Rank: Administration
Groups: Registered, Administrators Joined: 7/21/2014(UTC) Posts: 487
Was thanked: 83 time(s) in 83 post(s)
|
This message means that there is no such node $PERSISTENT/Root/@image-source
To be sure what is going wrong attach your design file here
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 9/20/2020(UTC) Posts: 2  Location: Mechelen
|
Hello there. I made a word document with print screens and what happens where. I also include the tutorial app I built ('BooksBuild.mtd') and the sample app 'Books.mtd'.
|
|
|
|
Rank: Administration
Groups: Registered, Administrators Joined: 7/21/2014(UTC) Posts: 487
Was thanked: 83 time(s) in 83 post(s)
|
Unfortunately you didn't add the database file, therefore I cannot execute your samples. I tried to guess just by reviewing the MTD, but don't see the actual issue.
By the way, don't forget that you can debug your script. Maybe this will make the issue obvious
|
|
|
|
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.