XPages: Data Grid - xpages

I'm new in Xpages and I need help about use Data Grid(DG) or Dojo Data Grid(DDG). How can I use “filters” using a Read/Write/Input DDG/DG whitin an XPages Form? Example: I have input Field in Xpages Form(1) NumberCase DateCase and in the same Form(1) I have DDG/DG whith field’s Article (array field) combo box ArticleType (array field) text Location (array field) text The field’s in the DDG/DG are included in to the same form (Form 1), then, How can I use “filters” using a Read/Write/Input DDG/DG within an XPages Form, to only return the data that the field NumberCase match within DDG/DG and not that of all documents? Thank you

Might check this post http://xcellerant.net/dojo-grids-in-xpages/
Has a lot of tutorials here also

Related

How to have changes to the field type in a form datasource refresh in Xpages?

I have a form datasource that had a Rich Text field ("Photo") in it. I changed the field type of the Rich Text field to Rich Text Lite (still named "Photo") on the form, but the field type in the "document1" datasource in Xpages still says it's field type Rich Text. How can I get this datasource to refresh from the underlying form?
MJ
The field is still a rich text item. On your form in the Notes client it's just represented as rich text lite but content is still saved as rich text

Add an editable paragraph inside a Form in Kentico

I have a form, say A, inside this form I'd like to have an editable text field which can be maintained by a CMS content editor.
I was told that we cannot do it.
So I am wondering that can we make an editable text field some where else, e.g. the Webpart which contains the form, and display the text inside the form A?
Also, I do not want to save the text into the data table which maps to this form.
Here is the form
"Our staff will endeavour to respond to your message within 2 business days."
This is the text that I want to make an editable text field for.
If the editable text is NOT part of the form then there is no need to have it "inside" the form or as a form field. You have a few options to add this editable text:
Inside any WYSIWYG editor, you can place a form or use the widget to add a form. As long as your editable text is outside of the actual form, you can place this text before or after the form widget.
In the form itself, add a new Layout and place the form field labels and value macros as well as your custom text inside there.
You can create Categories which will group fields underneath that category together on the form. See image below for an example. This is a good way to store some "grouping" text for those similar fields. This has to be edited within the form itself.

How to add two related forms in a notes view?

Ok,I have a situation where I need to display a view that contains field value from two forms which is connected via a "CVNo" field. At first I thought it was simple and dived in. I added the form names in the view selection formula of the notes view and then created columns and assigned their respective values, but what happened was the output I got from doing so is a very jumbled and cluttered view. Based on my understanding the notes view displayed the column values from each form differently. I don't know how to do this or if this possible in notes view. All help and suggestions and are very appreciated.
In Lotus Notes view you cannot display documents connected to each other by a custom field. The only connection which can be displayed in Lotus Notes view is parent->response document hierarchy.
And please note that you do not create view that displays values from forms. You create view to display field values from documents, which are filtered to be shown in this view.
If you have documents, with field Form, one Form1 and another Form2, then create a view with selection formula:
SELECT Form = "Form1" | Form = "Form2"
Every row in the view represents a document (either with Form1 or Form2 value in the Form field).
And every column may contain a field name or #-formula to evaluate with every shown document to display a value in this column.

XPages newbie - view columns in discussion database

I'm a traditional domino developer just beginning XPages. I'm working on modifying the standard 8.5.3 Domino discussion database. I've added some fields on the Main Topic and response forms, one called category. I've added a categorised column in the ($xpAllDocuments) view to the left of "Topic" for the category field. This works fine in Notes as you'd expect, but when the view is rendered in the All Documents xpage, the category twiste displays without any label. I'm not sure how to modify the column data for the xpage, as it seems to use a repeat? instead of a view?
Any help greatly appreciated, and apologies for the presumably basic enquiry!
You have to add the categories column to custom control allDocumentsView which renders the view for browser.
How to find out where to set the new categorized column? A good way is to look at the "All properties" of a certain element. For that, open the Source pane of custom control allDocumentsView, position cursor on <xe:dataView and look at "All Properties". If you hover over the properties' labels you get a helper window with a short explanation.
In your case, property categoryColumn is what you are looking for. Assuming you added a categorized column Categories to view ($xpAllDocuments) then you would have to put into property categoryColumn:
With that, your source code gets expanded by
<xe:this.categoryColumn>
<xe:viewCategoryColumn
columnName="Categories"
columnTitle="Categories">
</xe:viewCategoryColumn>
</xe:this.categoryColumn>
and you will see the added categorized column in your rendered XPage.
I don't know the discussion template in detail, but when the All Documents Xpage is using a repeat control, then you cannot expect an automatic category expand/collapse feature as in a Notes view.
If you want that, you need a View control on the Xpage.

Check if Field is of Type Rich Text with #Formula

I need to check if a field is of type "Rich Text" using #Forumla in a View. How can I achieve this?
Alternatively, check the byte size of a field also using #Forumla in a View.
You can turn Rich Text into plain text using the #Abstract formula, and then display that in the view. Unfortunately #Abstract does not work in views.
If views themselves won't get the job done, you can always use an agent to process the documents and set a document item value, which in turn can be shown in a view. It's an extra step but often can get the job done. Using LotusScript you could loop through all the document's items and check if they are a RICHTEXT type, and then stamp the document with an "IsRichText" item set to "Yes", for example.
Formula language will not show these values. The closes you can get is #Length. If it is possible in the design, calculate these values is a separate field using lotus script.

Resources