Order of fields

A place for users and developers of the Xataface to discuss and receive support.

Postby Aoirthoir » Wed May 17, 2006 7:47 am

(Great program..I really dig it and my boss is massively impressed)

Is there a way to change the order of entry of fields?

Thank you.
Aoirthoir
 
Posts: 420
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Wed May 17, 2006 9:13 am

Hi Aoirthoir,

Thanks for the compliment on Dataface. In the current version 0.5.3 there is no way to change the order of the fields other than changing their order in the database. In the new version 0.6 you are able to specify the order using an order attribute in the fields.ini file. I was hoping to have this out a couple of days ago, but responsibilities have pushed the release back a bit. I still need to do some more testing and finalize a few things.

Best regards

Steve
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby Aoirthoir » Thu Aug 31, 2006 6:51 pm

Ok I am sure I saw this somewhere, in .6 but not sure where. Are the fields able to be ordered now?

Also, I cant figure where I put the tabs information for relationships? Are these able to be ordered also? I thought they were.

Thanks
Aoirthoir
 
Posts: 420
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Thu Aug 31, 2006 8:54 pm

Yes.

You can set the order of fields using the "order parameter in the fields.ini file.

eg
[field1]
order=2

[field2]
order=1

In this scenario field2 would be shown before field1.

To set the order of relationship tabs, you set the action:order attribute in the relationships.ini file

e.g.

[relationship1]
__sql__ = "select * from ..."
action: order=2 (there's not actually a space after the semi colon.. this is just to beat the smilies)

[relationship2]
__sql__ = "select * from ..."
action: order=1

In this case the relationship1 tab would be displayed after the relationship2 tab.

Best regards

Steve
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby Aoirthoir » Thu Aug 31, 2006 10:12 pm

Thanks that did it. Greatly appreciated.
Aoirthoir
 
Posts: 420
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 23 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved