I'm developing a mobile application with netbeans 7.2.1 and I use LWUIT Framework. I want to know where can I write a code to insert a table, that the user can fill, in which file?
This blog and link might help. Set the cell value to be editable so that you can ass the data.
http://lwuit.blogspot.in/2010/06/headon-that-table.html
Related
I have a little question. I developed a database using Lotus Domino Designer and I create a structure (MainStructure), then I create page (RootPage). Now I need to insert MainStructure into RootPage and I don't know how to do this. Can you help me?
If what you've done is create an outline, you will need to create a page, and within the page insert the outline with Create/Insert Embedded Element/Outline
My boss loves the idea of some users of our web-based product being able to make straight SQL queries of the underlying database. I currently have it implemented so that the output of the query goes into a scrollable text area with the columns separated by user specified delimiters. The user can then cut and paste it into their spreadsheet or whatever. This is functional but inelegant and just plain ugly.
Primefaces has its data exporter widget which I'm using in other places and it works great. I'd like to use it for this but it requires predefined getters/setters. Since the query is user-defined, I have no way of knowing in advance the number or types of columns that will be returned.
Any ideas on how to work around this?
Did your try this from primefaces extensions
http://www.primefaces.org/showcase-ext/sections/exporter/dynamicTable.jsf
best
vj
I need to make a table with an editable column. Each row is a separate record. I want to be able to display hundreds of records, perform edits to them and then submit them back to the server for updating. I am not sure this is really supported by the forms infrastructure.
Is there a way to make a repeatable form such that I would get a list of results back? This seems to be the closest solution I can envision without writing my own in javascript. Any ideas on this would be welcome.
Don't reinvent the wheel. Just use one of the full featured js grids like jqgrid or extjs if you want the full pack of UI components.
I use jqgrid with yesod, edit rows both in grid and in outside panel and submit the changes back.
I think the problem with your approach is that you found your hammer (yesod forms library) and now looking for a nail.
You don't have to use every bit of yesod just because its there.
I have realized a full Xpages application width > 200 Notes View..and for translate I use the native option "Localization options" into Xpages settings.
All work very well (can now write the translation into -proprierties)
But...
In some Notes View I have the content of some column with embedded #Formulas string in the original language or the date of my field in the format of Domino enviroment (ex. there are #text(datfield;"S0") that return italian format gg\mm\aaaa)
Can I mix the native Multilanguage Database Notes Option with Locazations Options feature?
With native Notes Multilanguage database, is need duplicate the view setting the correct language... but Xpages support this feature when render the object Notes View?
p.s. For native Notes multi-language read this Redbook from page 65
First of all I would try to eliminate all the #Text(datefield) entries from the views that you are working with. This will allow the both the notes clients and the ViewPanes in your Xpage applications to automatically display the date in the correct format for the viewer of the application.
Unfortunately, from my testing, it appears that you cannot mix the native multilingual database options with the XPages localization options.
You cannot mix up those two options, because Notes-based multilingual database option is a part of Notes Client architecture.
If I were you, I create seperate views for XPages application. It's really waste of resources in the mean time (migration phase) but it's the most optimized way I guess. Instead of conforming old-style views, you may redesign your views according to what you need.
For example, in XPages, you don't need many columns to be calculated within the index.
There is no great answer for that :(
I have found that the only solution is a routine JS client insert into
*AfterPageLoad* event with **view.postScript**(Function JS client)
and *AfterRestoreView* event with the same call **view.postScript**
convert on.fly the content of my view.
I select the content DOM of my Notes view with dojo.query
Okay, here's the deal. I am using C# with the Domino API. I have some rich text data that I want to insert into a lotus notes rich text field.
NotesDocument.ReplaceItemValue just inserts the text as is with no formatting.
NotesDocument.CreateRichTextItem gives me a NotesRichTextItem object that I can use for manually creating RichText (methods like AddNewLine() AddPageBreak() etc). But it does not have any kind of Parse method to get already formatted rich text data, which is what I need. I want my users to put whatever they want in there - so using the aforementioned methods is useless to me.
The NotesRichTextItem.Values object throws an error when I try to add a rich text formatted string.
So now, what do I do? I guess I'm pretty much screwed here, but hoping some genius will come up with a solution. Any help much appreciated.
Thanks guys!
PS - Inserting notes rich text data or HTML data would be fine. Either one would be just as good as long as it displays proper rich text in the document and not an unformatted string.
Well, I found an answer - it's not pretty, but it works! What I did was
Use the DXL Exporter to grab the xml
edit it (adding the rich text) and then
Delete the original document
Use the DXL importer to import the edited document
Voila! :-D
Thanks anyway for such a quick response :-)
Without knowing the details of your application, I'm not sure this would suffice. But you can store HTML as text within a Notes rich text field, and then in your Notes app display the field as "pass-through HTML". Downside is that you would not be able to do subsequent editing from the Notes client. Also, the HTML rendering engine within the Notes client is pretty poor, so you may not get anywhere near full fidelity.
If that doesn't meet your needs, you can always look into using the Notes C API (rather than the COM/API you are using). The lower level API does allow you to insert anything into a rich text field, but you will need to write the parser / converter yourself. Search for Composite Data (CD) records.
Here is a link to the API site: http://www14.software.ibm.com/webapp/download/nochargesearch.jsp?k=ALL&status=Active&q=Lotus+%22C+API%22
Does the API not provide you with access to the various rich text classes? Perhaps they could help? For example, there are classes for NotesRichTextStyle, NotesRichTextNavigator, NotesRichTextSection, NotesRichText, and so on and so forth.