Editing Documents From a View In Flex
One of the major shortcomings of the Flex "Accounts.nsf" database I've been talking about is recently that, while you can easily add documents, you can't edit them. Well, now you can.
Open the demo and double-click an incoming/outgoing in the view on the first tab. Below the view another form should appear, which lets you update the selected row (move your selection in the view and the field values change to match). You can then either press the "update" button to save the data to the Domino server and update the selected row in the view or press "cancel" to hide the form. There's also the option to leave the form open after the server has saved the document so that you can edit other rows without needing to double-click again.
By adding this functionality I'm hoping that soon the demo will be at a point where I can make it available for download (with Flex source code!) and it will act as a working demo of using Flex with Domino. This was always my intention, but, since starting out my intended direction for the app itself has changed (more on that in my next blog). Basically, I'm going to drop Domino as the backend.
There are just a few other bits I need to before I make it freely available. Not least of which is going through the code and tidying it up. I've been learning as I go with this app and it shows in the code (hence no source as yet - it's just embarrassingly amateurish). Hopefully I'll have the source with you before the week is out.
Thank you for all this flex work, its really helping thoses of us that are just getting into it, your really leading the way
Thanks Mark. I'm not sure what the interest is in Flex, so it's reassuring to hear. I don't want to bang on about something that people have little interest in.
This is coming along nicely Jake. Just curious, Have you been able to provide the ability to upload attachments to Domino from a Flex interface yet? - Curt
Jake,
I think you will find theres allot of us Domino converts. Once you get into Flex you realise just how bad the IDE / Development environment for Notes is.
Even when you compare with XPages, I still feel Flex just feels right.
Hi Curt,
No. Not yet. Should be easily done though if you make the changes described here: http://www.codestore.net/store.nsf/unid/BLOG-20051125?OpenDocument
Hi Jake,
I have been following (and learning! ) all your FLEX development and I think it's awesome, so, I have been studing FLEX in order to apply it to a project I have, but I'm facing an issue, I need a good RTE. so far I've been working with FCKEditor + AJAX on my projects, and it works great, but... if I want use FLEX, how I can use the FCKEditor, or any other Good Editor, like TinyMCE? you know, FLEX and JavaScript are not a very good friends. As I found on Internet it seems to be possible(http://www.judahfrangipane.com/blog/?p=132) but, I it seems , by the comments, that is not the best solution. What Do you think?
>>Jorge
Not sure if thats a mistype but Flex and Javascript go very well together and its straightforward to call javascript methods within the HTML container or vice versa.
I believe the next release of Flex - Gumbo will have a much better RTE.
Worst case you could embed a HTML container using an IFRAME - http://code.google.com/p/flex-iframe/
Hi Mark, I'm assuming you are talking about the ExternalInterface Class. I'll read more about it. thanks! :-D
Updating documents doesn't seam to work in a view that is categorized.
Thanks Hora_ce. I didn't think to test that. Must be something to do with the selectedIndex property of the selected row or something. Will investigate later...
Hi Jake,
Excellent development flex guide!!
Could it be possible to manage attachments? (like we do in web applications.. upload.. download)
Also would it be possible to download accounts.nsf?
Thanks in advance
Jack,
This Domino/Flex demo is very interesting. Good work :)
Just a detail ... the graph on the bottom-left does not refresh after updating an amount.
Have you try Flex with Domino Web Services ?
Flex builder has an interesting Import WSLD wizard ...
Hi Colas,
Auto-updating the graphs is easy enough to do and on my to-do list.
Used it a little with Web Services. Plan to some more at some point.
Hi Jake, this has really opened my eyes to flex, I'm lookin forward to seeing the source and also how it compares to a LAMP approach, Sean