If all you need to do is give them a drop down box that sets a value in the
session, you could do it with a simple HTML and some modifications to the
loop code that you already have;

<form>
<select name="company">
<cfloop from="1" to="#ArrayLen(stlocal.companies)#" index="i">
  <cfset stlocal.company =
application.fapi.getContentObject(objectid="#stlocal.companies[i]#",
typename="company") />
  <option value="#stlocal.company.objectid#">#stlocal.company.label#
</option>
</cfloop>
</select>
</form>

When your form is submitted, get the value of form.company and put it into
the session as the selected company, which will be the objectid of the
company that the user has chosen.

Is that what you mean?

cheers,
Justin


On Sun, Oct 14, 2012 at 8:12 PM, kayde <[email protected]> wrote:

> Hi Justin,
>
> that's not that what I want to do.
>
> Just to explain. I have a application where a User who has access to two
> different "Hotels" has access. Before he can enter or change data,he need
> to select for which Hotel he want to make changes.
> So I need to give him only a SelectBox with "HIS" belonging Hotels and he
> need to select. This selection should then be stored in session or
> somewhere elso, so that I can show him the next objects for the Hotel he
> has selected.
>
> I only need to know how I can make this selection DropDownBox and in a
> second Step how I can store the actual Hotel-ID in the session (for this I
> have a brief idea), but actually I loose while doing just this selection.
>
> Hope this clarifies what I want to do.
>
> Thanks,
>
> Kay
>
> --
> 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
>
>
>

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