I updated to the latest version of Openbiz 2.4 build 0816 and I found some problems with GetActiveRecord(). My previous stable version was Openbiz 2.4 build 0715 and GetActiveRecord() was working fine. Then i made several updates from SVN repository and maybe the problem about GetActiveRecord() appears before, but I didn't noticed until yesterday when I was updated to the b0816. The problem seem to be that that the 'Current record' is not saving properly in the session, or maybe it is not readable. I will apreciate any coments about this, thanks in advance.
|
|||

The recordId is in session
The recordId is in session when the form is displayed, but if you display another form the information of the previous one is removed from session.
I really need to keep history saved in session (the recordId, not active record).
Can you help please?
Thanks and regards!
Thanks for all previous
Thanks for all previous comments...
You're right, about these values are not in session and could be very useful to be able to have. I agree with previous comment and I think is very important to have this feature back. Much appreciate if you could enable it.
Hi, i think that it is a
Hi, i think that it is a highly important feature, for instance, in comercial applications from a Master Detail functionality after edit the detail, the application must come back to show the previus selected master row. In version 2.3 edit function was in the same view and this problem doesn't appear.
Regards
The BizDataObj and EasyForm
Hi, I tried the method in
Hi, I tried the method in both object with the same return (null) when the object is not displayed.
Dear PHPOpenBiz
Dear PHPOpenBiz support,
Thank you for your previous response.
I have a main form (parent) and another form related with this.
When I create a new object of form, one of the options should be filled using value from the parent form (example parent_id).
When I try to save this new object, I receive an error message that the value for this option is missed (example parent_id). So we can not read this value from the main form with the purpose to be use in the form.
Since Openbiz keeps only one instance of a metadata object (of DataObj, Form, View) in a user session first I tried to get this value using function like this:
public function Test()
{
global $g_BizSystem;
$f_aux = $g_BizSystem->GetObjectFactory()->GetObject("XXX");
if (!$f_aux) {
print $f_aux->GetErrorMessage();
return false;
}
$rec = $f_aux->GetActiveRecord();
$id = $rec['Id'];
$errorMsg = "Look , that's ID: $id";
BizSystem::ClientProxy()->ShowErrorMessage($errorMsg);
}
Then I tried to pass the DefaultValue this way:
DefaultValue="{@mm.d_module_file:Field[Id].Value}";
For both I have the same error, value missed.
In fact I need a way to read from main form for this value option to be use in the form when the main form is not showing, so is reading from cache(Session).
These values from parent form are always visbles in the correct way in the List and Edit forms.
I will apreciate your help in advance.
Both BizDataObj and EasyForm
Both BizDataObj and EasyForm have GetActiveRecord method. Which one do you have the problem? Also if you can describe the scenario how you use GetActiveRecord, it will help us to find the issue.
Thanks!
- support