VLocation saves BPLocation / crash in list mode !

Help is preferred to those who publish their work as Open Source and not as private branches rejecting collaboration. Such projects are not maintainable and shall be deleted.
Forum rules
This forum is personally pruned to avoid redundant posts. Related topics are grouped together. IF YOU HAVE REGISTERED, you need to send email to red1(a)red1.org with your username in the subject title to get me to activate you.

VLocation saves BPLocation / crash in list mode !

Postby nmicoud » Mon May 14, 2012 10:21 pm

Hi,

I was asked to automatically save current C_BPartner_Location_ID when form VLocationDialog is closed.
Please find patch here http://nicolas.micoud.free.fr/trucs/VLocation.patch

It works in single row layout. But in list mode, i got a NPE, because m_GridTab is null.

Any idea on how to deal it ?

Thanks,

Nicolas
nmicoud
Regular
 
Posts: 137
Joined: Fri Oct 07, 2011 6:19 pm

Re: VLocation saves BPLocation / crash in list mode !

Postby nmicoud » Wed May 16, 2012 10:10 pm

In today iDempiere meeting, Carlos give this solution :

if (m_GridField.getGridTab().getRecord_ID()<=0) {
m_GridField.getGridTab().setValue(m_GridField, ii);
m_GridField.getGridTab().dataSave(true);
}

It's seems ok ; there is just a bug that let field colored in red, whereas it is saved.

Nicolas
nmicoud
Regular
 
Posts: 137
Joined: Fri Oct 07, 2011 6:19 pm


Return to HELP ME!!!

Who is online

Users browsing this forum: No registered users and 1 guest

cron