Home » Developer & Programmer » Application Express, ORDS & MOD_PLSQL » Add Quote for string (Apex 4.0,win8,Oracle 10g )
Add Quote for string [message #629173] Thu, 04 December 2014 02:44 Go to next message
Xandot
Messages: 235
Registered: January 2014
Location: India
Senior Member
Hello,

I want to add Quotes into the field when user insert any string data into the field and click to apply changes then automatically add the Quotes into the filed like :-

Demo  after submitting the page filed data looks like :- "Demo"


If the quotes is already there then no need to add quotes.

Please help me out.

Thanks,
Xandot
Re: Add Quote for string [message #629186 is a reply to message #629173] Thu, 04 December 2014 04:13 Go to previous messageGo to next message
Littlefoot
Messages: 21806
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Quote:

... apply changes then automatically add the Quotes into the filed


"Automatically" is, I believe, end user's feeling. As there's no magic in Apex, it is you who will have to do that job in the background. A dynamic action might be a good choice. SUBSTR function will tell you whether there are quotes around the value. A double quote character along with the concatenation operator will add quotes if necessary.

Now, your turn (i.e. start coding).
Re: Add Quote for string [message #629193 is a reply to message #629186] Thu, 04 December 2014 04:25 Go to previous message
Xandot
Messages: 235
Registered: January 2014
Location: India
Senior Member
Thanks.Smile
Previous Topic: Double Quote issue
Next Topic: Using ORDS (Apex Listener) with ICAP virus scanning
Goto Forum:
  


Current Time: Thu Mar 28 05:11:39 CDT 2024