pref server call

This commit is contained in:
CHIEFSOFT\ameye
2024-07-01 07:12:44 -04:00
parent da2fca90ea
commit 361fc8f15d
+21 -5
View File
@@ -58,14 +58,30 @@ export class PreferencesPage implements OnInit {
}
@ViewChild('user_pref') user_pref;
reqSetData: {
action:number,
member_id: number,
uid: string,
sessionid: string,
user_pref: string
};
prefSetTotalData:any;
prefSetData: [];
getPrefValue(){
console.log(this.user_pref);
this.reqSetData = {
action:11065,
member_id: this.sessionDataProviderService.member_id,
uid: this.sessionDataProviderService.member_uid,
sessionid: this.sessionDataProviderService.session ,
user_pref: this.user_pref
};
//setUserPreferences
this.wrenchService.setUserPreferences(this.reqData).subscribe(
prefTotalData => {
this.prefTotalData = prefTotalData;
console.log("prefTotalData RETURN->", this.prefTotalData);
this.prefData = this.prefTotalData.result_list;
this.wrenchService.setUserPreferences(this.reqSetData).subscribe(
prefSetTotalData => {
this.prefSetTotalData = prefSetTotalData;
console.log("pref Set TotalData RETURN->", this.prefSetTotalData);
//this.prefSetData = this.prefSetData.result_list;
// debugger; result_list
}
);