Hindus Hindus - disappeared, but the application is ready. However, I decided to add the missing fields to the profile.

in userDTO I saw that there is bank_name It is also used in API calls - like bank_name

Only by analogy, how other fields began to fill in:

Const.java

String BANK_NAME = "bank_name"; 

Next UserDTO.java

  public String getbank_name() { return bank_name; } public void setbank_name(String bank_name) { this.bank_name = bank_name; } 

Next in ProfileSetting.java

 private CustomEditText etName, etEmail, **etBank_name**, etMobile, etGender, etHomeAddress, etOfficeAddress; 

and one more

 private CustomEditText etNameD, etEmailD, **etBank_nameD**, etMobileD, etOldPassD, etNewPassD, etConfrimPassD, etHomeAddressD, etOfficeAddressD; 

there, but in the setUiAction method

  public void setUiAction(View v) { etBank_name = v.findViewById(R.id.etBank_name); 

In the showData () method

 etBank_name.setText(userDTO.getbank_name()); 

and in the public void dialogPersonalProfile () {method

 etBank_nameD = (CustomEditText) dialog_profile.findViewById(R.id.etBank_nameD); etBank_nameD.setText(userDTO.getbank_name()); 

in dialog_personal_info.xml

 <com.easyjob.meistars.utils.CustomEditText android:id="@+id/etBank_nameD" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="Something" android:inputType="text" android:singleLine="true" android:text="" /> 

and in activity_profile_setting.xml

 <com.easyjob.meistars.utils.CustomEditText android:id="@+id/etBank_name" android:layout_width="match_parent" android:layout_height="wrap_content" android:editable="false" android:hint="Something2" android:singleLine="true" android:text="" /> </com.easyjob.meistars.utils.InputFieldView> 

In Webservices.php has already been written

  public function editPersonalInfo() { $bank_name = $this->input->post('bank_name', TRUE); 

and just below

 $data['bank_name']=isset($bank_name) ? $bank_name: $checkUser->bank_name; 

In the application field bank_name appeared, I can enter there, I can save

After saving, the record does not go to SQL.

I did by analogy 1в1 with other fields, like I did not miss anything, I did not forget anything.

What could be the problem?

Thank you all for the advice!

    1 answer 1

    I'm dumbass :) in the method

    public void onClick (View v)

    forgot to add

     params.put(Consts.BANK_NAME, ProjectUtils.getEditTextValue(etBank_nameD)); 

    Everything is working.

    @pavloff, thanks to you (the link went to another link and saw your jamb)