Edit Pencil Tool Tip

Anyone know how to edit the tool tip for the “edit pencil” icon?

I don’t want it to say “Edit Row.”

Thanks,
Dave

Re: Edit Pencil Tool Tip

Overwrite this text in language files?

check folder …_lib\lang\

Re: Edit Pencil Tool Tip

I want to be able to change to different tips depending on the application…

I did this in the “onRecord” event but it only worked for the first one and not the rest:


<script type="text/javascript">
document.getElementById('bedit').title = 'NEW TITLE HERE';
</script>

Any other thoughts?

D.

Re: Edit Pencil Tool Tip

changing the tooltip of these icons dynamically is not a feature of SC. I can’t help you with a workaround unfortunately, besides hacking the generated files.

Dynamic label and hints at run time

In my project I manage counter (such as water meters) and measuring points (pressure measurement) In addition I have ever (t_gauge, t_counter) a table. These have their uniform column names (date_value, value_0, value_1 …). In another table I manage the label of the values ​​(t_captions).
In onScriptInit or onLoadRecord event then I read next from the names and transferring them to global variables ([label_column_x]).
As the number of columns in the DB is set so I do this in a For loop with a switch statement.

for ($ col = 0; $ col <10; $ col + +)
 {
  switch ($ col)
  {
   case 0: [label_column_0] = $ dataset [0] [$ col];
   ....
  }
 }

In the name of the field, I use it [label_column_x].

This works just fine.
Unfortunately, you can specify in the label of a field no global variables as assoziatve arrays such as:

[FIELDS][$tabname][$columnnr][‘caption’]
[FIELDS][$tabname][$columnnr][‘hint’]

If this would go, one could initialize the dynamic lables like loading the page and they would always be available …

If I am not mistaken, this works well with the language variable {lang_…}

Re: Edit Pencil Tool Tip

I have not looked at this, but at the end of the day, SC just uses global session arrays for all values for display under $_SESSION[‘scriptcase’][…]
Could you just find the field in the language file and overwrite the session var in your code when you load the app?

Load your app in the IDE and run. To go the IDE and display the session vars in View/Data in Session

regards,
Scott.