Ecrion Software Inc. Homepage
Forum Home Forum Home > XF Designer > Generic Support
  New Posts New Posts RSS Feed: Data Source Drag and Drop
  FAQ FAQ  Forum Search   Register Register  Login Login

Data Source Drag and Drop

 Post Reply Post Reply
Author
Message / View First Unread Post
Simon View Drop Down
Newbie
Newbie


Joined: 18 Oct 2011
Posts: 2
Post Options Post Options   Quote Simon Quote  Post ReplyReply Direct Link To This Post Topic: Data Source Drag and Drop
    Posted: 09 Dec 2011 at 3:28pm
Hello,

I have a question regarding the XPATH expression generated when doing a drag and drop from the Data Source container.  

Is there a way to customize the XPATH expression generated?  Currently, we have a tree that is of the form:

<page>
 <question name="a" />
 <answer />
</page>
<page>
 <question name="b" />
 <answer />
</page>
...

When we drag and drop a question node, we get a reference to /page/question, however, we would like it to be /page/question[@name="a"].

Is there a way to configure the behaviour we desire? Or any other suggestions (other than editing the XSL-FO code itself)?

Thanks for the help!
Simon
Back to Top
radup View Drop Down
Admin Group
Admin Group
Avatar
Adminstrator

Joined: 19 May 2008
Posts: 83
Post Options Post Options   Quote radup Quote  Post ReplyReply Direct Link To This Post Posted: 12 Dec 2011 at 7:04am
Hi Simon,

You just need to double-click on field and the following will appear http://www.ecrion.com/Temp/HelpCache/XFDesigner/framed_hidd_dialog_xpath_edit.htm.
In "Expression" textbox you can customize your XPath.

Regards,
Radu

Back to Top
Simon View Drop Down
Newbie
Newbie


Joined: 18 Oct 2011
Posts: 2
Post Options Post Options   Quote Simon Quote  Post ReplyReply Direct Link To This Post Posted: 12 Dec 2011 at 8:37am
Thanks for the response Radu.

I am aware of the edit expression capability, however I'm interested in knowing if there's a way to override the default expression generated when doing a drag and drop.  If I'm dropping 100 text fields into my template, requiring editing for each XPATH node is quite time consuming.

Thanks again,
Simon
Back to Top
radup View Drop Down
Admin Group
Admin Group
Avatar
Adminstrator

Joined: 19 May 2008
Posts: 83
Post Options Post Options   Quote radup Quote  Post ReplyReply Direct Link To This Post Posted: 12 Dec 2011 at 8:52am
Unfortunately there's no way to override the default behavior. But you can go to XML view and use search & replace dialog.

Thank you,
Radu
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.69
Copyright ©2001-2010 Web Wiz

This page was generated in 0.109 seconds.