Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
I have a control that on activation of the form inserts some data into the form model.
I don't want it to do this when the form is readonly or when the form is inserted into a form template in the builder. So I have 'if(exf:readonly($binding))" in the action to suppress it in readonly mode. Is there something similar I can use so that the action is suppressed when the control is used in the builder? How can I (the xbl control) detect that I am in the builder? thanks |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
Hi Brian, This is something we generally try (and I think manage) to avoid in our code, but I can think of cases where it really can't be avoided. In those cases, I imagine you could test on xxf:instance('fr-parameters-instance')/app = 'orbeon' and xxf:instance('fr-parameters-instance')/form = 'builder'. You'll let us know if this works for you. Alex On Tue, May 12, 2015 at 12:43 AM bwallis42 <[hidden email]> wrote:
-- I have a control that on activation of the form inserts some data into the ... [show rest of quote] You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Works well, thanks. I don't think I can avoid this in this and one other case where the control modifies its model when a form is loaded. The particular case we have is a control that maintains a list of who and when a form was edited and also displays this list in the form. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
Hi Brian,
OK, great, thank you for confirming, and I understand that in some cases you just can't avoid it. Alex On Tue, May 12, 2015 at 6:28 PM, bwallis42 <[hidden email]> wrote: > Alessandro Vernet wrote >> This is something we generally try (and I think manage) to avoid in our >> code, but I can think of cases where it really can't be avoided. In those >> cases, I imagine you could test on >> xxf:instance('fr-parameters-instance')/app = 'orbeon' and >> xxf:instance('fr-parameters-instance')/form = 'builder'. You'll let us >> know >> if this works for you. > > Works well, thanks. > > I don't think I can avoid this in this and one other case where the control > modifies its model when a form is loaded. The particular case we have is a > control that maintains a list of who and when a form was edited and also > displays this list in the form. > > > -- > View this message in context: http://discuss.orbeon.com/xbl-component-am-I-in-the-builder-tp4659909p4659919.html > Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com. > > -- > You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. > To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. > To post to this group, send email to [hidden email]. ... [show rest of quote] -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
And FYI, I've added the following RFE for this:
https://github.com/orbeon/orbeon-forms/issues/2231 Alex On Wed, May 13, 2015 at 11:10 AM, Alessandro Vernet <[hidden email]> wrote: > Hi Brian, > > OK, great, thank you for confirming, and I understand that in some > cases you just can't avoid it. > > Alex > > On Tue, May 12, 2015 at 6:28 PM, bwallis42 > <[hidden email]> wrote: >> Alessandro Vernet wrote >>> This is something we generally try (and I think manage) to avoid in our >>> code, but I can think of cases where it really can't be avoided. In those >>> cases, I imagine you could test on >>> xxf:instance('fr-parameters-instance')/app = 'orbeon' and >>> xxf:instance('fr-parameters-instance')/form = 'builder'. You'll let us >>> know >>> if this works for you. >> >> Works well, thanks. >> >> I don't think I can avoid this in this and one other case where the control >> modifies its model when a form is loaded. The particular case we have is a >> control that maintains a list of who and when a form was edited and also >> displays this list in the form. >> >> >> -- >> View this message in context: http://discuss.orbeon.com/xbl-component-am-I-in-the-builder-tp4659909p4659919.html >> Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com. >> >> -- >> You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. >> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. >> To post to this group, send email to [hidden email]. ... [show rest of quote] -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
This RFE is being implemented for Orbeon Forms 2016.2. The function is called `fr:is-design-time()`. See:
https://github.com/orbeon/orbeon-forms/issues/2231 -Erik |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Thanks Erik, that will simplify my xbl code and make it easier to understand.
|
Free forum by Nabble | Edit this page |