I wonder how to manage to have some sub-items inside a Plomino database, which link to forms or views of another database. These items should be shown in the navigation portlet. Therefore it would be great, if I could create a link object inside the database, but this is prohibited.
Do you know another way to do it?
Regards,
Volker
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can create a form containing some actions (type=Redirect, and formula producing the accurate url to your external element)
or containing computed for display rich text fields producing accurate <a> tags.
And then put this form into a Plomino element portlet, so it will behave as a navigation menu.
eric
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
sounds like a good idea to use a from, wich acts as page. In my case, this doesn't work, because I want to use a form, which creates multiple Plomino documents. Therfore I have to use a certain action in my form. Unfortunately, this insn't possible because the content of the form is encapsulated in a form even when I enable the "page" checkbox on the form settings.
Any ideas?
Best regards,
Volker
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I did this now (same username as here). Unfortunately, the HTML filter on Plomino.com strips off the <form action="some/other/method"> and <input type="submit" … > tags, which surround the content of the form "person_erfassen".
Regards,
Volker
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
you are not supposed to add a form tag (there is already a form tag, if, for any reason, you need to change its action, just do it with Javascript), and you can append an input submit by adding a Plomino action (type Save)
anyway, can just tell me again what you try to do ? (you want to create several documents from a unique form ?)
eric
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
yes, I want to create several documents, but not by a form but by a python script, which uses the context.REQUEST to get the values of the fields. I thought it might be a good idea, to use a PlominoForm, to create such a form just to avoid creating a page template.
Volker
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ok i see, so if you have a Page form, you add a Submit action
then you create a computed field where you will access the submitted values like that:
f1 = plominoDocument.REQUEST.get("my_field")
and you create docs like that:
db=plominoDocument.getParentDatabase()
newdoc = db.createDocument()
newdoc.setItem('Form', "frmDoc")
newdoc.setItem("my_field", f1)
newdoc.savae()
eric
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Eric,
I wonder how to manage to have some sub-items inside a Plomino database, which link to forms or views of another database. These items should be shown in the navigation portlet. Therefore it would be great, if I could create a link object inside the database, but this is prohibited.
Do you know another way to do it?
Regards,
Volker
Hello Volker,
You can create a form containing some actions (type=Redirect, and formula producing the accurate url to your external element)
or containing computed for display rich text fields producing accurate <a> tags.
And then put this form into a Plomino element portlet, so it will behave as a navigation menu.
eric
Hi Eric,
sounds like a good idea to use a from, wich acts as page. In my case, this doesn't work, because I want to use a form, which creates multiple Plomino documents. Therfore I have to use a certain action in my form. Unfortunately, this insn't possible because the content of the form is encapsulated in a form even when I enable the "page" checkbox on the form settings.
Any ideas?
Best regards,
Volker
Hello Volker,
it is not very clear
could you put your db on plomino.com so I can have a look ?
eric
Hi Eric,
I did this now (same username as here). Unfortunately, the HTML filter on Plomino.com strips off the <form action="some/other/method"> and <input type="submit" … > tags, which surround the content of the form "person_erfassen".
Regards,
Volker
Hello Volker,
you are not supposed to add a form tag (there is already a form tag, if, for any reason, you need to change its action, just do it with Javascript), and you can append an input submit by adding a Plomino action (type Save)
anyway, can just tell me again what you try to do ? (you want to create several documents from a unique form ?)
eric
Hi Eric,
yes, I want to create several documents, but not by a form but by a python script, which uses the context.REQUEST to get the values of the fields. I thought it might be a good idea, to use a PlominoForm, to create such a form just to avoid creating a page template.
Volker
Hi,
ok i see, so if you have a Page form, you add a Submit action
then you create a computed field where you will access the submitted values like that:
f1 = plominoDocument.REQUEST.get("my_field")
and you create docs like that:
db=plominoDocument.getParentDatabase()
newdoc = db.createDocument()
newdoc.setItem('Form', "frmDoc")
newdoc.setItem("my_field", f1)
newdoc.savae()
eric
Thanks!