Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi for PHP/IDE/Form Designer    [ Add a report in this area ]  
Report #:  106688   Status: Reported
RPCL components are not working well within templated forms
Project:  HTML5 Builder Build #:  4.4.0.1656
Version:    4.4 Submitted By:   David Mora
Report Type:  Basic functionality failure Date Reported:  6/26/2012 10:31:48 AM
Severity:    Infrequently encountered problem Last Updated: 6/26/2012 7:09:48 PM
Platform:    All platforms Internal Tracking #:  
Resolution: None  Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: 1
Description
RPCL components information is not updated in the template part of a templated form. Renaming a component gives issues and runtime exceptions in the IDE.


Environment:
Windows 7 64 bit
Embarcadero? RadPHP? XE2 Update 4, Version  4.4.0.1656
no custom setup, all set to defaults except encoding is UTF8 where applicable.
no other PHP installations present.
Delphi XE2 enterprise present.
Firefox 6 is the default browser.

I tried to reinstall RadPHP update 4 over again but didn't help.

Let me know if you need more information.
This is related to a previous report #106668 which was closed before i could submit more details.
Steps to Reproduce:
create new empty templated form;
add RPCL combobox or listbox;
save and close the form editor;
reopen the form in the editor;
select the combobox;
in the object inspector, rename the component to "thecombo";

select the combo in the editor again: object inspector does not find the component and shows the page properties instead;
can still find the combo in the object inspector's selector box at the top;

switch editor to Code panel: get a program exception "Abstract Error.", but can see the page class code is correct:
    public $thecombo = null;

switch to Design panel: same exception, then i see the combo is not rendering. I can get a selection there as is if there was an invisible component, although object inspector displays the page properties.

switch to Template panel:
can see the RPCL component there but its name has not been updated:
<combobox:php id="ComboBox1" style="z-index: 1000; width: 185px; height: 18px" ></combobox:php>

Workarounds
There seem to be a loss of synchronization within the code. Renaming the component back to its original name "ComboBox1" settles the issues but makes a very poor solution for complex coded forms, and certainly is not the way templated forms are supposed to work.
Attachment
None
Comments

None

Server Response from: ETNACODE01