動的フォームを組み込みます。
<xe:inPlaceForm attributes>content</xe:inPlaceForm>
プロパティ | 説明 |
---|---|
id | デフォルトは inPlaceForm1、inPlaceForm2 などです。 |
カテゴリ | プロパティ |
---|---|
basics | binding、id、loaded、partialEvents、rendered、rendererType |
イベント | afterContentLoad、beforeContentLoad |
styling | disableTheme、themeId |
getComponent("inPlaceForm1").show()
getComponent("inPlaceForm1").hide()
現在の状態に応じてフォームの表示/非表示を切り替えるには、以下のコードを実行します。getComponent("inPlaceForm1").toggle()
詳しくは、インプレース編集を参照してください。
このコントロールは、最新のアクセシビリティ標準に対してテストされていません。推奨されるアクセシビリティパスは データ表 または データビューコントロールです。
<xp:this.data>
<xp:dominoView var="view1" viewName="subject"></xp:dominoView>
</xp:this.data>
<xp:repeat id="repeat1" rows="30" value="#{view1}" var="row">
<xp:text escape="true" id="computedField1" value="#{row.subject}"></xp:text>
<xp:link escape="true" id="link1"><xp:this.text>
<![CDATA[#{javascript:var c = getComponent("inPlaceForm1")
if(c.isVisible()) {
return "Close";
} else {
return "Edit"
}}]]></xp:this.text>
 
<xp:eventHandler event="onclick" submit="true"
refreshMode="partial" refreshId="repeat1">
<xp:this.action>
<![CDATA[#{javascript:getComponent("inPlaceForm1").toggle()}]]>
</xp:this.action>
</xp:eventHandler>
</xp:link>
<xp:br></xp:br>
<xp:panel>
<xe:inPlaceForm id="inPlaceForm1" partialEvents="true">
<xp:inputText id="inputText1" value="#{document1.subject}"></xp:inputText>
 
<xp:button value="OK" id="button1">
<xp:eventHandler event="onclick" submit="true"
refreshMode="partial" refreshId="repeat1">
<xp:this.action>
<xp:actionGroup>
<xp:saveDocument></xp:saveDocument>
<xp:executeScript>
<xp:this.script>
<![CDATA[#{javascript:getComponent("inPlaceForm1").hide()}]]>
</xp:this.script>
</xp:executeScript>
</xp:actionGroup>
</xp:this.action>
</xp:eventHandler>
</xp:button>
</xe:inPlaceForm>
<xp:this.data>
<xp:dominoDocument var="document1" action="editDocument"
documentId="#{javascript:row.getNoteID()}" formName="main">
</xp:dominoDocument>
</xp:this.data>
</xp:panel>
</xp:repeat>