Project

General

Profile

Bug #3240

[HR]perbaikan pada master data assignment dimana jika mengisi posisi baru, untuk kolom organization tidak terisi otomatis sehingga organization id tidak terbentuk.

Added by Muhammad Bintar about 2 months ago. Updated about 1 month ago.

Status:
QA Test
Priority:
High
Start date:
11/28/2024
Due date:
12/02/2024 (50 days late)
% Done:

0%

Estimated time:
Spent time:

Description

dear tim developer mohon support nya untuk perbaikan pada master data assignment dimana jika mengisi posisi baru, untuk kolom organization tidak terisi otomatis sehingga organization id tidak terbentuk.

remote.minovais.com:31130
database sql server 2014
remote.minovais.com, 1442
Bank Kalteng Dev


Files

clipboard-202411281129-takhv.png (84 KB) clipboard-202411281129-takhv.png Muhammad Bintar, 11/28/2024 11:29 AM
clipboard-202412191525-v8gcn.png (20.2 KB) clipboard-202412191525-v8gcn.png M Azid Wahyudi, 12/19/2024 03:25 PM
#1

Updated by Kezia Pawitra Yulianti about 2 months ago

  • Due date changed from 12/04/2024 to 12/02/2024
  • Status changed from New to Assigned
  • Assignee changed from Kezia Pawitra Yulianti to Muhammad Bintar
  • Priority changed from Normal to High

mas bin,
itu seharusnya di field organization tidak ada look up nya deh. karena posisi search adanya di field position.
Tolong disesuaikan dulu settingan field nya dan cek di client lain yg sudah berjalan, mgkn ada yg kurang di settingan sdatatablefield nya.

Tks

#2

Updated by Muhammad Bintar about 2 months ago

  • Assignee changed from Muhammad Bintar to M Azid Wahyudi

ouw itu sudah di setting sdatatablefield nya. lalu sudah hilang tombol kaca pembesar nya.
tapi kalau organisasi nya, pas di isi posisi baru, organisasi nya tidak autoload secara otomatis.

#3

Updated by M Azid Wahyudi about 1 month ago

dear masbin , udah bisa di test ya

- jika ingin di hilangkan kaca pembesar itu di read only

package autoload :
sdataTablefield (PHRPA0002 (position)selectfuntion)

var Mainform = Ext.ComponentQuery.query('[name=' + val.formname + ']')[0];
var StartDate = Mainform.getForm().findField('StartDate').getValue();
var objClassValue = val.objClassValue;
var hasil = undefined;
var cc = null;
Ext.Ajax.request({
async: false,
method: 'POST',
url: '/UserControl/GetStore',
params: {
tableName: 'PHROM0006',
param: 'StartDate[<=]' + _StartDate + ',EndDate[>=]' + _StartDate + ',ObjectID[=]' + val.getValue() + ',ObjectClass[=]' + objClassValue
},
success: function (response) {
var results = Ext.decode(response.responseText);
if (results.data.length > 0) {
hasil = results.data0;
Mainform.getForm().findField('Job').setValue(hasil.Job);
Mainform.getForm().findField('CostCenter').setValue(hasil.CostCenter);
} else {
Mainform.getForm().findField('Job').setValue('');
Mainform.getForm().findField('CostCenter').setValue('');
}
}
});
var Org
= null;
Ext.Ajax.request({
async: false,
method: 'POST',
url: '/UserControl/GetStore',
params: {
tableName: 'PHROM0002',
param: 'StartDate[<=]' + StartDate + ',EndDate[>=]' + _StartDate + ',ObjectID[=]' + val.getValue() + ',ObjectClass[=]P,RelationshipDirectory[=]B,RelationshipClass[=]O'
},
success: function (response) {
results = (response.responseText);
Org
= Ext.decode(results);
if (Org_.data.length > 0) {
Org = Org_.data0;
Mainform.getForm().findField('Organization').setValue(Org.RelationshipObject);
console.log(Org.RelationshipObject)
} else {
Mainform.getForm().findField('Organization').setValue('');
}
}
});
if (Mainform.getForm().findField('CostCenter').getValue() == '') {
Ext.Ajax.request({
async: false,
method: 'POST',
url: '/ORM/GetCostCenter?ObjectID=' + val.getValue() + '&class=' + objClassValue + '&keyDate=' + StartDate + '&isOneLevel=false',
success: function (response) {
results = (response.responseText);
cc
= Ext.decode(results);
cc = cc_.results.data;
Mainform.getForm().findField('CostCenter').setValue(cc);
}
});
}
if (val.getValue() == '') {
Mainform.getForm().findField('Organization').setValue('');
Mainform.getForm().findField('CostCenter').setValue('');
}

makasih

Also available in: Atom PDF