Sorry Dan, though you are so kind to guide me to know more ability
inside BoltWire but it looks like I'm not smart enough to learn what
you've taught...
I replaced the savedata to the new "info" function. My form is:
[form]
[session info "field='{p}' value='ok' target='info.{p1}.{p2}'"]
[submit] [form]
Which write an "ok" info about {p} in info.{p1}.{p2}. And it works
fine.
I have the action.ok like this:
[(script ok)]
<(forward {p})>
And the script.ok like this:
<:target:>info.{p1}.{p2}
<:{p}:>ok
<:info:>{p}
And a link in a page:
[[{p}&action=ok|Status OK]]
But I can't make it work. Nothing happened when I click the link. No
info write to info.{p1}.{p2}. Did I do anything wrong?
Cheers,
linly
On 2月6日, 上午10時14分, The Editor <[email protected]> wrote:
> Hi Linly...
>
> Sorry I did not get to answer your post about this earlier. There are
> a couple possibilities. But not an easy one. I was hoping to do a
> little digging and offer the best solutions. If this is not urgent,
> could you remind me and ask me next week? I'll do it for you...
>
> I have been busy with another project... (Pretty exciting). And will
> be gone over the weekend so I can't really do this right at the
> moment. Don't forget to remind me. If it's urgent, let me know and
> I'll see if I can at least suggest something.
>
> Actually, let me suggest this: learn how to use the boltwire scripts.
> They are extremely powerful. Like macros. Can do anything you can do
> in a form. I just never hardly talk about them. Here's an example
> right off the cuff.
>
> On action.changestatus put
> [(script changestatus)]
> <(forward {p})>
>
> Then on script.changestatus put your main form, but in this format
> (the first line is probably not needed)
>
> <:target:>{p}
> <:somedatafield:>value
> <:savedata:>somedatafield
>
> To execute, put a link to [[{p}&action=changestatus|Change Status]]
>
> Scripts are automatically executed forms when called by [(script
> name)]. So when you click the action, it calls the script and then
> bounces right back to the main page.
>
> Actually, this is a pretty good solution. But haven't tested, or even
> used in a LONG time. Let me know if it doesn't work for you.
>
> Cheers,
> Dan
>
> On Thu, Feb 5, 2009 at 8:43 PM, Linly <[email protected]> wrote:
>
> > Hi Dan,
>
> > I have a form using savedata to change the status of a page, and I
> > put it into a search template, so I can directly click the summit
> > button to trigger the form to change the page, no need to open the
> > page first.
>
> > However, putting a form in a search template heavily slowing down the
> > search output. It needs double time to display the result. I'd like to
> > make the form as an action and put the {+p}&action=changestatusform
> > link in the template to replace the form. This would faster the saerch
> > result.
>
> > But clicking the action link will forward to the
> > action=changestatusform page where there is a summit button needing a
> > further click. Is it possible to make the action=changestatusform link
> > directly finish the form?
>
> > Cheers,
> > linly
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---