[xwiki-users] Process to bring the application developed thru wiki classes, objects on new wiki instance .

2012-05-24 Thread mohit gupta
Hi All,

I created  an application using xwiki classes and objects similar like FAQ
application explained in wiki tutorial at
http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial. I develop it
on my local box. Now i want to take it this complete application to another
instance of wiki on different machine. What should be my next steps. what
are the pages i need to take to another instance(as wiki must be creating
the pages internally also which i may not be aware of ). As during
this application creation process, did various steps which created
different docs,classes and objects in different spaces(i am aware of only
two spaces that  contains docs related to this process i.e DataTypes space
which contains the newly created class etc  and the space under which i
created my application  which  contains the templates etc ) If somebody can
explain simply how the FAQ application developed on one wiki instance can
be taken to  another wiki instance, it would be great

Can it  be done just after importing the newly created space under which
application exists and then amporting it to new wiki instance?  if yes how
should i export the specific space. I tried
http://extensions.xwiki.org/xwiki/bin/view/Extension/Multipage+Export+Application
but
It does not work. I enter any space name even existing space i.e  blog,
search button does not seem to be working and does not search any page
inside any space .As i am working on xwiki 3.5 i just downloaded this
application  and visited the MultiPageExport.Install page to finish the
install  as suugested in doc. Then i navigated to
localhost/wiki/bin/view/Admin/Export  but search button does not work.Let
me know if i need to do some other stuff.

Xwiki version is 3.5

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


Re: [xwiki-users] What are you using AppWithinMinutes for?

2012-05-24 Thread Guillaume Lerouge
Hi Brett,

thanks for your feedback! XWikiers, what else are you using
AppWithinMinutes for?

For those interested in this topic, a demo video of the
ApplicationWithinMinutes feature is available here:
http://www.youtube.com/watch?v=Pv4jPCaU99g

A step-by-step description is available here:
http://www.xwiki.com/xwiki/bin/view/Blog/Create%20an%20application%20within%20minutes%20with%20XWiki

Guillaume

On Thu, May 10, 2012 at 3:50 PM, Bergquist, Brett wrote:

> Created a software release tracking system to track releases of
> software/versions/build dates etc. to our SIT group
>
> -Original Message-
> From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf
> Of Guillaume Lerouge
> Sent: Thursday, May 10, 2012 6:06 AM
> To: XWiki Users
> Subject: [xwiki-users] What are you using AppWithinMinutes for?
>
> Hi XWikiers,
>
> now that AppWithinMinutes<
> http://extensions.xwiki.org/xwiki/bin/view/Extension/App+Within+Minutes+Application
> >has
> been available for a couple releases, I was wondering what you have been
> using it for so far.
>
> On my side, I have seen AppWithinMinutes used for:
>
>- Logging safety incidents
>   - Listing assets managed by a company
>   - Creating a directory of software applications available to users in a
>   large organization
>   - Managing and classifying processes and procedures
>   - Listing presentations delivered at various conferences for later
>reference
>
> I look forward to reading about your own examples.
>
> Thanks,
>
> Guillaume
> ___
> 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] app within minutes extended

2012-05-24 Thread Marius Dumitru Florea
Hi Gerritjan,

You should start by reading
http://extensions.xwiki.org/xwiki/bin/view/Extension/App+Within+Minutes+Application#HCustomization
.

On Thu, May 24, 2012 at 3:37 PM, Gerritjan Koekkoek
 wrote:
> Hi,
>
> I've create a app with the App within Minutes;
> The following class model is used:
>
>   - Name (name: String)
>   - E-mail (email: String)
>   - Subject (subject: String)
>   - Status (status: String)
>   - Question (question: TextArea)
>   - Answer (answer: TextArea)
>   - Published to Public (generalize: Static List)
>
> So now when user click on 'Add' he/she is requested with document name and
> then he/she can fill in the record
>
> Now I would like to modify the behaviour?
>
> 1) Click on Add should not ask for new document name but for 'subject',
> this should also show on the record prefilled
>
> (I would like to generate a document name base on UserName + Subject)

This can be done by using a custom sheet for the home page of your
application. First you need to understand class and document sheets:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Sheet+Module .
Next you can bind a (custom) document sheet to the WebHome page of
your application space. This custom sheet can be for instance a copy
of AppWithinMinutes.LiveTableViewSheet which you customize for your
needs.

>
> 2) Some fields should be defaulted by code
>

> - name should be username, field should be hidden
>
> - E-mail should be fetched from user record (XWiki..email)
>
> - Subject (as stated under 1)

These three can be done by customizing the sheet used to
create/edit/view application entries. Note that for now you have to
take care to uncheck "Update class sheet" next time you edit the
application since otherwise your changes to the sheet will be
overwritten (you can rollback of course).

> - Status should be defaulted to 'created'
> - Published to Public should be defaulted to 'no'

These two can both be done on the 2nd step of AppWithinMinutes (where
the model is defined). Any value you put/select in the fields is
considered default values and is saved in the model template which is
later used to create new application entries.

Hope this helps,
Marius

> How would you advise me to do this, i have modest velocity knowledge, but
> no groovy, it looks like the code behind the 'add'-button is 'groovy'
>
> Gerritjan
> ___
> 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] XWQL : order by count ?

2012-05-24 Thread Jeremie BOUSQUET
Hello,

Seems I'm back to this problem (XWiki 3.5), and I did not find a
solution still ...

For example this XWQL request :

   select topic.author, count(topic.author)
 from Document doc, doc.object(MailArchiveCode.MailTopicClass) as topic
where doc.space<>'MailArchiveCode'
 group by topic.author
 order by count(topic.author) desc

... will throw this exception when executed :

Caused by: org.xwiki.query.jpql.parser.ParserException: [1,165] expecting: id
at org.xwiki.query.jpql.parser.Parser.parse(Parser.java:1247)
at org.xwiki.query.jpql.internal.JPQLParser.parse(JPQLParser.java:46)
at 
org.xwiki.query.xwql.internal.hql.XWQLtoHQLTranslator.translate(XWQLtoHQLTranslator.java:55)
at 
org.xwiki.query.xwql.internal.XWQLQueryExecutor.execute(XWQLQueryExecutor.java:78)
... 123 more

Column 165 refers to the count in the order by clause.

This does not work better :

   select topic.author, count(topic.author)
 from Document doc, doc.object(MailArchiveCode.MailTopicClass) as topic
where doc.space<>'MailArchiveCode'
 group by topic.author
 order by 2 desc

It does not work with a MySQL nor HSQLDB default db.

If I remove the order by clause, the query works correctly.

I think it's strange because for me ORDER BY COUNT() is valid
in JPQL ? As long as the expression is also present in the SELECT
clause.

Thanks,
Jeremie


2011/10/18 jerem 
>
> Hi,
>
> I'm trying to use XWQL query language to select count of authors and would
> like to order this by descending order of this count.
>
> I ended up having this work fine :
>
> "select count(myobject.author), myobject.author from Document as doc,
> doc.object(Space.MyClass) as myobject group by myobject.author"
>
> But adding " order by count(myobject.author) desc" leads to an error for
> translating the query ...
> Adding "AS" in the select expression does not seem to work either.
>
> Is this possible in XWQL and how ?
>
> Thanks,
> Jeremie
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/XWQL-order-by-count-tp6904819p6904819.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> 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


[xwiki-users] Edit top menu

2012-05-24 Thread sbwig
Hi!

Because of making a lot of settings in the user rights (my company
departments are xwiki.spaces and the user have only rights for their spaces)
I have two questions about the general configuration:

“Subscribe this Space” and “Send this Page by Email to a XWiki user” doesn`t
work. Do I have to open some rights? “Send mail to an extern email” works.

Where can I edit the topmenu? The WIKI Item on top top leads to Main/WebHome
and I like to disable it. The PROFIL Item should be disabled to, because of
everything is managed by the ActiveDirectory.

Thanks very much!
Marc



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Edit-top-menu-tp7575047.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] app within minutes extended

2012-05-24 Thread Gerritjan Koekkoek
Hi,

I've create a app with the App within Minutes;
The following class model is used:

   - Name (name: String)
   - E-mail (email: String)
   - Subject (subject: String)
   - Status (status: String)
   - Question (question: TextArea)
   - Answer (answer: TextArea)
   - Published to Public (generalize: Static List)

So now when user click on 'Add' he/she is requested with document name and
then he/she can fill in the record

Now I would like to modify the behaviour?

1) Click on Add should not ask for new document name but for 'subject',
this should also show on the record prefilled

(I would like to generate a document name base on UserName + Subject)

2) Some fields should be defaulted by code

- name should be username, field should be hidden

- E-mail should be fetched from user record (XWiki..email)

- Subject (as stated under 1)

- Status should be defaulted to 'created'
- Published to Public should be defaulted to 'no'

How would you advise me to do this, i have modest velocity knowledge, but
no groovy, it looks like the code behind the 'add'-button is 'groovy'

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


Re: [xwiki-users] Watchlist feature not working

2012-05-24 Thread Moritz Hesse (EA GmbH)
Hi,

> Maybe it`s the comma this time?   
> 
> If there is only one Document in your watchlist which has a comma in title,
> then the whole watchlist doesn´t show up!

no, that's not it: I went through all documents(!) and assured that I don't 
have any docs on my watchlist, then added single pages or single spaces, but 
nothing shows up.

I created a test account on which everything works normally.

Bad, I really need this feature :( Any1 any other idea?

Thanks anyway! Bests,
Moritz

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


[xwiki-users] xwiki on Oracle calls package SDO_GEOR_DEF erroneously

2012-05-24 Thread Lars Lindwall
Hi,
When I tried to track down xwiki 4.1's failure to upgrade the 3.5.1 (Oracle)
database, I discovered that xwiki is trying to use the package SDO_GEOR_DEF.
However, in a normal Oracle database, this package is owned by user/schema
MDSYS and no synonym exists for it. Since xwiki is addressing the package
only as SDO_GEOR_DEF and not MDSYS.SDO_GEOR_DEF, in order to make the call
work, a synonym SDO_GEOR_DEF needs to be defined pointing to
MDSYS.SDO_GEOR_DEF. I can not find this anywhere in the documentation, so I
suggest an update to the documentation or a code change in xwiki.
It should be pointed out, however, that a fix to this did not solve the
original problem.
/Lars

--
View this message in context: 
http://xwiki.475771.n2.nabble.com/xwiki-on-Oracle-calls-package-SDO-GEOR-DEF-erroneously-tp7574839.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] xwiki 3.5.1 oracle database does not upgrade to 4.1

2012-05-24 Thread Sorin Burjan
Hello,

Each time XWiki server starts, it checks to see if the database is at
the latest version. After the servlet container is fully started and
listening, first request will trigger the database version check. This
is something normal and intended as far as I know. Are you getting any
stacktraces in the console ? Or something is not working properly in
your XWiki instance (download attachments, save pages, etc) ?

Regards,
Sorin B.

On Thu, May 24, 2012 at 11:50 AM, Lars Lindwall  wrote:
> Hi,
> I'm currently trying to upgrade a xwiki 3.5.1 (Windows, Glassfish) with an
> Oracle 11gR2 database to 4.1. After a while xwiki comes back telling me that
> my database needs an upgrade and is insecure to use. The appropriate
> parameters in the xwiki.cfg are set to do an automatic upgrade of all
> databases. What do I do wrong? Perhaps I need to upgrade to 4.0 first, but
> where can I find a 4.0 for download?
> /Lars
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/xwiki-3-5-1-oracle-database-does-not-upgrade-to-4-1-tp7574780.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> 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] Watchlist feature not working

2012-05-24 Thread Hein
Maybe it`s the comma this time?   

If there is only one Document in your watchlist which has a comma in title,
then the whole watchlist doesn´t show up!

--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Watchlist-feature-not-working-tp7572891p7574804.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] xwiki 3.5.1 oracle database does not upgrade to 4.1

2012-05-24 Thread Lars Lindwall
Hi,
I'm currently trying to upgrade a xwiki 3.5.1 (Windows, Glassfish) with an
Oracle 11gR2 database to 4.1. After a while xwiki comes back telling me that
my database needs an upgrade and is insecure to use. The appropriate
parameters in the xwiki.cfg are set to do an automatic upgrade of all
databases. What do I do wrong? Perhaps I need to upgrade to 4.0 first, but
where can I find a 4.0 for download?
/Lars 

--
View this message in context: 
http://xwiki.475771.n2.nabble.com/xwiki-3-5-1-oracle-database-does-not-upgrade-to-4-1-tp7574780.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Check for edit mode to exclude velocity macro?

2012-05-24 Thread Moritz Hesse (EA GmbH)
Hi mohit,

> i dont want to show a specific velocity macro when in edit mode. How
should
> i check for edit mode on page?

try the following sniplet.

#if($context.action == 'edit')
  {{velocity_macro/}} ## do something only when in edit mode  
#else
  ## do something only when not in edit mode
#end

More information on
http://extensions.xwiki.org/xwiki/bin/view/Extension/Sheet+Module#HActionshe
ets

Bests,
Moritz

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