Scaffolding & Reactor

0 views
Skip to first unread message

Vicky

unread,
Oct 17, 2009, 9:52:50 AM10/17/09
to Reactor
I have a couple Reactor/MG/Scaffolding questions, please...

1) When I scaffold, my LIST views are not showing me any columns that
are configured as primary keys within MSSQL.

I've narrowed it down to this line in the List.cfc template...

<<cfloop list="%Metadata.orderedPropertyList%"
index="variables.thisProp">>
<<cfif listFindNoCase(Metadata.primaryKeyList , thisProp) IS false
AND Metadata.properties[thisProp].relationship IS false >>
<!--- change here --->
<th>%spaceCap(thisProp)%</th>
<</cfif>>
<</cfloop>>

Apaprently, Transfer supports composite keys... and this line is
checking a list for said keys. Since I am using Reactor, I am not
sure from where I should be passing the primaryKeyList. Things work
the way I want when I remove that line from the template, but I'm
thinking there might be a more elegant way to manipulate the list
variable? I don't see primaryKeyList specified as a property in any
reference documentation. I might just need to be pointed to the right
reference.

---------------------

2) Is this or is this not a capability of scaffolding w/ Reactor. If
I have two tables...

TOPIC table (topicId, topicName)
ARTICLE table (articleId, topicId, articleName)

I want a scaffold generated form that allows user to create new record
thusly:

Topic Name ___________________
Article Name __________________

Upon submission of this form, both tables would have new related rows
created accordingly.
I have a feeling this is beyond the realm of scaffolding, and I still
need to go ahead and customize a query in the model.

I can configure relationships to the point where when I create a new
Topic, it will offer me a list of existing Article Names to choose
from for association.... but I can't get Scaffolding to let me create
both on the fly from one form.

Thanks

Tom Chiverton

unread,
Oct 29, 2009, 5:58:40 AM10/29/09
to reacto...@googlegroups.com
Are you saying you need to be able to ask Reactor for the (list of) primary
keys for a table ?

--

Tom Chiverton
Developer

Tom.Ch...@halliwells.com
3 Hardman Square, Manchester, M3 3EB

****************************************************

This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word “partner” to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit
www.Halliwells.com.

Reply all
Reply to author
Forward
0 new messages