On Mon, Jul 27, 2009 at 10:54 PM, David Maxwell <[email protected]> wrote:
> > Hi Folks, > > I'm new to looking at XMPP at the protocol level. I have some custom > workflow in mind, so I was looking at XEP-0004 [Data Forms]. > > While it's not absolutely critical, it would be nice if there was a > way to implement a form with multiple Submit actions, and a way for > the form processor to distinguish them. This is very similar to a > common problem encountered in designing HTML forms - except in > XMPP, the Submit isn't a form element, it seems to be implicit. > > The workflow I'm thinking of is queue processing, where you get a > queue item - fill out the form, and then want to do either Cancel, > Submit, or 'Submit+Next'. > > While the '+Next' could be implemented as a checkbox, that still makes > it two clicks instead of one, and is a bit artificial. > You should check out XEP-0050 Ad-Hoc Commands. It sounds like this spec will cover your use case better. It builds on XEP-0004 to provide a user workflow for forms with actions for submit, next, cancel, prev, finish. While not as flexible as say HTML Forms, it should cover your use case fine and if not, just have a list field for selecting a custom action type. Ad-Hoc Commands is in widespread use for server, component, and bot administration as well as other uses. > > Someone want to tell me I've misunderstood the specs? :-) You understood fine but didn't realize that it's very common for XEPs to build on eachother, and XEP-0004 is used in many other extensions. Best of luck. > > > -- > David Maxwell, [email protected]|[email protected] --> Mastery of UNIX, like > mastery of language, offers real freedom. The price of freedom is always > dear, > but there's no substitute. Personally, I'd rather pay for my freedom than > live > in a bitmapped, pop-up-happy dungeon like NT. - Thomas Scoville > -Fritzy
