Anyone,
My page (WebHome) is not loading - possibly because of some doddgy code on
it.
Is there anyway to revert it back to a previous working version of the page
using some magic code executed on another page?
Regards,
Richard
-----Original Message-----
From: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org]On Behalf
Of Vitantonio Messa
Sent: 31 October 2007 07:03
To: XWiki Users
Subject: Re: [xwiki-users] Adding a document in XWiki.org
Hi,
if you take a look at the API, there are all the information you need.
It is possible to create and save a document, through the function
Xwiki.createDocument() and Document.Save(), of course this functions
will work only if you have editing rights (but if you're able to already
edit documents, you have those rights).
Vito
V. Harikrishnan Nair wrote:
> Hello...
>
> I've been able to read and enter data into my personal MySQL database
> (after a very long night, finally!) and I think this should be added into
> the documentation for XWiki.org but first, I want to get data from a
textbox
> into the database...
>
> Because the first thing that newbies like me wanted to do was to
> communicate with a personal database (especially through the use of
forms),
> I believe this is important.
>
> How can I add a document in XWiki.org ? Do I have editing rights ?
>
>
> Harikrishnan
>
>
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Thales UK Ltd (Wells) DISCLAIMER: The information contained in this e-mail
is confidential. It may also be legally privileged. It is intended only for
the stated addressee(s) and access to it by any other person is
unauthorised. If you are not an addressee, you must not disclose, copy,
circulate or in any other way use or rely on the information contained in
this e-mail. Such unauthorised use may be unlawful. We may monitor all
e-mail communications through our networks. If you have received this e-mail
in error, please inform us immediately on +44 (0) 1749 672081 and delete it
and all copies from your system. We accept no responsibility for changes to
any e-mail which occur after it has been sent. Attachments to this e-mail
may contain software viruses which could damage your system. We therefore
recommend you virus-check all attachments before opening. A business of
Thales UK Ltd. Registered Office: 2 Dashwood Lang Road, The Bourne Business
Park, Addlestone, Weybridge, Surrey KT15 2NX Registered in England No.
868273
Anyone,
My page (WebHome) is not loading - possibly because of some doddgy code on
it.
Is there anyway to revert it back to a previous working version of the page
using some magic code executed on another page?
Regards,
Richard
-----Original Message-----
From: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org]On Behalf
Of Vitantonio Messa
Sent: 31 October 2007 07:03
To: XWiki Users
Subject: Re: [xwiki-users] Adding a document in XWiki.org
Hi,
if you take a look at the API, there are all the information you need.
It is possible to create and save a document, through the function
Xwiki.createDocument() and Document.Save(), of course this functions
will work only if you have editing rights (but if you're able to already
edit documents, you have those rights).
Vito
V. Harikrishnan Nair wrote:
> Hello...
>
> I've been able to read and enter data into my personal MySQL database
> (after a very long night, finally!) and I think this should be added into
> the documentation for XWiki.org but first, I want to get data from a
textbox
> into the database...
>
> Because the first thing that newbies like me wanted to do was to
> communicate with a personal database (especially through the use of
forms),
> I believe this is important.
>
> How can I add a document in XWiki.org ? Do I have editing rights ?
>
>
> Harikrishnan
>
>
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Thales UK Ltd (Wells) DISCLAIMER: The information contained in this e-mail
is confidential. It may also be legally privileged. It is intended only for
the stated addressee(s) and access to it by any other person is
unauthorised. If you are not an addressee, you must not disclose, copy,
circulate or in any other way use or rely on the information contained in
this e-mail. Such unauthorised use may be unlawful. We may monitor all
e-mail communications through our networks. If you have received this e-mail
in error, please inform us immediately on +44 (0) 1749 672081 and delete it
and all copies from your system. We accept no responsibility for changes to
any e-mail which occur after it has been sent. Attachments to this e-mail
may contain software viruses which could damage your system. We therefore
recommend you virus-check all attachments before opening. A business of
Thales UK Ltd. Registered Office: 2 Dashwood Lang Road, The Bourne Business
Park, Addlestone, Weybridge, Surrey KT15 2NX Registered in England No.
868273
Hello again !
I want to take a string entered into a textbox and place it into a MySQL
db (which is not XWiki's RDB). For that I created a simple form shown below
-
<form action = "VelocityTest2" method = "get" >
<input type = "text" name = "formval">
<input type = "submit" value = "submit">
</form>
This is the velocity page (named VelocityTest2) which is supposed to parse
the string entered into the text box -
#set($groovyObject = $xwiki.parseGroovyFromPage("Amrita IIS.GroovyTest4"))
#set($j = $Request.getParameterValues('formval'))
$groovyObject.SQL_conn($j)
A Groovy page (named GroovyTest4) takes that string and enters it into the
MySQL db with the SQL_conn() function and I'm positive that my groovy code
works.
My problem is that the string is not being parsed from the textbox into the
Velocity page. I am getting a null value instead.
Thanks,
Harikrishnan
--
View this message in context: http://www.nabble.com/Parsing-textbox-data-tf4724953.html#a13508865
Sent from the XWiki- Users mailing list archive at Nabble.com.