Hi,
thought this might interest someone.
I have spent days trying to get the inlineadd to work automatically, the information in tricks and tips didn´t work no mater what I did. After getting the DebuBar installed I was able to follow the building of the html and javascript and found that the inlineedit was not defined, even though I put my call just before the </body> tag in the visual editor. The reason is that inlineediting is defined after the <body> tag.
I gave the inlineadd button a name and used the javascript click() to call it.
I attached my code to the $code_end variable in the _list page and it works like a dream.
$includes_js[]="include/inlineedit_split.js";
$code_end .= 'window.inlineEditing'.$id.' = new InlineEditing(\'SAL_SPLIT\',\'php\');';
if (!spo_CheckSplitSumme($_SESSION[$strTableName."_masterkey1"],$_SESSION[$strTableName."_masterkey2"],$MasterCheckPlanSumme)){
$code_end .= ' document.getElementById(\'inlineaddbutton\').click();';
}
Now if the function returns false a new inlineadd is opened.
The Problem that the init of the inlineedit function happens after the html body tag caused this.
Robert <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=12760&image=1&table=forumtopics' class='bbc_emoticon' alt=':lol:' />