Re: [xwiki-users] Skip name dialog in App Within Minutes

2016-03-20 Thread Wiki Service-Team

Hey i found this tutorial:
https://www.xwiki.org/xwiki/bin/view/FAQ/How+can+I+create+a+new+page+based+on+a+form

so this Situation is very similar to mine except that i want the name 
auto generated name of the document which is created then.


Here is an Module for exactly this:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Unique+Identification+Number+Module

but i cant figure out how to change the code,
so that the new created page is not based on the value of docName rather
than it is based on $uin.getNextAvailableUIN()

#if("$!request.docName" != '')
  ## Request for creating a new instance
  #set($targetDocReference = 
$services.model.createDocumentReference('', $!{request.spaceName}, 
$!{request.docName}))
 $response.sendRedirect($xwiki.getURL($targetDocReference, 'inline', 
"template=${escapetool.url($request.template)}=${escapetool.url($request.parent)}"))

  ## Stop processing, since we already sent a redirect.
  #stop
#end

= Add a new question =

{{html}}
 
   
 
 
 
 
  Document: 
 

   
 
{{/html}}


If someone gives me a little further information i would be very grateful.

Thanks
Felix


Am 17.03.2016 um 13:18 schrieb Eduard Moraru:

Hi,

Ludovic`s suggestion, as far as I understand it, was to create your own
button/link on the application`s homepage that takes the user to a
constructed URL what uses the entry name that you want.

/xwiki/bin/edit//Data/?template=test.Code.testTemplate=test.WebHome=inline

You can generate such an URL with velocity using:

$xwiki.getDocument(".Data.", "edit",
"template=test.Code.testTemplate=test.WebHome=inline")

You would do this modification in the applcation's homepage, which is
located in ".Data.WebHome".

Hope this helps,
Eduard

On Tue, Mar 15, 2016 at 8:27 PM, Wiki Service-Team 
wrote:


Hello all,

I have a question about these case:
http://lists.xwiki.org/pipermail/users/2014-July/028689.html

i would love to implement exactly the same our wiki ( we are using some
forms where employees put in simple data like wo they called over the day).
I created an app with app within minutes, everything is working fine, but
i would also like to skip the name dialog in App Within Minutes and replace
it with an auto generated random number, so the user should be directly in
the edit URL.

I think the best advise came from Ludovic, but my scripting knowledge is
not as good to understand the advise from him directly,
so can someone give me a little further explanation of how to script my
own Burton using the document api and than
redirection the user to the edit URL.

I would be very grateful for an advice what helps me to accomplish these
goal.

Thanks
Felix

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Skip name dialog in App Within Minutes

2016-03-19 Thread Wiki Service-Team

Hi Eduard

Thank you very much for your suggestion, this makes the situation a 
little more transparent,


But i can´t edit the action buttons in the WebHome Page in my app, 
because the "real WebHome"

just includes following:

{{include reference="Qualitycall.Data.WebHome" /}}


So i modified the string to fit in my template and put a #set before 
because otherwise i see just the velocity script as text in the 
"Qualitycall.Data.WebHome" Page of my app.

But now i get an velocity error.

Here is the full code of the WebHome Page of my app
---
{{velocity}}
#set ($columnsProperties = {
  'Distributor': {"type":"number","size":10},
  'vpid': {"type":"number","size":10},
  'Zahlungsart': {"type":"text","size":10},
  'Vertragsnummer': {"type":"number","size":10},
  'Betreff': {"type":"text","size":10},
  'Bemerkung': 
{"type":"text","filterable":false,"sortable":false,"html":true},

  'doc.author': {"type":"text","size":10,"link":"author"},
  'doc.creationDate': {"type":"text","size":10}
})
#set ($options = {
  'className': 'Qualitycall.Code.QualitycallClass',
  'translationPrefix': 'qualitycall.livetable.',
  'tagCloud': true,
  'rowCount': 15,
  'maxPages': 10,
  'selectedColumn': 'Distributor',
  'defaultOrder': 'asc'
})
#set ($columns = ['Distributor', 'vpid', 'Zahlungsart', 
'Vertragsnummer', 'Betreff', 'Bemerkung', 'doc.author', 'doc.creationDate'])

#livetable('qualitycall' $columns $columnsProperties $options)

#set ($xwiki.getDocument("Qualitycall.Data.1", "edit",
"template=Qualitycall.Code.QualitycallTemplate=Qualitycall.WebHome=inline")
{{/velocity}}
---


Am 17.03.2016 um 13:18 schrieb Eduard Moraru:

$xwiki.getDocument(".Data.", "edit",
"template=test.Code.testTemplate=test.WebHome=inline")


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Skip name dialog in App Within Minutes

2016-03-18 Thread Eduard Moraru
Hi,

Ludovic`s suggestion, as far as I understand it, was to create your own
button/link on the application`s homepage that takes the user to a
constructed URL what uses the entry name that you want.

/xwiki/bin/edit//Data/?template=test.Code.testTemplate=test.WebHome=inline

You can generate such an URL with velocity using:

$xwiki.getDocument(".Data.", "edit",
"template=test.Code.testTemplate=test.WebHome=inline")

You would do this modification in the applcation's homepage, which is
located in ".Data.WebHome".

Hope this helps,
Eduard

On Tue, Mar 15, 2016 at 8:27 PM, Wiki Service-Team 
wrote:

> Hello all,
>
> I have a question about these case:
> http://lists.xwiki.org/pipermail/users/2014-July/028689.html
>
> i would love to implement exactly the same our wiki ( we are using some
> forms where employees put in simple data like wo they called over the day).
> I created an app with app within minutes, everything is working fine, but
> i would also like to skip the name dialog in App Within Minutes and replace
> it with an auto generated random number, so the user should be directly in
> the edit URL.
>
> I think the best advise came from Ludovic, but my scripting knowledge is
> not as good to understand the advise from him directly,
> so can someone give me a little further explanation of how to script my
> own Burton using the document api and than
> redirection the user to the edit URL.
>
> I would be very grateful for an advice what helps me to accomplish these
> goal.
>
> Thanks
> Felix
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Skip name dialog in App Within Minutes

2014-07-17 Thread vinc...@massol.net
You could also check this extension as a helper, I think it was made for a 
similar (if not the same) use case:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Unique+Identification+Number+Module

Thanks 
-Vincent



On 17 Jul 2014 at 02:04:55, Jason Clemons 
(jason.clem...@live.com(mailto:jason.clem...@live.com)) wrote:

 Thanks for the tips, I'll take a look at that tomorrow.
 
  On Jul 16, 2014, at 4:25 PM, Jeremie BOUSQUET wrote:
 
  BTW, an alternative could be to use the modal box [1], to display your form
  in a modal pop-up (with autofilled field displayed or hidden), then create
  the page with the name you want upon submit. The server-side saving could
  be done with either velocity or groovy script.
 
  I think there is an extension doing that, but I can't find it ... If
  someone remembers :)
 
  BR,
  Jeremie
 
  [1]
  http://extensions.xwiki.org/xwiki/bin/view/Extension/Modal+Box+Application
 
 
  2014-07-17 1:08 GMT+02:00 Jeremie BOUSQUET :
 
  Hello,
 
  You could check the Self renaming forms extension [1], that would allow
  renaming your page using the uid from the autofilled field.
 
  [1]
  http://extensions.xwiki.org/xwiki/bin/view/Extension/Self-Renaming+Forms
 
  BR,
  Jeremie
 
 
  2014-07-16 23:59 GMT+02:00 Jason Clemons :
 
  Hello all,
 
  I've created an App Within Minutes and written some custom JavaScript
  to autofill the value of the popup dialog box (called Entry Name) with a
  randomly generated UID..
 
  Essentially what happens is I click the Add New Entry button and when
  the dialog pops up, it is autofilled with the UID from my client-side 
  code.
 
  I'd like to skip the popup box entirely and just create the page directly
  off of the UID so the user is just taken to the form automatically, but 
  the
  only thing I can think of is just hiding the dialog and pushing the button
  via JavaScript.
 
  Any other suggestions are certainly welcome, thx
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Skip name dialog in App Within Minutes

2014-07-17 Thread Jason Clemons
Thanks Vincent,

I already created some client side code which creates a UID using a random 
number generator and a Unix timestamp then pre-populates the modal box before 
it appears, so that part of the code is already squared away...at this point 
it's a working solution, I was just trying to figure a way to prevent my users 
from having to click create, then add when they create a new page (e.g. Create 
the doc using only one click)...I'm gonna give it a go with more JavaScript 
tomorrow I think.

 On Jul 17, 2014, at 12:12 AM, vinc...@massol.net vinc...@massol.net wrote:
 
 You could also check this extension as a helper, I think it was made for a 
 similar (if not the same) use case:
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Unique+Identification+Number+Module
 
 Thanks 
 -Vincent
 
 
 
 On 17 Jul 2014 at 02:04:55, Jason Clemons 
 (jason.clem...@live.com(mailto:jason.clem...@live.com)) wrote:
 
  Thanks for the tips, I'll take a look at that tomorrow.
  
   On Jul 16, 2014, at 4:25 PM, Jeremie BOUSQUET wrote:
  
   BTW, an alternative could be to use the modal box [1], to display your 
   form
   in a modal pop-up (with autofilled field displayed or hidden), then create
   the page with the name you want upon submit. The server-side saving could
   be done with either velocity or groovy script.
  
   I think there is an extension doing that, but I can't find it ... If
   someone remembers :)
  
   BR,
   Jeremie
  
   [1]
   http://extensions.xwiki.org/xwiki/bin/view/Extension/Modal+Box+Application
  
  
   2014-07-17 1:08 GMT+02:00 Jeremie BOUSQUET :
  
   Hello,
  
   You could check the Self renaming forms extension [1], that would allow
   renaming your page using the uid from the autofilled field.
  
   [1]
   http://extensions.xwiki.org/xwiki/bin/view/Extension/Self-Renaming+Forms
  
   BR,
   Jeremie
  
  
   2014-07-16 23:59 GMT+02:00 Jason Clemons :
  
   Hello all,
  
   I've created an App Within Minutes and written some custom JavaScript
   to autofill the value of the popup dialog box (called Entry Name) 
   with a
   randomly generated UID..
  
   Essentially what happens is I click the Add New Entry button and when
   the dialog pops up, it is autofilled with the UID from my client-side 
   code.
  
   I'd like to skip the popup box entirely and just create the page 
   directly
   off of the UID so the user is just taken to the form automatically, but 
   the
   only thing I can think of is just hiding the dialog and pushing the 
   button
   via JavaScript.
  
   Any other suggestions are certainly welcome, thx
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Skip name dialog in App Within Minutes

2014-07-17 Thread Ludovic Dubost
Hi Jason

You also easily script jour own Burton using the document api and than
redirection the user to the edit URL

See the scripting reference documentation for the api

http://platform.xwiki.org/xwiki/bin/view/SRD/Navigation

Ludovic
Le 17 juil. 2014 10:23, Jason Clemons jason.clem...@live.com a écrit :

 Thanks Vincent,

 I already created some client side code which creates a UID using a random
 number generator and a Unix timestamp then pre-populates the modal box
 before it appears, so that part of the code is already squared away...at
 this point it's a working solution, I was just trying to figure a way to
 prevent my users from having to click create, then add when they create a
 new page (e.g. Create the doc using only one click)...I'm gonna give it a
 go with more JavaScript tomorrow I think.

  On Jul 17, 2014, at 12:12 AM, vinc...@massol.net vinc...@massol.net
 wrote:
 
  You could also check this extension as a helper, I think it was made for
 a similar (if not the same) use case:
 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Unique+Identification+Number+Module
 
  Thanks
  -Vincent
 
 
 
  On 17 Jul 2014 at 02:04:55, Jason Clemons (jason.clem...@live.com
 (mailto:jason.clem...@live.com)) wrote:
 
   Thanks for the tips, I'll take a look at that tomorrow.
  
On Jul 16, 2014, at 4:25 PM, Jeremie BOUSQUET wrote:
   
BTW, an alternative could be to use the modal box [1], to display
 your form
in a modal pop-up (with autofilled field displayed or hidden), then
 create
the page with the name you want upon submit. The server-side saving
 could
be done with either velocity or groovy script.
   
I think there is an extension doing that, but I can't find it ... If
someone remembers :)
   
BR,
Jeremie
   
[1]
   
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Modal+Box+Application
   
   
2014-07-17 1:08 GMT+02:00 Jeremie BOUSQUET :
   
Hello,
   
You could check the Self renaming forms extension [1], that would
 allow
renaming your page using the uid from the autofilled field.
   
[1]
   
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Self-Renaming+Forms
   
BR,
Jeremie
   
   
2014-07-16 23:59 GMT+02:00 Jason Clemons :
   
Hello all,
   
I've created an App Within Minutes and written some custom
 JavaScript
to autofill the value of the popup dialog box (called Entry
 Name) with a
randomly generated UID..
   
Essentially what happens is I click the Add New Entry button and
 when
the dialog pops up, it is autofilled with the UID from my
 client-side code.
   
I'd like to skip the popup box entirely and just create the page
 directly
off of the UID so the user is just taken to the form
 automatically, but the
only thing I can think of is just hiding the dialog and pushing
 the button
via JavaScript.
   
Any other suggestions are certainly welcome, thx
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Skip name dialog in App Within Minutes

2014-07-17 Thread Jason Clemons
Duh...that was incredibly easy.

Thanks Ludovic

 On Jul 17, 2014, at 1:00 AM, Ludovic Dubost ludo...@xwiki.com wrote:
 
 Hi Jason
 
 You also easily script jour own Burton using the document api and than
 redirection the user to the edit URL
 
 See the scripting reference documentation for the api
 
 http://platform.xwiki.org/xwiki/bin/view/SRD/Navigation
 
 Ludovic
 Le 17 juil. 2014 10:23, Jason Clemons jason.clem...@live.com a écrit :
 
 Thanks Vincent,
 
 I already created some client side code which creates a UID using a random
 number generator and a Unix timestamp then pre-populates the modal box
 before it appears, so that part of the code is already squared away...at
 this point it's a working solution, I was just trying to figure a way to
 prevent my users from having to click create, then add when they create a
 new page (e.g. Create the doc using only one click)...I'm gonna give it a
 go with more JavaScript tomorrow I think.
 
 On Jul 17, 2014, at 12:12 AM, vinc...@massol.net vinc...@massol.net
 wrote:
 
 You could also check this extension as a helper, I think it was made for
 a similar (if not the same) use case:
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Unique+Identification+Number+Module
 
 Thanks
 -Vincent
 
 
 
 On 17 Jul 2014 at 02:04:55, Jason Clemons (jason.clem...@live.com
 (mailto:jason.clem...@live.com)) wrote:
 
 Thanks for the tips, I'll take a look at that tomorrow.
 
 On Jul 16, 2014, at 4:25 PM, Jeremie BOUSQUET wrote:
 
 BTW, an alternative could be to use the modal box [1], to display
 your form
 in a modal pop-up (with autofilled field displayed or hidden), then
 create
 the page with the name you want upon submit. The server-side saving
 could
 be done with either velocity or groovy script.
 
 I think there is an extension doing that, but I can't find it ... If
 someone remembers :)
 
 BR,
 Jeremie
 
 [1]
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Modal+Box+Application
 
 
 2014-07-17 1:08 GMT+02:00 Jeremie BOUSQUET :
 
 Hello,
 
 You could check the Self renaming forms extension [1], that would
 allow
 renaming your page using the uid from the autofilled field.
 
 [1]
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Self-Renaming+Forms
 
 BR,
 Jeremie
 
 
 2014-07-16 23:59 GMT+02:00 Jason Clemons :
 
 Hello all,
 
 I've created an App Within Minutes and written some custom
 JavaScript
 to autofill the value of the popup dialog box (called Entry
 Name) with a
 randomly generated UID..
 
 Essentially what happens is I click the Add New Entry button and
 when
 the dialog pops up, it is autofilled with the UID from my
 client-side code.
 
 I'd like to skip the popup box entirely and just create the page
 directly
 off of the UID so the user is just taken to the form
 automatically, but the
 only thing I can think of is just hiding the dialog and pushing
 the button
 via JavaScript.
 
 Any other suggestions are certainly welcome, thx
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Skip name dialog in App Within Minutes

2014-07-16 Thread vinc...@massol.net
Hi Jason,

This is also something we’d like to support in the future, see 
http://jira.xwiki.org/browse/XWIKI-7374

Thanks
-Vincent


On 16 Jul 2014 at 23:59:51, Jason Clemons 
(jason.clem...@live.com(mailto:jason.clem...@live.com)) wrote:

 Hello all,
  
 I've created an App Within Minutes and written some custom JavaScript to 
 autofill the value of the popup dialog box (called Entry Name) with a 
 randomly generated UID..
  
 Essentially what happens is I click the Add New Entry button and when the 
 dialog pops up, it is autofilled with the UID from my client-side code.
  
 I'd like to skip the popup box entirely and just create the page directly off 
 of the UID so the user is just taken to the form automatically, but the only 
 thing I can think of is just hiding the dialog and pushing the button via 
 JavaScript.
  
 Any other suggestions are certainly welcome, thx
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Skip name dialog in App Within Minutes

2014-07-16 Thread Jeremie BOUSQUET
Hello,

You could check the Self renaming forms extension [1], that would allow
renaming your page using the uid from the autofilled field.

[1] http://extensions.xwiki.org/xwiki/bin/view/Extension/Self-Renaming+Forms

BR,
Jeremie


2014-07-16 23:59 GMT+02:00 Jason Clemons jason.clem...@live.com:

 Hello all,

 I've created an App Within Minutes and written some custom JavaScript to
 autofill the value of the popup dialog box (called Entry Name) with a
 randomly generated UID..

 Essentially what happens is I click the Add New Entry button and when
 the dialog pops up, it is autofilled with the UID from my client-side code.

 I'd like to skip the popup box entirely and just create the page directly
 off of the UID so the user is just taken to the form automatically, but the
 only thing I can think of is just hiding the dialog and pushing the button
 via JavaScript.

 Any other suggestions are certainly welcome, thx
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Skip name dialog in App Within Minutes

2014-07-16 Thread Jeremie BOUSQUET
BTW, an alternative could be to use the modal box [1], to display your form
in a modal pop-up (with autofilled field displayed or hidden), then create
the page with the name you want upon submit. The server-side saving could
be done with either velocity or groovy script.

I think there is an extension doing that, but I can't find it ... If
someone remembers :)

BR,
Jeremie

[1]
http://extensions.xwiki.org/xwiki/bin/view/Extension/Modal+Box+Application


2014-07-17 1:08 GMT+02:00 Jeremie BOUSQUET jeremie.bousq...@gmail.com:

 Hello,

 You could check the Self renaming forms extension [1], that would allow
 renaming your page using the uid from the autofilled field.

 [1]
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Self-Renaming+Forms

 BR,
 Jeremie


 2014-07-16 23:59 GMT+02:00 Jason Clemons jason.clem...@live.com:

 Hello all,

 I've created an App Within Minutes and written some custom JavaScript
 to autofill the value of the popup dialog box (called Entry Name) with a
 randomly generated UID..

 Essentially what happens is I click the Add New Entry button and when
 the dialog pops up, it is autofilled with the UID from my client-side code.

 I'd like to skip the popup box entirely and just create the page directly
 off of the UID so the user is just taken to the form automatically, but the
 only thing I can think of is just hiding the dialog and pushing the button
 via JavaScript.

 Any other suggestions are certainly welcome, thx
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users



___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Skip name dialog in App Within Minutes

2014-07-16 Thread Jason Clemons
Thanks for the tips, I'll take a look at that tomorrow.

 On Jul 16, 2014, at 4:25 PM, Jeremie BOUSQUET jeremie.bousq...@gmail.com 
 wrote:
 
 BTW, an alternative could be to use the modal box [1], to display your form
 in a modal pop-up (with autofilled field displayed or hidden), then create
 the page with the name you want upon submit. The server-side saving could
 be done with either velocity or groovy script.
 
 I think there is an extension doing that, but I can't find it ... If
 someone remembers :)
 
 BR,
 Jeremie
 
 [1]
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Modal+Box+Application
 
 
 2014-07-17 1:08 GMT+02:00 Jeremie BOUSQUET jeremie.bousq...@gmail.com:
 
 Hello,
 
 You could check the Self renaming forms extension [1], that would allow
 renaming your page using the uid from the autofilled field.
 
 [1]
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Self-Renaming+Forms
 
 BR,
 Jeremie
 
 
 2014-07-16 23:59 GMT+02:00 Jason Clemons jason.clem...@live.com:
 
 Hello all,
 
 I've created an App Within Minutes and written some custom JavaScript
 to autofill the value of the popup dialog box (called Entry Name) with a
 randomly generated UID..
 
 Essentially what happens is I click the Add New Entry button and when
 the dialog pops up, it is autofilled with the UID from my client-side code.
 
 I'd like to skip the popup box entirely and just create the page directly
 off of the UID so the user is just taken to the form automatically, but the
 only thing I can think of is just hiding the dialog and pushing the button
 via JavaScript.
 
 Any other suggestions are certainly welcome, thx
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users