Form with DropDown should be shown in Frontent for a User

kayde <ahammenhws-gM/[email protected]>
Newsgroups gmane.comp.cms.farcry.devel
Message-ID <[email protected]>
Hi there,

I have extended the dmProfile.cfc with
<cfproperty name="aCompany" type="array" default="" required="no" 
hint="Company" ftSeq="60" ftFieldset="Hotelaccess" ftLabel="Company" 
ftJoin="company" />
and in the WebTop I can add Companies (new Type) to the users. This works 
perfectly.

Now, for a LoggedIn User, I want to show him a DropDpwn Box with the 
Companies he has access to.

From the Session I can read out which Companies he has access to:
<cfset stlocal.companies = #session.dmProfile.aCompany# />

With a loop I can also show them as Teasers:
<cfloop from="1" to="#ArrayLen(stlocal.companies)#" index="i">
            <skin:view typename="company" objectid="#stlocal.companies[i]#" 
webskin="displayTeaserStandard" />
            <cfset stlocal.company = 
application.fapi.getContentObject(objectid="#stlocal.companies[i]#", 
typename="company") />

But how can I bring this data to a form with a DropDown Box to select the 
Company the User will now "work" for?
I am banging my head against the wall, as I really have no idea.

Thanks for your help, 
Kay

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev-/[email protected]
To unsubscribe, email: farcry-dev+unsubscribe-/[email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.