can we add some text AFTER the field!?

hi guys, anybody tried to add some text after the field? i mean as postfix or something… like if you want to put a Unit for the field…

i read some manual things to do that, also i have in mind to to make the field then hide it and create one new field to join 2 and display them as variable

is there any other easy straight forward way to do that within field settings itself?

you can always use JQuery and modify the html content of the td created by netmake, im not a jquery guru (Albert is that you? lol) but i think you can do it using


window.GetElementbyID('<id of the td generabed by SC>').innerHTML = window.GetElementbyID('<id of the td generabed by SC>').innerHTML + '<Your suffix>'

the think is that you should make that into a jquery function and call it whenever appropiate, so the problem now is… how do you call a Jquery/javascript function in SC right?.

Hope this helps.

Regards

hi sempai boss, and thanks for your input, it will help indeed

i’m not really familiar with this way to do it

although looks good if we can make it as jquery thing, else where to put that code!? i guess you are right dude, don’t know how to implement that

i think you can echo it in the onload event and then call it with the sc_java_blabla (don’t remember the name of the macro lol) when you need it >.<

I’m not sure I understood where\how you want this extra info displayed, but did you try this?:

Fields->[yourfield]->Grid Lookup->Use lookup to display the field description->SQL Command -> SELECT (“text to be postfixed”)

You will get

FieldLabel [FIELD CONTENT] text to be postfixed

GET OUT OF TOWN BRAAAAHHHH… shoooowww meee shooowwww meeeeee =P

And it works… =D aweeesomeeeee =D.

sempai kafecadm, i guess we have sempai roby too now :smiley:

thanks roby, nice idea will give it a try

kafe dude i liked this too:" >.< " is it a cat looking at you? loool

Another solution is to use the help field and set that of type text. Then this text will be printed behind the field.

Good one Albert and roby - although Albert’s is a bit more universal. What I mean is - depending on the field type, Grid Lookup is not always available.

:slight_smile:

albert your idea is universal as adz mentioned :slight_smile: thanks

roby, what if your field is actually using that sql automatic to display the data, where to add (“prefix text”) i tried with after the select throws error, did you try that with actual sql automatic lookup in use?

MikeDE
no, I didn’t try.
I vote for Albert idea, even if I have no clue what he’s talking about… :slight_smile:

EDIT - just checked all field options in SC and found the Help option Albert is referring to.
I confirm my vote for his solution :slight_smile:

sure dude, Albert hit the spot :smiley: although the help text sometimes appear under the field, not next to it as a prefix, but also is wow!

but i was curious to see the sql method too, so can be used only if sql automatic lookup is NOT in use, will try it ASAP