On Jul 22, 2014, at 3:39 PM, "Aaron Hardy at
AC" <ashtarcommunications(a)gmail.com> wrote:
As far as I know, yes - you have to create the page first before adding an
object to it, otherwise you'll get an error.
Keep in mind that if your "sheet" is bound to the class, then adding an
object of that class to a page will cause that page to display that class's
sheet automatically...
On Tue, Jul 22, 2014 at 5:31 PM, Jason Clemons <jason.clemons(a)live.com>
wrote:
That's kinda what I'm trying to do..would
I need to create the page first?
For instance, does posting to
http://yoursite.com/rest/wikis/<wikiname>/spaces/<spacename>/pa…
create the page if it doesn't exist?
Or would I
1. Create the page
2. add the objects
Thanks for the responses :)
On Jul
22, 2014, at 1:46 PM, "Aaron Hardy at AC" <
ashtarcommunications(a)gmail.com> wrote:
I can't help with the App Within Minutes part, as I'm not very familiar
with it - I'm sure someone who knows more than me (ie anyone) could tell
you if you need to be creating a page or just creating an object on a
page.
But, if "make the controls appear" ends up meaning that you need to add
an
object of a certain class to a page, you just
make a POST request to:
http://yoursite.com/rest/wikis/
<wikiname>/spaces/<spacename>/pages/<pagename>/objects
containing XML similar to this:
<?xml version="1.0" encoding="UTF-8"
standalone="yes"?>
<object xmlns="http://www.xwiki.org">
<className>Space.YourClass</className>
<property
name="propertyname"><value>propertyvalue</value></property>
</object>
That should create an object on your page of the specified class - the
response will include the XML representation of that object.
Alternately, if you just need your new page to include the page with the
app code, you can create a new page and modify the contents to contain
the
{{include}} macro...
Hope that helps, at least until someone who knows what they're talking
about comes along...
On Tue, Jul 22, 2014 at 4:23 PM, Jason Clemons <jason.clemons(a)live.com>
wrote:
> Hello all,
>
> I've created an "App Within Minutes" application we are using for some
> reporting and issue tracking which is pretty much done now, but I need a
> way to create a page in the application with an API call. I've seen
tons
> of information on creating pages or modifying
pages and I can get that
to
> work pretty well, but when I create a page in
the application space I
don't
> know how to make the controls appear and the
page doesn't show up I'm
the
> application home page (grid).
>
> I'm sure I'm approaching this the wrong way as I'm creating a page from
> scratch where I'm pretty sure I should be creating an instance of the
page
> class, but I'm not sure where to start
with that.
>
> Does anyone have any links or tips or leads on where I would start
looking
for
something like that?
All help is greatly appreciated,
Thanks in advance
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org