Dear All,

The mxml document:

ApprovalQuee.mxml

<j:VGroup localId="vg" gap="3" className="wrapper">
                <j:Card width="100%"  id="cardMaster" visible="true">
                        <j:CardHeader>
                        </j:CardHeader>

                        <j:CardPrimaryContent>
                                <j:DataGrid width="100%" height="350" 
emphasis="secondary"
localId="dgAntrian" change="dgAntrian_change(event)"
click="dgAntrian_click(event)">
                                        <j:beads>
                                                //some beads
                                        </j:beads>
                                        <j:columns>
                                                <j:DataGridColumn label="Type" 
dataField="strtipe" align="center"
columnWidth="100"/>
                                                <j:DataGridColumn 
label="#Employee" dataField="member" align="center"
columnWidth="100"/>
                                                <j:DataGridColumn 
label="#Requested" dataField="requested"
align="center" columnWidth="100"/>
                                                <j:DataGridColumn 
label="Action" dataField="aksi" align="center"
itemRenderer="itemRenderers.actionRenderer"/>
                                        </j:columns>
                                </j:DataGrid>
                        </j:CardPrimaryContent>
                </j:Card>       
                
                //some other visual component
                
</j:VGroup>             


The Item Renderer:

actionRendererReview.mxml

<j:DataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"; 
    xmlns:j="library://ns.apache.org/royale/jewel" 
    xmlns:js="library://ns.apache.org/royale/basic">

    <fx:Script>
        
    </fx:Script>

    <j:beads>
        <js:ItemRendererDataBinding/>
        <js:ContainerDataBinding/>
        <j:HorizontalCenteredLayout/>
    </j:beads>

    <j:IconButton localId="btnApprove" click="btnApprove_click(event)"
emphasis="primary">
        <j:beads>
            <j:ToolTip toolTip="Review Request"/>
        </j:beads>
        <j:icon>
            <js:MaterialIcon text="{MaterialIconType.CHECK_CIRCLE}" />
        </j:icon>
    </j:IconButton>

</j:DataGridItemRenderer>


Already try to change the code:
c['org_apache_royale_jewel_Container__mxmlDocument'] as
ReviewQueue).load_for_review();

with this:
(c.parent as ReviewQueue).load_for_review();

Build successfully also , but return the same error both in debug and
release version

Note that i use option -js-dynamic-access-unknown-members=true

Build with maven using visual studio code,
Build successfully (debug and release)


MXMLJSC
+royalelib=d:\xampp\htdocs\apache-royale-0.9.8-bin-js-swf\royale-asjs\frameworks
--debug=false
+configname=royale
--targets=JSRoyale
--source-path+=src/main/resources
--source-map=true
--html-template=src/main/resources/jewel-example-index-template.html
--theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css
-js-dynamic-access-unknown-members=true
--
src/main/royale/App.mxml
Des 16, 2020 9:51:58 AM com.google.javascript.jscomp.LoggerErrorManager
printSummary
INFO: 0 error(s), 0 warning(s), 96.9% typed
The project 'App' has been successfully compiled and optimized.
29.419114624 seconds

Please help folks
Thankyou



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/

Reply via email to