Sensenet upload files to a document library - fields fill - sensenet

It is possible in the moment of upload a content to a document library show the fields defined (of the document library)? At the moment, the only way that the user have to fill the fields is uploading the document first and then click edit to fill the fields.

Unfortunately there is no out-of-the box solution for this scenario. I agree that this would be useful, but currently you have to create a custom solution.
You will have to create a UI that displays the upload control (you can use the built-in Sense/Net plugin) and also the form fields. In the click event of a button, you have to first start and finish the upload, retrieve the new content id and than update the metadata fields - all this in JavaScript. This way users would not see the difference, for them this would be a single operation.
(in mid-term we plan to offer a built-in control that will make this possible, but we do not have a timeline for this feature)

Related

is it possible that in a created pdf document, allows to users add text, add checkboxes and remove images to customize the PDF form?

I have create a html form that allows user response several questions, the html file is send to user, it open on a browser and is filled. But futhermore the user can add new sections of questions, add questions with its related checkboxes, delete section and questions, and delete initial images. I allow this interacttion with javascript and is working ok. But i want and i need achieve this functionality in a PDF document is that possible? what tecnology i must use? thank you very much for your time and help

Generating PDF in Orbeon

We would like to generate a PDF without using the existing "PDF" button, but we would like to add our own button that gets a custom template and generates a document filled by the data in the form.
Which Orbeon API we can use for this purpose? This API will get the form id and the PDF template and will generate the document.
The API should give us the possibility to :
Map data to the PDF.
Save the PDF in a given directory.
Sdd some changes to the PDF like adding an image and save the document (this will be our custom code).
Download the PDF after process.
What you're looking for sounds very much like Orbeon Forms' PDF template feature. With Form Runner, you can add your own buttons to the form, and those buttons can have their own label and "logic". The latter is defined in a process, which is a sequence of actions. One of those actions is send(), which as its name implies, "sends" some information related to the form to a service you provide.
You can configure that action to send a PDF generated by "filling" a PDF template with the data entered by users in the form by using send(content = "pdf"). You can find more about this in the documentation for the send() action.

Displaying thumbnail image in a View

I've a database with image (1 document contains 1 image).
This database is used in other application via "PickList" so user can select image they want (right now they just see a filename and that's it). Once user selected an image - we display it in IBM Notes client via html. However the issue is - user must guess if he select the right image and to avoid 'guessing' I would like to show thumbnail version of image in PickList.
So far I found only one way to do that (for every image I've in database I will create a image resource element in design. In that way I can display it in a View (in a column).
What other ways to achieve this you know?
Please consider any ways you know, I'm not limited to using views only, it could be Dialogs, generating something in RTF field dynamically, OLE, Java etc. Basically I'm very very open minded to another solution.
Environment: #IBM Domino/Notes R9.
Since you are using Domino 9, how about developing in XPages? If you are going to switch to an HTML frame in the Notes client to look at the image anyway, you may as well select from an HTML frame, too. You can use XPages for Notes clients, not just web clients.
Using common XPage controls, you can develop dynamic HTML pages from Notes views and documents. You could for example develop an XPage to display a list of choices from a view - including file attachment names and/or the actual file attachments.
It is absolutely doable with XPages. Checkout OpenNTF.org for lots of examples.

Attach a document to a WebEvent in Ektron?

I'm fairly new to ektron. I want the users to be able to attach a document to a Calendar Event (such as an Agenda PDF or Minutes PDF) and I want to display that link, in the Event Details page, so users can view and download it. I don't see any way to do that on the Edit Event form inside the workarea. That doesn't make sense that they wouldn't include such a simple option by default. Do I really need to customize the workarea or create a smartform so users can upload documents along with their events? Can someone recommend the easiest approach to do this?
You should be able to do this via the API. If you don't want to use the API, you could maybe use a content selector metadata item (this would require uploading the file first).

How to create switchable multi-language pdf form?

I want to create a pdf form for two language (Chinese/English) UI, and there's a button(s) or somethings on the form for language switch, is there anyway can make it? and how to do?
thanks!
Thanks for all reply!
Actually I got a sample like this,
PDF Sample
there're two checkbox on the top-left of the form, one is for English UI, the other is Chinese, I just want to know how to make PDF like that sample? (and I don't see any layers on the sample...)
thx
mkl's comment (which he should turn into a full answer, really) already hinted at the option to use different page templates residing in the same file.
Another option you could explore is this:
put the two language versions into 2 different layers (or 'optional content groups' in PDF parlance)
make the visibility of the two layers toggeable
let the user activate that layer which he/she needs.
Layer activation can be handled through normal Acrobat Reader user interface elements.
The layer switching can be made accessible via a "button" on the PDF page too -- but that requires additional JavaScript to be embedded in the PDF (something many people are not particularly keen about).
As Kurt proposed, I make my comment on Frank's answer an answer in its own right:
Actually there is a pdf feature seldomly used nowerdays, page
templates. Thus, those two forms can reside in the same file in
different page templates, and based on some initially present buttons
("English version", ...) the desired form is spawned.
Unfortunately I don't know how to create page templates using some easy-to-use tool, I only came a cross them in the context of integrated PDF signatures (depending on the signature type, page template instantiation is a document change not breaking the signature) and tested them with low-level tools.
Essentially page templates are PDF objects just like page dictionaries of the normal pages, they are not XFA stuff. They merely are not referenced in the pages tree but instead in the name tree.
There is a JavaScript command which creates a visible page based on such a template --- I don't know which anymore; I may be able to find out when I'm back in office next week. This command would have to be bound to the inital language selection button in the file.
The problem will be in switching the static text - PDF does not allow this.
If I were you, I would split the document into two identical forms in the respective languages. You can use bookmarks and links on the first page to navigate to the right part of the document.
Note that it is possible to assign the same field names to the Enlgish/Chinese versions of your fields. This will make it easier to process the submitted form data because the process path would be independent of the chosen language. It will also simplify any JavaScript (validation, summing, etc.) you plan to add.