logo

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.

Comments

    • avatar
    • mark
    • Mon 9 Mar 2009 06:18 AM

    Thank you for all this flex work, its really helping thoses of us that are just getting into it, your really leading the way

    • avatar
    • Jake Howlett
    • Mon 9 Mar 2009 06:35 AM

    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.

  1. 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

  2. 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.

    • avatar
    • Jake Howlett
    • Mon 9 Mar 2009 09:54 AM

    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

    • avatar
    • Jorge
    • Mon 9 Mar 2009 10:18 AM

    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?

  3. >>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/

    • avatar
    • Jorge
    • Mon 9 Mar 2009 06:45 PM

    Hi Mark, I'm assuming you are talking about the ExternalInterface Class. I'll read more about it. thanks! :-D

  4. Updating documents doesn't seam to work in a view that is categorized.

    • avatar
    • Jake Howlett
    • Tue 10 Mar 2009 03:55 AM

    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...

    • avatar
    • Aritz
    • Tue 10 Mar 2009 04:04 AM

    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

  5. 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 ...

    • avatar
    • Jake Howlett
    • Fri 13 Mar 2009 05:54 AM

    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.

  6. 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

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment:


About This Page

Written by Jake Howlett on Mon 9 Mar 2009

Share This Page

# ( ) '

Comments

The most recent comments added:

Skip to the comments or add your own.

You can subscribe to an individual RSS feed of comments on this entry.

Let's Get Social


About This Website

CodeStore is all about web development. Concentrating on Lotus Domino, ASP.NET, Flex, SharePoint and all things internet.

Your host is Jake Howlett who runs his own web development company called Rockall Design and is always on the lookout for new and interesting work to do.

You can find me on Twitter and on Linked In.

Read more about this site »

Elsewhere

Here are the external links posted on the same day.

More links are available in the archive »

More Content