Yeah, so the ft:objectAdmin tag creates the nice table with buttons
for "add" "delete" etc. When you click on "add" the form that get's
produced first searches for the content types edit.cfm file, and
finding none, creates a default one based on your property metadata.
This works great if you're doing normal forms with not much step
dependent processing. For more custom forms, you'll need to use the
<ft:*> and <wiz:*> tags. They're essentially wrappers for <form> tags,
except that they know all about your properties and metadata, and so
save you a ton of form writing!

Check out: https://farcry.jira.com/wiki/display/FCDEV60/UNIT+10+-+Building+Forms
for a walkthrough.

I've never used the <wiz:*> tags either, so I can't help much there,
but I do know they exist and are there for that purpose :). I think
you keep the definitions of ftWizardStep because you can use those in
the <wiz:*> tags --- I don't know for sure though.

However, you also might be able to use the ftEdit<Property> functions
that you were asking about here:
http://groups.google.com/group/farcry-dev/browse_thread/thread/dff90c3ae0bd77b8.
Although here I think the situation is slightly different.

Tomek

On Mar 7, 10:34 pm, West <[email protected]> wrote:
> The fields are a mix of drop downs and input boxes.
>
> For # 2, does that mean I need to remove the "ftWizardStep" attribute
> from my <cfproperty> tags since I'd be using this custom edit.cfm file
> for my form?  Currently, my form just renders because of the metadata
> defined in each <cfproperty> tag i believe.
>
> As of now, the only code I have for my form is:
>
>   <ft:objectAdmin
>       title="Employee Listings"
>       typename="employee"
>       module="customlists/employee.cfm"
>   />
>
>  There is an "Add" button and I click that and my form just renders
> magically.  I'm used to writing all the <form> tags and input fields,
> etc, this seems to all just happen as part of the FarCry framework.
> I've never used the  <ft:form> <ft:processform>
> <ft:processFormObjects> <ft:object> and <ft:wizard>  tags before.
>
> Do these tags allow more granular control of a form?  If so, I think I
> need that because right now, I'm really just controlling things from
> within the content type.
>
> -West
>
> On Mar 7, 7:12 pm, Tomek kott <[email protected]> wrote:
>
> > Ahh, right. Then you have two choices:
>
> > 1) If all the fields that need to be shown depending on a previous
> > step are all drop downs or libraries (arrays / uuid) then what you can
> > do is define the method to call in for example ftListData (https://
> > farcry.jira.com/wiki/display/FCDEV40/list). Using the uuid passed to
> > the function, you can search for the temporary object, extract the
> > data as necessary, etc.
>
> > 2) Do what Sean is suggesting and create an edit.cfm template in the
> > content type. So if you have dmCustom as the content type, you would
> > need /projects/YYY/webskin/dmCustom/edit.cfm.
>
> > There, define and process the form using <ft:form> <ft:processform>
> > <ft:processFormObjects> <ft:object> and <ft:wizard>. You should be
> > able to find tag parameters here:http://docs.farcrycore.org/
>
> > #2 is probably what you'll have to do.
>
> > Tomek
>
> > On Mar 7, 9:57 pm, West <[email protected]> wrote:
>
> > > Hi Tomek,
>
> > > That sounds like what I want to do, but I'm unsure on how I can
> > > "output the form".  I can get the value that the user chose from the
> > > drop down menu from the temporary object store, but I'm unsure how to
> > > control which fields display on the form based on this.
>
> > > In my content type, I define which the ftWizardSteps but that's the
> > > only way I know how to get get the form fields appear.
>
> > > Any help definitely appreciated.
>
> > > On Mar 7, 1:13 pm, Tomek kott <[email protected]> wrote:
>
> > > > if you're using the wizard interface/tags, you should be able to get
> > > > access to the temporary object store from the form, figure out the
> > > > current value of the field "color" and output the form from there. If
> > > > you're not using the wizard tags with a specific object in mind... you
> > > > should :)
>
> > > > Tomek
>
> > > > On Mar 7, 8:49 am, Sean Coyne <[email protected]> wrote:
>
> > > > > You have to write your own edit.cfm webskin for your content type to 
> > > > > do
> > > > > this.

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

Reply via email to