I need some help to solve my "problem"
I'd like to manage to EDIT a record in a specifed status in the portal.
I made a managebrick witch query a recordset (status in draft).
I set the opening_mode=edit.
But the opened FORM is in read_only, and I can't see the "submit" buttom.
CODE --->
<module_designs>
<module_design id="user-content-itop-portal" xsi:type="portal" _delta="must_exist">
<classes>
<class id="user-content-FunctionalCI" _delta="define">
<scopes>
<scope id="user-content-all">
<oql_view><![CDATA[SELECT fci FROM
FunctionalCI AS fci
JOIN lnkContactToFunctionalCI AS CI ON CI.functionalci_id=fci.id
WHERE CI.contact_id=:current_contact_id]]></oql_view>
</scope>
</scopes>
</class>
</classes>
<bricks>
<brick id="user-content-functionalci-for-portal-users" xsi:type="Combodo\iTop\Portal\Brick\ManageBrick" _delta="define">
<active>true</active>
<rank>
<default>70</default>
</rank>
<width>6</width>
<title><br>
<default>OwnedCIs:Portal:Menu</default><br>
</title>
<description>OwnedCIs:Portal:Menu+</description>
<decoration_class>
<default>fc fc-itop-icon fc-2x</default>
</decoration_class>
<class>FunctionalCI</class>
<oql><![CDATA[SELECT FunctionalCI]]></oql>
<fields>
<field id="user-content-name">
<field id="user-content-finalclass">
<field id="user-content-description">
</field></field></field></fields>
<opening_target>modal</opening_target>
<opening_mode>edit</opening_mode>
<grouping>
<tabs>
<show_tab_counts>false</show_tab_counts>
<attribute>finalclass</attribute>
</tabs>
</grouping>
<data_loading>auto</data_loading>
<export>
<export_default_fields>true</export_default_fields>
</export>
</brick>
</bricks>
</module_design>
</module_designs>
The user have the EDIT rights (i tried this with admin role)
Could you please me give me some advise how to solve this problem? THX in advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I suspect that <class id="user-content-user-content-FunctionalCI">
is expected to be a real class name...
And for sure you're missing an
<oql_edit><![CDATA[SELECT FunctionalCI]]></oql_edit></class>
Have you checked also that your user has write access to FunctionalCI in his grant matrix?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I need some help to solve my "problem"
I'd like to manage to EDIT a record in a specifed status in the portal.
I made a managebrick witch query a recordset (status in draft).
I set the opening_mode=edit.
But the opened FORM is in read_only, and I can't see the "submit" buttom.
CODE --->
<module_designs>
<module_design id="user-content-itop-portal" xsi:type="portal" _delta="must_exist">
<classes>
<class id="user-content-FunctionalCI" _delta="define">
<scopes>
<scope id="user-content-all">
<oql_view><![CDATA[SELECT fci FROM
FunctionalCI AS fci
JOIN lnkContactToFunctionalCI AS CI ON CI.functionalci_id=fci.id
WHERE CI.contact_id=:current_contact_id]]></oql_view>
</scope>
</scopes>
</class>
</classes>
<bricks>
<brick id="user-content-functionalci-for-portal-users" xsi:type="Combodo\iTop\Portal\Brick\ManageBrick" _delta="define">
<active>true</active>
<rank>
<default>70</default>
</rank>
<width>6</width>
<title><br> <default>OwnedCIs:Portal:Menu</default><br> </title>
<description>OwnedCIs:Portal:Menu+</description>
<decoration_class>
<default>fc fc-itop-icon fc-2x</default>
</decoration_class>
<class>FunctionalCI</class>
<oql><![CDATA[SELECT FunctionalCI]]></oql>
<fields>
<field id="user-content-name">
<field id="user-content-finalclass">
<field id="user-content-description">
</field></field></field></fields>
<opening_target>modal</opening_target>
<opening_mode>edit</opening_mode>
<grouping>
<tabs>
<show_tab_counts>false</show_tab_counts>
<attribute>finalclass</attribute>
</tabs>
</grouping>
<data_loading>auto</data_loading>
<export>
<export_default_fields>true</export_default_fields>
</export>
</brick>
</bricks>
</module_design>
</module_designs>
The user have the EDIT rights (i tried this with admin role)
Could you please me give me some advise how to solve this problem? THX in advance
Hi
I suspect that <class id="user-content-user-content-FunctionalCI">
is expected to be a real class name...
And for sure you're missing an
<oql_edit><![CDATA[SELECT FunctionalCI]]></oql_edit></class>
Have you checked also that your user has write access to FunctionalCI in his grant matrix?