how to create templates

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

how to create templates

thiyasri23
Trying to create reusable section templates for an insurance company as a pilot have read the user guide http://doc.orbeon.com/form-bui... but unable to execute it as I do not understand the how to do the following steps. I have the PE version the instruction are as follows - You create sections in a special form with name library. - You publish this form. - For each section in that form, Form Builder creates a reusable section component. - The component is made available in the Form Builder toolbox under "Library" groups can anyone give me an example on how it is done and/or advice on the how to interpret the above thank you
Reply | Threaded
Open this post in threaded view
|

Re: how to create templates

Alessandro  Vernet
Administrator
Hi Thiya,

It's at times hard to start working with a new product, so let's see if we can help! Is there something that you're having some trouble with specifically going through those steps?

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

Re: how to create templates

thiyasri23
Hi Alessandro

i'm trying to create the first two steps in the PE ie 
  • You create sections in a special form with name library.
  • You publish this form.
How does this work ie what is a special form  and where is the link to Library



On Tue, Apr 12, 2016 at 4:56 PM, Alessandro Vernet [via Orbeon Forms community mailing list] <[hidden email]> wrote:
Hi Thiya,

It's at times hard to start working with a new product, so let's see if we can help! Is there something that you're having some trouble with specifically going through those steps?

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



If you reply to this email, your message will be added to the discussion below:
http://discuss.orbeon.com/how-to-create-templates-tp4661389p4661395.html
To unsubscribe from how to create templates, click here.
NAML



--
Warm regards

Sri


View this message in context: Re: how to create templates
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].
Reply | Threaded
Open this post in threaded view
|

Re: how to create templates

thiyasri23
In reply to this post by Alessandro Vernet
Hi Alessandro

i'm trying to create the first two steps in the PE ie 
  • You create sections in a special form with name library.
  • You publish this form.
How does this work ie what is a special form  and where is the link to Library

Warm regards

Thiya

On Tuesday, April 12, 2016 at 5:28:44 PM UTC+1, Alessandro Vernet wrote:
Hi Thiya,

It's at times hard to start working with a new product, so let's see if we
can help! Is there something that you're having some trouble with
specifically going through those steps?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
View this message in context: <a href="http://discuss.orbeon.com/how-to-create-templates-tp4661389p4661395.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fdiscuss.orbeon.com%2Fhow-to-create-templates-tp4661389p4661395.html\46sa\75D\46sntz\0751\46usg\75AFQjCNHTK7If-Sx9Wfaw8FGgR_XXkUIkcg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fdiscuss.orbeon.com%2Fhow-to-create-templates-tp4661389p4661395.html\46sa\75D\46sntz\0751\46usg\75AFQjCNHTK7If-Sx9Wfaw8FGgR_XXkUIkcg&#39;;return true;">http://discuss.orbeon.com/how-to-create-templates-tp4661389p4661395.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].
Reply | Threaded
Open this post in threaded view
|

Re: how to create templates

thiyasri23
In reply to this post by thiyasri23


On Tuesday, April 12, 2016 at 5:20:56 PM UTC+1, Thiya Sriskandarajah wrote:
Trying to create reusable section templates for an insurance company as a pilot have read the user guide <a href="http://doc.orbeon.com/form-bui." target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fdoc.orbeon.com%2Fform-bui.\46sa\75D\46sntz\0751\46usg\75AFQjCNE1y27cE_Nvj7PHWUono2DLT4FM6Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fdoc.orbeon.com%2Fform-bui.\46sa\75D\46sntz\0751\46usg\75AFQjCNE1y27cE_Nvj7PHWUono2DLT4FM6Q&#39;;return true;">http://doc.orbeon.com/form-bui... but unable to execute it as I do not understand the how to do the following steps. I have the PE version the instruction are as follows - You create sections in a special form with name library. - You publish this form. - For each section in that form, Form Builder creates a reusable section component. - The component is made available in the Form Builder toolbox under "Library" groups can anyone give me an example on how it is done and/or advice on the how to interpret the above thank you

View this message in context: <a href="http://discuss.orbeon.com/how-to-create-templates-tp4661389.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fdiscuss.orbeon.com%2Fhow-to-create-templates-tp4661389.html\46sa\75D\46sntz\0751\46usg\75AFQjCNFVqNGAawdq5Vvnbxz08bVA99BbJg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fdiscuss.orbeon.com%2Fhow-to-create-templates-tp4661389.html\46sa\75D\46sntz\0751\46usg\75AFQjCNFVqNGAawdq5Vvnbxz08bVA99BbJg&#39;;return true;">how to create templates
Sent from the <a href="http://discuss.orbeon.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fdiscuss.orbeon.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fdiscuss.orbeon.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">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].
Reply | Threaded
Open this post in threaded view
|

Re: how to create templates

Alessandro  Vernet
Administrator
In reply to this post by thiyasri23
Hi Thiya,

It is a "special" form in the sense that you don't expect users to access that form directly, unlike other forms. Instead, sections in the form are exposed as "section templates" in Form Builder. And using "library" as the form name is a naming convention you have to know about to use that feature.

So, is it working for you when you are following those steps? If not, what isn't working as expected?

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

Re: how to create templates

thiyasri23
Hi Alessandro 

The issue is where do I start as I dived into Orbeon about three week ago and still trying to get to grips . 
It would be useful to know how to use the naming convention feature for a start. 

Regards  Thiya Sri 

On 14 Apr 2016, at 16:53, Alessandro Vernet <[hidden email]> wrote:

Hi Thiya,

It is a "special" form in the sense that you don't expect users to access
that form directly, unlike other forms. Instead, sections in the form are
exposed as "section templates" in Form Builder. And using "library" as the
form name is a naming convention you have to know about to use that feature.

So, is it working for you when you are following those steps? If not, what
isn't working as expected?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
View this message in context: http://discuss.orbeon.com/how-to-create-templates-tp4661389p4661407.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: how to create templates

Alessandro  Vernet
Administrator
Hi Thiya,

This is documented on the page linked below. If you haven't already, I'd recommend you go through this page, and if along the way you have any question, just let me know.

http://doc.orbeon.com/form-builder/section-templates.html

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

Re: how to create templates

thiyasri23
Hi Alessandro

Apologies for my late response. I have been trying to gather my thoughts around the page you have sent, this is page I did access at the start but I was unable to fathom out how to execute the instruction eg

I also followed the instruction but the issue for me was how to create the specialised form ie the instructions are 
  • You create sections in a special form with name library. I assumed this is done by creating a form with the following attributes ie ; application name : Orbeon;; form name : library and form title : global library uk is ths the case 
  • You publish this form. - I then created the fields and published the form but it did not get allocated to the library ? is there a step I missed. At this point I stopped the definition. 
  • For each section in that form, Form Builder creates a reusable section component.
  • The component is made available in the Form Builder toolbox under "Library" groups 


On Wed, Apr 20, 2016 at 5:24 PM, Alessandro Vernet [via Orbeon Forms community mailing list] <[hidden email]> wrote:
Hi Thiya,

This is documented on the page linked below. If you haven't already, I'd recommend you go through this page, and if along the way you have any question, just let me know.

http://doc.orbeon.com/form-builder/section-templates.html

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



If you reply to this email, your message will be added to the discussion below:
http://discuss.orbeon.com/how-to-create-templates-tp4661389p4661427.html
To unsubscribe from how to create templates, click here.
NAML



--
Warm regards

Sri
Reply | Threaded
Open this post in threaded view
|

Re: how to create templates

Alessandro  Vernet
Administrator
Hi Thiya,

Correct, except the app name should be "orbeon" with a lowercase. After you created that form orbeon/library, and published it, in the other form where you want to use that section template, did you reload the sidebar (it is done by clicking on the green icon with 2 arrows, to the right of cut/copy/paste)?

You don't need to reload the Form Builder web page itself. In fact that won't update the sidebar, as it is cached on the server. But you do need to click that icon so new section templates you just published show in the sidebar. You'll let me know if this helps,

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

Re: how to create templates

thiyasri23
Hi Alessandro

Thank you that works. Let me now move on to the templating side 

Regards  Thiya Sri 

On 26 Apr 2016, at 18:37, Alessandro Vernet <[hidden email]> wrote:

Hi Thiya,

Correct, except the app name should be "orbeon" with a lowercase. After you
created that form orbeon/library, and published it, in the other form where
you want to use that section template, did you reload the sidebar (it is
done by clicking on the green icon with 2 arrows, to the right of
cut/copy/paste)?

You don't need to reload the Form Builder web page itself. In fact that
won't update the sidebar, as it is cached on the server. But you do need to
click that icon so new section templates you just published show in the
sidebar. You'll let me know if this helps,

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
View this message in context: http://discuss.orbeon.com/how-to-create-templates-tp4661389p4661440.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: how to create templates

Alessandro  Vernet
Administrator
Hi Thiya,

Perfect, I'm glad that worked, and of course just let us if you're having any trouble with this feature of anything else.

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

Re: how to create templates

thiyasri23
Hi Alessandro

what is the best way to create a order field where the value in that field is auto generated,  I want to do this using the existing features with Orbeon and not create have to create any code etc. 

On Mon, May 9, 2016 at 11:23 PM, Alessandro Vernet [via Orbeon Forms community mailing list] <[hidden email]> wrote:
Hi Thiya,

Perfect, I'm glad that worked, and of course just let us if you're having any trouble with this feature of anything else.

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



If you reply to this email, your message will be added to the discussion below:
http://discuss.orbeon.com/how-to-create-templates-tp4661389p4661488.html
To unsubscribe from how to create templates, click here.
NAML



--
Warm regards

Sri
Reply | Threaded
Open this post in threaded view
|

Re: how to create templates

Alessandro  Vernet
Administrator
Hi Thiya,

How would the value be auto-generated? Typically you would generate and "order number" with:

- A calculated value, if you can produce the value with an expression.
- A service call (e.g. HTTP Server + Action), if something more complex needs to happen.

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

Re: how to create templates

thiyasri23
Hi Alessandro

I would like to do it with a calculated value ie what I have is the first three letters of the customer iD which the customer inserts into the customer name field and then a randomized three numbers which will be some form of ransom number generated based on an initial value.

Many thanks 

On Thu, May 12, 2016 at 6:11 PM, Alessandro Vernet <[hidden email]> wrote:
Hi Thiya,

How would the value be auto-generated? Typically you would generate and
"order number" with:

- A calculated value, if you can produce the value with an expression.
- A service call (e.g. HTTP Server + Action), if something more complex
needs to happen.

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
View this message in context: http://discuss.orbeon.com/how-to-create-templates-tp4661389p4661510.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].



--
Warm regards

Sri

--
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: how to create templates

Alessandro  Vernet
Administrator
Hi Sri,

Assuming your field with the customer id is named customer-id, then you can use the following calculated expression:

concat(substring($customer-id, 1, 3), substring(secure:randomHexId(), 1, 3))

To be able to use the secure:randomHexId() function, you need to declare the corresponding namespace, which you can do by editing the source of the form, and adding the following namespace declaration on the root element:

xmlns:secure="java:org.orbeon.oxf.util.SecureUtils"

You'll let me know if this works for you,

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

Re: how to create templates

tharshan
When I add the this code concat(substring($customer-id, 1, 3), substring(secure:randomHexId(), 1, 3))    

error --> Incorrect XPath expression
Reply | Threaded
Open this post in threaded view
|

Re: how to create templates

Alessandro  Vernet
Administrator
Did you add the namespace declaration for the "secure" prefix on the root element of your form, as mentioned in my previous message?

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

Re: how to create templates

thiyasri23
In reply to this post by Alessandro Vernet
Hi Alessandro

When I inserted the following 

concat(substring($customer-id, 1, 3), substring(secure:randomHexId(), 1, 3))

the following error message got displayed - invalid x-path expression


On Tue, May 17, 2016 at 4:39 AM, Alessandro Vernet [via Orbeon Forms community mailing list] <[hidden email]> wrote:
Hi Sri,

Assuming your field with the customer id is named customer-id, then you can use the following calculated expression:

concat(substring($customer-id, 1, 3), substring(secure:randomHexId(), 1, 3))

To be able to use the secure:randomHexId() function, you need to declare the corresponding namespace, which you can do by editing the source of the form, and adding the following namespace declaration on the root element:

xmlns:secure="java:org.orbeon.oxf.util.SecureUtils"

You'll let me know if this works for you,

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



If you reply to this email, your message will be added to the discussion below:
http://discuss.orbeon.com/how-to-create-templates-tp4661389p4661516.html
To unsubscribe from how to create templates, click here.
NAML



--
Warm regards

Sri
Reply | Threaded
Open this post in threaded view
|

Re: how to create templates

Alessandro  Vernet
Administrator
Hi Thiya,

Understood, and it's normal you get this error if you haven't mapped the "secure" prefix to a namespace URI in the source of the form. Hence me asking if you had done that. If not, see an earlier message of mine in this thread for the namespace declaration you need to add on the root element.

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