Forums: pageobj. hide field showfield and database - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

pageobj. hide field showfield and database Can not Hide.obj button be selected more than once? Rate Topic: -----

#1 User is offline   ruzgarajans 

  • Member
  • PipPip
  • Group: Members
  • Posts: 20
  • Joined: 20-September 17

Posted 20 July 2018 - 07:30 PM

hi friends,
sorry, I dont speak english.. Im use to google translate.

ok:
my previous issue was resolved.
but it works as a view,
this control command can not be added to the database if it is clicked a few times.
What do you think about pageobj.hide fields.

in other words;
if the button is clicked several times, it will not be written to the show fields database
On time clicked on the button, the show areas are being written to the database


http://asprunner.com...034&#entry85034

var ctrlalan_ac_1 = Runner.getControl(pageid, 'sube_statu_kodu_list');

pageObj.hideField("vale_urun_adi")
pageObj.hideField("vale_urun_fiyati")
pageObj.hideField("yikama_urun_adi")
pageObj.hideField("yikama_urun_fiyati")
ctrlalan_ac_1.on('change', function(e) 
{
if (this.getValue() == '1') 
{
pageObj.showField("vale_urun_adi");
pageObj.showField("vale_urun_fiyati");

} 
else 
{
pageObj.hideField("vale_urun_adi");
pageObj.hideField("vale_urun_fiyati");

}

});
ctrlalan_ac_1.on('change', function(e) 
{
if (this.getValue() == '2') 
{
pageObj.showField("yikama_urun_adi");
pageObj.showField("yikama_urun_fiyati");

} 


});
ctrlalan_ac_1.on('change', function(e) 
{
if (this.getValue() == '3') 
{
pageObj.showField("yikama_urun_adi");
pageObj.showField("yikama_urun_fiyati");
pageObj.showField("vale_urun_adi");
pageObj.showField("vale_urun_fiyati");

} 


});

Posted Image
0

#2 User is offline   admin 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 16038
  • Joined: 03-February 03

Posted 21 July 2018 - 01:26 AM

Your code looks good in general. As a first step make sure there are no Javascript errors:
https://xlinesoft.co...ript_errors.htm
Best regards,
Sergey Kornilov
0

#3 User is offline   ruzgarajans 

  • Member
  • PipPip
  • Group: Members
  • Posts: 20
  • Joined: 20-September 17

Posted 21 July 2018 - 04:47 PM

hi, again,
there are no error messages..
there is a red field problem..
I do not know how to hide

var ctrlalan_ac_1 = Runner.getControl(pageid, 'sube_statu_kodu_list');


pageObj.hideField("vale_urun_adi")
pageObj.hideField("vale_urun_fiyati")
pageObj.hideField("yikama_urun_adi")
pageObj.hideField("yikama_urun_fiyati")




ctrlalan_ac_1.on('change', function(e)
{
if (this.getValue() == '1')
{
pageObj.showField("vale_urun_adi");
pageObj.showField("vale_urun_fiyati");

}
else
{
pageObj.hideField("vale_urun_adi");
pageObj.hideField("vale_urun_fiyati");

}

});
ctrlalan_ac_1.on('change', function(e)
{
if (this.getValue() == '2')
{
pageObj.showField("yikama_urun_adi");
pageObj.showField("yikama_urun_fiyati");

}


});
ctrlalan_ac_1.on('change', function(e)
{
if (this.getValue() == '3')
{
pageObj.showField("yikama_urun_adi");
pageObj.showField("yikama_urun_fiyati");
pageObj.showField("vale_urun_adi");
pageObj.showField("vale_urun_fiyati");

}


})
0

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked