This topic is locked
[SOLVED]

 Substitute table name in "Proceed to" message

8/7/2011 10:31:09 PM
PHPRunner General questions
B
btrdev author

Is there a way to change the "Proceed to tablename" message that appears in the inline details on the list page?
What I want to do is to substitute something more descriptive than the table name.
For example, if my table name is "stk_item_lst", the message will show "Proceed to stk item lst". Instead, I want the user to see "Proceed to List of Stock Items".
I found this thread: http://www.asprunner.com/forums/topic/14829-get-rid-of-proceed-to-link-shown-in-inline-details/ that discussed how to remove the link altogether, but I just want to change it, not remove it.
Thanks in advance.

C
cgphp 8/8/2011

I think you have to follow the instructions in the old thread and to replace the "_" character in the rPrm.dCaption object with a space.
If you want a more dynamic solution, you can change the text link in the Javascript OnLoad event.

B
btrdev author 8/8/2011

Thank you. I certainly prefer a more dynamic solution, but I'm not sure I understand your suggestion for changing the link in the Javascript OnLoad event. I assume this would be the Javascript OnLoad event for the list page of the "stk_itemlst" table in my example above? Can you give me some idea what the code would be like?
Thanks for your usual prompt responses.



I think you have to follow the instructions in the old thread and to replace the "
" character in the rPrm.dCaption object with a space.
If you want a more dynamic solution, you can change the text link in the Javascript OnLoad event.

C
cgphp 8/8/2011

Something like this in the javascript OnLoad event of the List page:

var new_table_name = "your new detail table name";

$("a[id^='youroriginaldetailtablename_preview']").click(function(e){

$(this).ajaxComplete(function(e) {

$("div[id^='dpHide'] a").text("Proceed to "+new_table_name);

});

});
P
procheck 8/8/2011

If all else fails, you can create a view with the name you like.

B
btrdev author 8/9/2011

I don't know how I missed it folks, but the solution is to change the table name in the "Label editor" on the "Misc" tab.
Thanks for all the responses.