Guest User

Deck of Deck - Render conditions

a guest
Feb 24th, 2021
64
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <skuid__page unsavedchangeswarning="yes" personalizationmode="server" showsidebar="true" showheader="true">
  2. <models>
  3. <model id="SkuidPages" limit="200" query="true" createrowifnonefound="false" datasource="salesforce" sobject="skuid__Page__c" orderby="skuid__API_Version__c">
  4. <fields>
  5. <field id="skuid__API_Version__c"/>
  6. <field id="Name"/>
  7. <field id="Owner.Name"/>
  8. <field id="skuid__IsMaster__c"/>
  9. <field id="skuid__Type__c"/>
  10. </fields>
  11. <conditions>
  12. <condition type="multiple" value="" field="skuid__API_Version__c" operator="in" enclosevalueinquotes="true">
  13. <values>
  14. <value>v1</value>
  15. <value>v2</value>
  16. </values>
  17. </condition>
  18. </conditions>
  19. <actions/>
  20. </model>
  21. <model id="UIModel" limit="20" query="true" datasource="Ui-Only" createrowifnonefound="false">
  22. <fields>
  23. <field id="APIVersion" displaytype="TEXT" length="255"/>
  24. <field id="Name" displaytype="TEXT" length="255"/>
  25. </fields>
  26. <conditions/>
  27. <actions/>
  28. </model>
  29. </models>
  30. <components>
  31. <skuid__tabSet uniqueid="sk-3KSV-38666">
  32. <tabs>
  33. <skuid__tabPanel name="New Tab">
  34. <components>
  35. <skuid__table allowColumnFreezing="dragDrop" model="UIModel" uniqueid="sk-3KSX-39289" mode="read">
  36. <fields>
  37. <field id="APIVersion"/>
  38. </fields>
  39. <filtering enableSearch="false" searchMethod="client"/>
  40. <rowActions/>
  41. <massActions/>
  42. <actions>
  43. <action type="multi" label="Add">
  44. <actions>
  45. <action type="createRow" model="UIModel" appendorprepend="prepend" defaultmodefornewitems="edit" affectedrows="all"/>
  46. </actions>
  47. </action>
  48. </actions>
  49. </skuid__table>
  50. </components>
  51. </skuid__tabPanel>
  52. <skuid__tabPanel name="SkuidPages">
  53. <components>
  54. <skuid__table allowColumnFreezing="dragDrop" model="SkuidPages" uniqueid="sk-3KSv-44484" mode="read">
  55. <fields>
  56. <field id="Name"/>
  57. <field id="skuid__API_Version__c"/>
  58. <field id="skuid__IsMaster__c"/>
  59. <field id="skuid__Type__c"/>
  60. </fields>
  61. <filtering enableSearch="false"/>
  62. <rowActions/>
  63. <massActions/>
  64. </skuid__table>
  65. </components>
  66. </skuid__tabPanel>
  67. </tabs>
  68. </skuid__tabSet>
  69. <skuid__buttonSet model="SkuidPages" uniqueid="sk-3KFL-12540">
  70. <groups>
  71. <skuid__buttonGroup uniqueId="sk-3KFL-12538">
  72. <buttons>
  73. <skuid__button label="UpdateData" uniqueId="sk-3KFL-12539">
  74. <actions>
  75. <action type="requeryModel" model="SkuidPages" behavior="standard"/>
  76. </actions>
  77. </skuid__button>
  78. </buttons>
  79. </skuid__buttonGroup>
  80. </groups>
  81. </skuid__buttonSet>
  82. <skuid__wrapper uniqueid="sk-3KF7-5417">
  83. <components>
  84. <skuid__deck columnGutter=".75em" rowGutter=".75em" model="UIModel" showSaveCancel="false" verticalAlign="top" minWidth="350px" uniqueid="sk-3KSA-35742">
  85. <components>
  86. <skuid__deck columnGutter=".75em" rowGutter=".75em" model="SkuidPages" showSaveCancel="false" verticalAlign="top" minWidth="350px" uniqueid="sk-3KFB-5872" pageSize="10">
  87. <components>
  88. <skuid__wrapper uniqueid="sk-3KQ2-25051">
  89. <components>
  90. <skuid__form showErrorsInline="true" model="SkuidPages" uniqueid="sk-3KFD-6307" mode="read">
  91. <sections>
  92. <section title="New Section" showHeading="false">
  93. <rows>
  94. <row>
  95. <fields>
  96. <skuid__field id="Name" uniqueId="sk-3KFI-9231"/>
  97. <skuid__field id="skuid__IsMaster__c" uniqueId="sk-3KFK-9774"/>
  98. <skuid__field id="skuid__API_Version__c" uniqueId="sk-3KFK-10441"/>
  99. <skuid__field id="skuid__Type__c" uniqueId="sk-3KQO-29439"/>
  100. <skuid__field id="Owner.Name" uniqueId="sk-3KFK-11223"/>
  101. </fields>
  102. </row>
  103. </rows>
  104. </section>
  105. </sections>
  106. <conditions>
  107. <condition type="contextrow" field="Id" mergefield="Id"/>
  108. </conditions>
  109. <renderConditions logictype="and"/>
  110. <styleVariantConditions/>
  111. </skuid__form>
  112. </components>
  113. <styles>
  114. <spacing/>
  115. </styles>
  116. <background/>
  117. <renderConditions logictype="and">
  118. <renderCondition type="blank" operator="!=" fieldmodel="SkuidPages" sourcetype="fieldvalue" field="Owner.Name" fieldtargetobjects="User" value="null" enclosevalueinquotes="false"/>
  119. <renderCondition type="fieldvalue" operator="=" enclosevalueinquotes="true" fieldmodel="SkuidPages" sourcetype="fieldvalue" field="skuid__API_Version__c" fieldtargetobjects="skuid__Page__c" value="v1"/>
  120. </renderConditions>
  121. <styleVariantConditions/>
  122. </skuid__wrapper>
  123. <skuid__wrapper uniqueid="sk-3KX0-63848">
  124. <components>
  125. <skuid__form showErrorsInline="true" model="SkuidPages" uniqueid="sk-3KX0-63849" mode="read">
  126. <sections>
  127. <section title="New Section" showHeading="false">
  128. <rows>
  129. <row>
  130. <fields>
  131. <skuid__field id="Name" uniqueId="sk-3KX0-63852"/>
  132. <skuid__field id="skuid__IsMaster__c" uniqueId="sk-3KX0-63853"/>
  133. <skuid__field id="skuid__API_Version__c" uniqueId="sk-3KX0-63854"/>
  134. <skuid__field id="skuid__Type__c" uniqueId="sk-3KX0-63855"/>
  135. <skuid__field id="Owner.Name" uniqueId="sk-3KX0-63856"/>
  136. </fields>
  137. </row>
  138. </rows>
  139. </section>
  140. </sections>
  141. <conditions>
  142. <condition type="contextrow" field="Id" mergefield="Id"/>
  143. </conditions>
  144. <renderConditions logictype="and"/>
  145. <styleVariantConditions/>
  146. </skuid__form>
  147. </components>
  148. <styles>
  149. <spacing/>
  150. </styles>
  151. <background/>
  152. <renderConditions logictype="or">
  153. <renderCondition type="blank" operator="!=" fieldmodel="SkuidPages" sourcetype="fieldvalue" field="Owner.Name" fieldtargetobjects="User" value="null" enclosevalueinquotes="false"/>
  154. </renderConditions>
  155. <styleVariantConditions/>
  156. </skuid__wrapper>
  157. </components>
  158. <filtering enableSearch="false"/>
  159. <conditions>
  160. <condition type="contextrow" field="skuid__API_Version__c" mergefield="APIVersion" operator="="/>
  161. </conditions>
  162. <styles>
  163. <spacing/>
  164. </styles>
  165. <renderConditions logictype="and"/>
  166. <styleVariantConditions/>
  167. </skuid__deck>
  168. </components>
  169. <filtering enableSearch="false"/>
  170. </skuid__deck>
  171. </components>
  172. <styles>
  173. <spacing/>
  174. </styles>
  175. <background/>
  176. </skuid__wrapper>
  177. </components>
  178. <resources>
  179. <labels/>
  180. <javascript/>
  181. <css/>
  182. <actionsequences/>
  183. </resources>
  184. <styles>
  185. <styleitem type="background" bgtype="none"/>
  186. </styles>
  187. </skuid__page>
  188.  
RAW Paste Data