xf:output appearance="xxf:download" + readonly

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

xf:output appearance="xxf:download" + readonly

ldeck
Hi there,

I'm trying to make an output control readonly until other conditions are met. This is working fine for other controls (like checkboxes or triggers) but for a download the link is always active.

Is readonly not supported for an xforms:output?

<xforms:output ref="./generated-pdf-temp-file" appearance="xxforms:download">
    <xforms:label><xforms:output value="../label"/></xforms:label>
    <xforms:mediatype ref="@mediatype"/>
    <xforms:filename ref="@filename"/>
</xforms:output>


<xforms:bind nodeset="instance('products-instance')/product/checklist/item/label"
    readonly="not(empty(../preceding-sibling::item)) and
             (../preceding-sibling::item/status != 'checked')" />

cheers,
Lachlan

--
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].
Reply | Threaded
Open this post in threaded view
|

Re: xf:output appearance="xxf:download" + readonly

Alessandro  Vernet
Administrator
Hi Lachlan,

What would be the expected behavior? Did you expect the link to be disabled, i.e. to have the text of the link shown instead of an active link?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: xf:output appearance="xxf:download" + readonly

ldeck
Yes, that's correct.

On 10/10/2013, at 9:26 AM, Alessandro Vernet <[hidden email]> wrote:

> Hi Lachlan,
>
> What would be the expected behavior? Did you expect the link to be disabled,
> i.e. to have the text of the link shown instead of an active link?
>
> Alex
>
> -----
> --
> Follow Orbeon on Twitter: @orbeon
> Follow me on Twitter: @avernet
> --
> View this message in context: http://discuss.orbeon.com/xf-output-appearance-xxf-download-readonly-tp4657401p4657421.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].

--
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].
Reply | Threaded
Open this post in threaded view
|

Re: xf:output appearance="xxf:download" + readonly

ldeck
That is what happens for an xforms:trigger, so I was needing the same effect.

On 10/10/2013, at 10:00 AM, Lachlan Deck <[hidden email]> wrote:

> Yes, that's correct.
>
> On 10/10/2013, at 9:26 AM, Alessandro Vernet <[hidden email]> wrote:
>
>> Hi Lachlan,
>>
>> What would be the expected behavior? Did you expect the link to be disabled,
>> i.e. to have the text of the link shown instead of an active link?
>>
>> Alex
>>
>> -----
>> --
>> Follow Orbeon on Twitter: @orbeon
>> Follow me on Twitter: @avernet
>> --
>> View this message in context: http://discuss.orbeon.com/xf-output-appearance-xxf-download-readonly-tp4657401p4657421.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].
>

--
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].
Reply | Threaded
Open this post in threaded view
|

Re: xf:output appearance="xxf:download" + readonly

Alessandro  Vernet
Administrator
ldeck wrote
That is what happens for an xforms:trigger, so I was needing the same effect.
Good point: I added an issue for this; see the link below. (But since this is not high priority, it is unlikely to be resolved very soon unless sponsored by a customer.)

https://github.com/orbeon/orbeon-forms/issues/1315

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: xf:output appearance="xxf:download" + readonly

ldeck
No worries. I'll find a workaround.
cheers

On 12/10/2013, at 10:24 AM, Alessandro  Vernet <[hidden email]> wrote:

> ldeck wrote
>> That is what happens for an xforms:trigger, so I was needing the same
>> effect.
>
> Good point: I added an issue for this; see the link below. (But since this
> is not high priority, it is unlikely to be resolved very soon unless
> sponsored by a customer.)
>
> https://github.com/orbeon/orbeon-forms/issues/1315
>
> Alex
>
> -----
> --
> Follow Orbeon on Twitter: @orbeon
> Follow me on Twitter: @avernet
> --
> View this message in context: http://discuss.orbeon.com/xf-output-appearance-xxf-download-readonly-tp4657401p4657443.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].

--
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].
Reply | Threaded
Open this post in threaded view
|

Re: xf:output appearance="xxf:download" + readonly

ldeck
Actually - is there a way for a trigger to act as a download?

On 13/10/2013, at 7:19 AM, Lachlan Deck <[hidden email]> wrote:

> No worries. I'll find a workaround.
> cheers
>
> On 12/10/2013, at 10:24 AM, Alessandro  Vernet <[hidden email]> wrote:
>
>> ldeck wrote
>>> That is what happens for an xforms:trigger, so I was needing the same
>>> effect.
>>
>> Good point: I added an issue for this; see the link below. (But since this
>> is not high priority, it is unlikely to be resolved very soon unless
>> sponsored by a customer.)
>>
>> https://github.com/orbeon/orbeon-forms/issues/1315
>>
>> Alex
>>
>> -----
>> --
>> Follow Orbeon on Twitter: @orbeon
>> Follow me on Twitter: @avernet
>> --
>> View this message in context: http://discuss.orbeon.com/xf-output-appearance-xxf-download-readonly-tp4657401p4657443.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].
>

--
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].
Reply | Threaded
Open this post in threaded view
|

Re: xf:output appearance="xxf:download" + readonly

Alessandro  Vernet
Administrator
ldeck wrote
Actually - is there a way for a trigger to act as a download?
Not really. I think it is better, as a workaround, to make the <xf:output appearance="xxf:download"> non-relevant when you don't want people to be able to download the file (so it is hidden and you can be sure that users really won't be able to download the file), and instead just show a piece of text saying that the file cannot be downloaded.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet