0

In a coldfusion application I noticed some getter & setter like object.

 <cfset Session.preferenceObject.setHomePage_Title('#HomePage_Details#')>
 <textarea name="HomePage_Details" cols="50" rows="4" scroll="no">#Session.preferenceObject.getHomePage_Details()#</textarea>   

it is working fine.I can save the value in DB also.Similarly I tried with Customer_Detais.

<cfset Session.preferenceObject.setCustomer_Details('#Customer_Details#')>
<textarea name="Customer_Details" cols="50" rows="4" scroll="no">#Session.preferenceObject.getCustomer_Details()#</textarea> 

But it is not working.Can anyone help me on this concept? I can't understand this coldfusion concept.

Süresh AK
  • 344
  • 3
  • 20
  • Are you sure about part of the variable name. Is it `Detais` or `Details`? – Pankaj Dec 14 '15 at 14:50
  • 3
    "But it is not working" - Tell us *how* it is not working. Do you get an error? What does the error say? – beloitdavisja Dec 14 '15 at 14:52
  • @Pankaj spelling mistake.Anyway it should work right? – Süresh AK Dec 14 '15 at 14:57
  • @beloitdavisja : We can save the textarea value in db without any insert query.(I can't able to track the method of saving operation) in case of HomePage_Details..But no insertion for Customer_Details. No errors getting. – Süresh AK Dec 14 '15 at 15:07
  • http://code.google.com/p/tmt-calendar/source/browse/trunk/client/Application.cfc?r=46 ..use this link as an reference. – Süresh AK Dec 14 '15 at 15:37
  • Use `` to inspect the component and its methods. As long as you do not provide any real information, nobody can help you here. – Alex Dec 14 '15 at 20:57
  • If setHomePage_Title() works, try to understand how it works, then you'll find the answer to your question about setCustomer_Details(). "Don't Imitate... Understand!" – Alex Baban Dec 15 '15 at 00:10

1 Answers1

0

I think, you only can use getCustomer_Detais() if exists a setter, like setCustomer_Detais("value")...

In your case, only exists a setHomePage_Title setter...