This topic is locked

Labels rather than field names

5/9/2005 12:16:40 PM
PHPRunner General questions
author

In the current version 2 BETA the Add-Edit-View <H1> tags default to the $strKeyField thus exposing to the end user database field names nore suited for the designer/programmer consumption.
Surely these should display the LABEL associated with the database field name.
My guess is this would not be too tricky to rectify in the generator code and would make a big difference to end user friendliness. TIA.
echo "<h1>"."Editar registro"." [".$strKeyField.": ".htmlspecialchars($key);

if($strKeyField2)

echo ", ".$strKeyField2.": ".htmlspecialchars($key2);

if($strKeyField3)

echo ", ".$strKeyField3.": ".htmlspecialchars($key3);

echo "]</h1>";

pplaut 5/9/2005

Hmmm.....

You may be making this harder then you need to...???

I am not sure I understand exactly what you are trying to do here, but it sounds like you are trying to change the field labels to something other then the field names???
You can do that when you are in PHP Runner.
It is in the Add, Edit, View Format, etc. Where it says Label you can rename the Field Label There.
Hope This Helps.
Peer

Sergey Kornilov admin 5/10/2005

Pedro,
thank you for suggestion. This modification will be available in the next update of PHPRunner.

501205 5/11/2005

Ah - Sergey my friend, that is very welcome news. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=4355&image=1&table=forumreplies' class='bbc_emoticon' alt=':D' />
Any idea on dates for distribution of the next version, please? <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=4355&image=2&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' /> No promises, I know - but a guess would be nice.

Sergey Kornilov admin 5/12/2005

Pedro,
new update is available already.

This update features Upload to folder feature. Also it includes field name -> label modification you mentioned.
http://www.asprunner.com/forums/index.php?...?showtopic=1340