Hi,

Please help me out,

Help for XWiki - User Login Counter
      ([EMAIL PROTECTED])

Hi All,

 

I want to be creating the XWiki - User / Admin Login Counter. - (Page
visited for intranet through respective Login).

Please help me, how to do that? If anyone has xwiki code, please send to
me. I am new to XWiki.

Regards,
Prabhakar Gopalsamy
______________________________
Wipro Technologies



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sent: Friday, November 02, 2007 11:53 AM
To: users@xwiki.org
Subject: users Digest, Vol 4, Issue 3

Send users mailing list submissions to
        users@xwiki.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.xwiki.org/mailman/listinfo/users
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of users digest..."


Today's Topics:

   1. Re: Page not loading (Esbach, Brandon)
   2. Re: Page not loading (goldring, richard)
   3. Closed JIRA issue 744 seems still to cause problems:
      getRenderedContent does not set the proper document in the
      context (developers Massol/Dumitru/Dubost) (Andreas)
   4. Re: Adding a document in XWiki.org
      (Your XEN ICT Team - Ricardo Rodriguez)
   5. Porblem Installing w/Oracle (Fye Kan)
   6. Re: users Digest, Vol 3, Issue 69 ([EMAIL PROTECTED])


----------------------------------------------------------------------

Message: 1
Date: Thu, 1 Nov 2007 15:37:41 -0000
From: "Esbach, Brandon" <[EMAIL PROTECTED]>
Subject: Re: [xwiki-users] Page not loading
To: "XWiki Users" <users@xwiki.org>
Message-ID:
        
<[EMAIL PROTECTED]>
        
Content-Type: text/plain;       charset="us-ascii"

Add "?viewer=history" (naturally without the "") to the end of the page
name to access the history.  This interrupts the page and gives you the
history layout where you can rollback as needed.

If it won't even show you the menu (where the history is usually
accessed), it's possible that you've got another supporting page broken.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of goldring, richard
Sent: 01 November 2007 15:27
To: 'XWiki Users'
Subject: Re: [xwiki-users] Page not loading

Er .. no ... the page won't load so I can't access the history view!!!

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
Of Esbach, Brandon
Sent: 01 November 2007 15:29
To: XWiki Users
Subject: Re: [xwiki-users] Page not loading


You can go to the history view.. 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of goldring, richard
Sent: 01 November 2007 15:08
To: 'XWiki Users'
Subject: [xwiki-users] Page not loading

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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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@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
_______________________________________________
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

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
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


------------------------------

Message: 2
Date: Thu, 1 Nov 2007 15:36:42 -0000 
From: "goldring, richard" <[EMAIL PROTECTED]>
Subject: Re: [xwiki-users] Page not loading
To: "'XWiki Users'" <users@xwiki.org>
Message-ID:
        
<[EMAIL PROTECTED]>
Content-Type: text/plain

Brandon,

Thanks - that worked! - my code must have gone into an endless loop or
something.

Regards,

Richard

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
Of Esbach, Brandon
Sent: 01 November 2007 15:38
To: XWiki Users
Subject: Re: [xwiki-users] Page not loading


Add "?viewer=history" (naturally without the "") to the end of the page
name to access the history.  This interrupts the page and gives you the
history layout where you can rollback as needed.

If it won't even show you the menu (where the history is usually
accessed), it's possible that you've got another supporting page broken.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of goldring, richard
Sent: 01 November 2007 15:27
To: 'XWiki Users'
Subject: Re: [xwiki-users] Page not loading

Er .. no ... the page won't load so I can't access the history view!!!

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
Of Esbach, Brandon
Sent: 01 November 2007 15:29
To: XWiki Users
Subject: Re: [xwiki-users] Page not loading


You can go to the history view.. 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of goldring, richard
Sent: 01 November 2007 15:08
To: 'XWiki Users'
Subject: [xwiki-users] Page not loading

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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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@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
_______________________________________________
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

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
_______________________________________________
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

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


------------------------------

Message: 3
Date: Thu, 1 Nov 2007 11:45:10 -0700
From: Andreas <[EMAIL PROTECTED]>
Subject: [xwiki-users] Closed JIRA issue 744 seems still to cause
        problems:       getRenderedContent does not set the proper
document in the
        context (developers Massol/Dumitru/Dubost)
To: users@xwiki.org
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1

Hello,

I believe my yesterday's question to this list refers to the problem
described in
http://jira.xwiki.org/jira/browse/XWIKI-744

Anybody got similar issues? Any quick fix in sight?


Thanks,

Andreas


------------------------------

Message: 4
Date: Thu, 01 Nov 2007 20:14:46 +0100
From: Your XEN ICT Team - Ricardo Rodriguez <[EMAIL PROTECTED]>
Subject: Re: [xwiki-users] Adding a document in XWiki.org
To: XWiki Users <users@xwiki.org>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

Esbach, Brandon wrote:
> Xwiki.org sandbox: you don't normally get programming rights (admin
rights don't guarantee programming rights on the .org sites).
> Someone on the xwiki team will have to open and save the page for you
in order to test it.
>
>   
Thanks for the information. I didn't realize about the required 
programming rights. It is perfectly reasonable that this rights must be 
given by an administrator.

But the site is not accessible yet. This link 
http://sandbox.xwiki.org/xwiki/bin/view/Main/WebHome keeps generating an

exception while reading document XWiki.XWikiPreferences.

In any case, it there were a problem with programming rights, I 
understand that no script will be executed. In this case, scripts 
recovering a single record work fine or printing simple lines by using 
println work fine.

> If it's a local xwiki instance that's also causing the problem, I'm
not sure.  Accessing mysql databases seems to work fine for me for my
own local databases.

Could you be so kind as to trying the following script in your xwiki 
installation to see if it is my server the only one that is having 
problems while printing iterations? Thanks!

<%
import groovy.sql.Sql;
println "This is a sample to access epec in *mire*"
def sendSQL =
Sql.newInstance("jdbc:mysql://mire.environmentalchange.net/epec","epec_R
eadOnly", "epec_ReadOnly", "com.mysql.jdbc.Driver") 
sendSQL.eachRow("SELECT * FROM epec.spot s") {row ->println
"${row.code}"}
%>

I've run it in three boxes all of them running 1.2-milestone-1.5235 and 
always get the same result.

Please, could anybody else try this? Thank you so much.

Best,

-- 
Ricardo Rodr?guez
Your XEN ICT Team

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.xwiki.org/pipermail/users/attachments/20071101/4b621144/att
achment.html 

------------------------------

Message: 5
Date: Thu, 1 Nov 2007 17:59:16 -0600
From: "Fye Kan" <[EMAIL PROTECTED]>
Subject: [xwiki-users] Porblem Installing w/Oracle
To: users@xwiki.org
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

Hello,

We're investingating a few wiki options and were trying to use Xwiki
with
Tomcat 6 and Oracle 10g using the war installation process. We've
modified
all of the config files per the instructions on the site but are getting
the
following errors when trying to access the default page:

17:25:31,106 [http-129.147.132.30-80-1] ERROR
store.XWikiHibernateBaseStore
- Failed updating schema: 2
17:25:31,213 [http-129.147.132.30-80-1] ERROR
store.XWikiHibernateBaseStore
- While executing query: update xwikidoc set xwd_translation=0 where
xwd_translati on is null
17:25:31,213 [http-129.147.132.30-80-1] ERROR
store.XWikiHibernateBaseStore
- Failed updating schema: ORA-00942: table or view does not exist

followed by a lot more errors. This is a brand new install so no tables
exist yet. The user account we have for the DB has access to
create/modify/remove tables so we're at a bit of a loss as to what the
problem is. Does anyone out there have any suggestions as to what the
problem could be? Do we need to create the tables a head of time? Is
there a
script to do so? Any help would be appreciated, thanks!

Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.xwiki.org/pipermail/users/attachments/20071101/49e9ef3b/att
achment.htm 

------------------------------

Message: 6
Date: Fri, 2 Nov 2007 11:53:05 +0530
From: <[EMAIL PROTECTED]>
Subject: Re: [xwiki-users] users Digest, Vol 3, Issue 69
To: <users@xwiki.org>
Message-ID:
        
<[EMAIL PROTECTED]>
Content-Type: text/plain;       charset="us-ascii"


Hi,

Please help me out,

   8. Help for XWiki - User Login Counter
      ([EMAIL PROTECTED])

Hi All,

 

I want to be creating the XWiki - User / Admin Login Counter. - (Page
visited for intranet through respective Login).

Please help me, how to do that? If anyone has xwiki code, please send to
me. I am new to XWiki.

Regards,
Prabhakar Gopalsamy
______________________________
Wipro Technologies


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sent: Wednesday, October 31, 2007 1:26 PM
To: users@xwiki.org
Subject: users Digest, Vol 3, Issue 69

Send users mailing list submissions to
        users@xwiki.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.xwiki.org/mailman/listinfo/users
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of users digest..."


Today's Topics:

   1. Re: Sample Groovy Code (V. Harikrishnan Nair)
   2.  Adding a document in XWiki.org (V. Harikrishnan Nair)
   3. Re: Xwiki file and attachment storage (Vincent Massol)
   4. Re: Sample Groovy Code (Vincent Massol)
   5. Re: Adding a document in XWiki.org (Vitantonio Messa)
   6. Re: Adding a document in XWiki.org (Vincent Massol)
   7. Re: Xwiki file and attachment storage
      (Your XEN ICT Team - Ricardo Rodriguez)
   8. Help for XWiki - User Login Counter
      ([EMAIL PROTECTED])


----------------------------------------------------------------------

Message: 1
Date: Tue, 30 Oct 2007 22:19:08 -0700 (PDT)
From: "V. Harikrishnan Nair" <[EMAIL PROTECTED]>
Subject: Re: [xwiki-users] Sample Groovy Code
To: users@xwiki.org
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii


Hello Vincent,

    I've found out QueryPluginApi from the docs. But even if this is the
API
you meant, why is it not possible to use Groovy to access the database
of my
choice to display my data ?

Harikrishnan


vmassol wrote:
> 
> Hi,
> 
> Don't call the database directly. XWiki offers API for doing this.
> 
> What tutorial are you referring to?
> 
> Thanks
> -Vincent
> 
> On Oct 30, 2007, at 11:53 AM, V. Harikrishnan Nair wrote:
> 
>>
>> Hi all...
>>
>>  I am learning how to read from the default xwiki database xwiki_db  
>> using
>> groovy. This is the code I got from the tutorial ->
>>
>> -------------
>> import groovy.sql.Sql
>> sql =
>> Sql.newInstance("jdbc:jtds:sqlserver://serverName/dbName- 
>> CLASS;domain=domainName",
>> "username",
>>                    "password", "net.sourceforge.jtds.jdbc.Driver")
>> sql.eachRow("select * from tableName", { println it.id + " --
>> ${it.firstName} --"} );
>> ------------
>>
>> This is the code which is edited by me ->
>>
>> -----------
>> import groovy.sql.Sql
>> sql =
>> Sql.newInstance("jdbc:jtds:sqlserver://localhost/xwiki_db- 
>> CLASS;domain=domainName",
>> "sa",
>>                    "", "net.sourceforge.jtds.jdbc.Driver")
>> sql.eachRow("select * from XWIKIDOC", { println it.id + " -- $ 
>> {it.firstName}
>> --"} );
>> ----------
>>
>> Can anyone please rectify any errors here ? Especially the closure  
>> in the
>> third line as I don't know the fields present in XWIKIDOC table...
>>
>> Thanks,
>> Harikrishnan
> 
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> 
> 

-- 
View this message in context:
http://www.nabble.com/Sample-Groovy-Code-tf4717685.html#a13502522
Sent from the XWiki- Users mailing list archive at Nabble.com.



------------------------------

Message: 2
Date: Tue, 30 Oct 2007 23:57:03 -0700 (PDT)
From: "V. Harikrishnan Nair" <[EMAIL PROTECTED]>
Subject: [xwiki-users]  Adding a document in XWiki.org
To: users@xwiki.org
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii


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

    
-- 
View this message in context:
http://www.nabble.com/Adding-a-document-in-XWiki.org-tf4723188.html#a135
03839
Sent from the XWiki- Users mailing list archive at Nabble.com.



------------------------------

Message: 3
Date: Wed, 31 Oct 2007 07:59:05 +0100
From: Vincent Massol <[EMAIL PROTECTED]>
Subject: Re: [xwiki-users] Xwiki file and attachment storage
To: XWiki Users <users@xwiki.org>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes


On Oct 31, 2007, at 12:01 AM, Your XEN ICT Team - Ricardo Rodriguez  
wrote:

> Vincent Massol wrote:
>> Sorry but no. The scope for 1.2 was changed a long time ago. More  =
>
>> importantly Artem who was working on it has stopped participating  
>> to  =
>
>> XWiki for some time since he's busy on other stuff. He'll join us  
>> back  =
>
>> later but there's no ETA right now on the JCR implementation.
>>
>> However I'm curious to know why you need attachments stored in the  =
>
>> file system.
>>
>> Thanks
>> -Vincent
> Sorry if jumping in this thread is not the most elegant way of =
>
> collaborate, but I've missed this option, to store attachments in  
> the =
>
> file system, today.
>
> For instance: we use a lot of high resolution pictures in our work.  
> If I =
>
> can store this images in the file system I can access them by using =
>
> "regular" drive mapping, web server access, sftp,... I mean: I could =
>
> keep relying on different clients to read the files while I could  
> rely =
>
> on XWiki to easy the way users "load" files in the system.
>
> Hope this makes sense for you.

Definitely. For this use case, webdav support would probably be the  
best. We have jira issues opened for this but nobody has implemented  
it yet AFAIK. I guess if the JCR implementation also supports Webdav  
that should work too.

-Vincent



------------------------------

Message: 4
Date: Wed, 31 Oct 2007 08:01:06 +0100
From: Vincent Massol <[EMAIL PROTECTED]>
Subject: Re: [xwiki-users] Sample Groovy Code
To: XWiki Users <users@xwiki.org>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

First, you need to tell us what's your use case. What information do  
you wish to get from the database?

Thanks
-Vincent

On Oct 31, 2007, at 6:19 AM, V. Harikrishnan Nair wrote:

>
> Hello Vincent,
>
>    I've found out QueryPluginApi from the docs. But even if this is  
> the API
> you meant, why is it not possible to use Groovy to access the  
> database of my
> choice to display my data ?
>
> Harikrishnan
>
>
> vmassol wrote:
>>
>> Hi,
>>
>> Don't call the database directly. XWiki offers API for doing this.
>>
>> What tutorial are you referring to?
>>
>> Thanks
>> -Vincent
>>
>> On Oct 30, 2007, at 11:53 AM, V. Harikrishnan Nair wrote:
>>
>>>
>>> Hi all...
>>>
>>> I am learning how to read from the default xwiki database xwiki_db
>>> using
>>> groovy. This is the code I got from the tutorial ->
>>>
>>> -------------
>>> import groovy.sql.Sql
>>> sql =
>>> Sql.newInstance("jdbc:jtds:sqlserver://serverName/dbName-
>>> CLASS;domain=domainName",
>>> "username",
>>>                   "password", "net.sourceforge.jtds.jdbc.Driver")
>>> sql.eachRow("select * from tableName", { println it.id + " --
>>> ${it.firstName} --"} );
>>> ------------
>>>
>>> This is the code which is edited by me ->
>>>
>>> -----------
>>> import groovy.sql.Sql
>>> sql =
>>> Sql.newInstance("jdbc:jtds:sqlserver://localhost/xwiki_db-
>>> CLASS;domain=domainName",
>>> "sa",
>>>                   "", "net.sourceforge.jtds.jdbc.Driver")
>>> sql.eachRow("select * from XWIKIDOC", { println it.id + " -- $
>>> {it.firstName}
>>> --"} );
>>> ----------
>>>
>>> Can anyone please rectify any errors here ? Especially the closure
>>> in the
>>> third line as I don't know the fields present in XWIKIDOC table...
>>>
>>> Thanks,
>>> Harikrishnan
>>
>> _______________________________________________
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>
> -- 
> View this message in context:
http://www.nabble.com/Sample-Groovy-Code-tf4717685.html#a13502522
> Sent from the XWiki- Users mailing list archive at Nabble.com.
>
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



------------------------------

Message: 5
Date: Wed, 31 Oct 2007 09:02:42 +0200
From: Vitantonio Messa <[EMAIL PROTECTED]>
Subject: Re: [xwiki-users] Adding a document in XWiki.org
To: XWiki Users <users@xwiki.org>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

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
> 
>     


------------------------------

Message: 6
Date: Wed, 31 Oct 2007 08:03:58 +0100
From: Vincent Massol <[EMAIL PROTECTED]>
Subject: Re: [xwiki-users] Adding a document in XWiki.org
To: XWiki Users <users@xwiki.org>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes


On Oct 31, 2007, at 7:57 AM, 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.

You're the first one I see to have this need so I'm curious to  
understand what's your use case first. My belief is that you're not  
using XWiki properly.

>     How can I add a document in XWiki.org ? Do I have editing rights ?

Everybody has editing rights but before you make any change:

1) let's agree you have a valid use case and that's you're using the  
proper way of doing it
2) if 1) is agreed then let's decide together where it should go on  
xwiki.org

Let's start with 1) first.

Thanks for offering your help for xwiki.org, very much appreciated.

-Vincent



------------------------------

Message: 7
Date: Wed, 31 Oct 2007 08:37:22 +0100
From: Your XEN ICT Team - Ricardo Rodriguez <[EMAIL PROTECTED]>
Subject: Re: [xwiki-users] Xwiki file and attachment storage
To: XWiki Users <users@xwiki.org>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Vincent Massol wrote:
> Definitely. For this use case, webdav support would probably be the  
> best. We have jira issues opened for this but nobody has implemented  
> it yet AFAIK. I guess if the JCR implementation also supports Webdav  
> that should work too.
>
> -Vincent
>
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>   
Thanks, Vincent. I'll search and keep track of these issues. 
Unfortunately I'm still far from being able to contribute to such an 
effort. But keep trying hard!

Cheers,

-- 
Ricardo Rodr?guez
Your XEN ICT Team



------------------------------

Message: 8
Date: Wed, 31 Oct 2007 12:24:20 +0530
From: <[EMAIL PROTECTED]>
Subject: [xwiki-users] Help for XWiki - User Login Counter
To: <users@xwiki.org>
Cc: [EMAIL PROTECTED]
Message-ID:
        
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"


Hi All,

 

I want to be creating the XWiki - User / Admin Login Counter. - (Page
visited for intranet through respective Login).

Please help me, how to do that? If anyone has xwiki code, please send to
me. I am new to XWiki.

 

 

Regards,

Prabhakar Gopalsamy

______________________________

Wipro Technologies

 




The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.
 
www.wipro.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.xwiki.org/pipermail/users/attachments/20071031/05bd6611/att
achment.htm 

------------------------------

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


End of users Digest, Vol 3, Issue 69
************************************


The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.
 
www.wipro.com


------------------------------

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


End of users Digest, Vol 4, Issue 3
***********************************


The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.
 
www.wipro.com
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to