Skip to content

Commit

Permalink
Added Link property to Category agents for #62
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelProminic committed Sep 13, 2024
1 parent 4d33cec commit 16f5116
Show file tree
Hide file tree
Showing 6 changed files with 110 additions and 58 deletions.
3 changes: 3 additions & 0 deletions Super.Human.Portal_Agents/docs/CategoryDocs/Category_API.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ Label | Text | false |
Description | Text | false |
Icon | Text | false |
Order | Number | false |
Link | Text | false |


### Create
Expand All @@ -102,6 +103,7 @@ Label | Text | false | false |
Description | Text | false | false |
Icon | Text | false | false |
Order | Number | false | false |
Link | Text | false | false |


Response properties | JSON Format | Notes
Expand Down Expand Up @@ -141,6 +143,7 @@ Label | Text | false | false |
Description | Text | false | false |
Icon | Text | false | false |
Order | Number | false | false |
Link | Text | false | false |


Response: No additional values. TODO: return the document?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.moonshine.domino.field.FieldDefinition;
import com.moonshine.domino.field.FieldType;
import com.moonshine.domino.security.*;
import com.moonshine.domino.util.DominoUtils;
import com.moonshine.domino.util.ParameterException;

import lotus.domino.*;
Expand Down Expand Up @@ -38,6 +39,9 @@ protected Collection<FieldDefinition> getFieldList() {
fields.add(new FieldDefinition("Order", FieldType.NUMBER, false));


fields.add(new FieldDefinition("Link", FieldType.TEXT, false));



return fields;
}
Expand Down Expand Up @@ -77,6 +81,7 @@ protected Collection<FieldDefinition> getReturnFieldList() {
fields.add(new FieldDefinition("Description", FieldType.TEXT, false));
fields.add(new FieldDefinition("Icon", FieldType.TEXT, false));
fields.add(new FieldDefinition("Order", FieldType.NUMBER, false));
fields.add(new FieldDefinition("Link", FieldType.TEXT, false));

return fields;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ protected Collection<FieldDefinition> getFieldList() {
fields.add(new FieldDefinition("Description", FieldType.TEXT, false));
fields.add(new FieldDefinition("Icon", FieldType.TEXT, false));
fields.add(new FieldDefinition("Order", FieldType.NUMBER, false));
fields.add(new FieldDefinition("Link", FieldType.TEXT, false));

return fields;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.moonshine.domino.field.FieldDefinition;
import com.moonshine.domino.field.FieldType;
import com.moonshine.domino.security.*;
import com.moonshine.domino.util.DominoUtils;
import com.moonshine.domino.util.ParameterException;

import lotus.domino.*;
Expand Down Expand Up @@ -35,6 +36,9 @@ protected Collection<FieldDefinition> getFieldList() {
fields.add(new FieldDefinition("Order", FieldType.NUMBER, false));


fields.add(new FieldDefinition("Link", FieldType.TEXT, false));



return fields;
}
Expand Down
129 changes: 80 additions & 49 deletions Super.Human.Portal_DVE/nsfs/nsf-moonshine/odp/Forms/Category.form
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@

<text>Order</text>

<text>Link</text>

</textlist>

</item>
Expand All @@ -52,7 +54,7 @@

<richtext style="width:700px;height:700px;" class="flexVerticalLayout flexVerticalLayoutLeft flexVerticalLayoutTop" direction="Vertical" vdirection="Vertical">

<pardef id="1001" dominotype="dominoHideDiv" keeptogether="true" keepwithnext="true" hide=""/>
<pardef id="1003" dominotype="dominoHideDiv" keeptogether="true" keepwithnext="true" hide=""/>

<par isNewLine="false">

Expand All @@ -64,7 +66,7 @@

</par>

<pardef id="1002" dominotype="dominoHideDiv" keeptogether="true" keepwithnext="true" hide=""/>
<pardef id="1004" dominotype="dominoHideDiv" keeptogether="true" keepwithnext="true" hide=""/>

<table refwidth="5in" widthtype="fixedleft">

Expand All @@ -76,9 +78,9 @@

<tablecell hpostion="left" valign="top">

<pardef id="22" align="left" keeptogether="true" keepwithnext="true" dominotype="dominotable"/>
<pardef id="62" align="left" keeptogether="true" keepwithnext="true" dominotype="dominotable"/>

<par def="22" hidewhen="">
<par def="62" hidewhen="">

<run>

Expand All @@ -92,9 +94,9 @@

<tablecell hpostion="left" valign="top">

<pardef id="23" align="left" keeptogether="true" keepwithnext="true" dominotype="dominotable"/>
<pardef id="63" align="left" keeptogether="true" keepwithnext="true" dominotype="dominotable"/>

<par def="23" hidewhen="">
<par def="63" hidewhen="">

<run>

Expand All @@ -113,9 +115,9 @@

<tablecell hpostion="left" valign="top">

<pardef id="24" align="left" keeptogether="true" keepwithnext="true" dominotype="dominotable"/>
<pardef id="64" align="left" keeptogether="true" keepwithnext="true" dominotype="dominotable"/>

<par def="24" hidewhen="">
<par def="64" hidewhen="">

<run>

Expand All @@ -129,9 +131,9 @@

<tablecell hpostion="left" valign="top">

<pardef id="25" align="left" keeptogether="true" keepwithnext="true" dominotype="dominotable"/>
<pardef id="65" align="left" keeptogether="true" keepwithnext="true" dominotype="dominotable"/>

<par def="25" hidewhen="">
<par def="65" hidewhen="">

<run>

Expand All @@ -150,9 +152,9 @@

<tablecell hpostion="left" valign="top">

<pardef id="26" align="left" keeptogether="true" keepwithnext="true" dominotype="dominotable"/>
<pardef id="66" align="left" keeptogether="true" keepwithnext="true" dominotype="dominotable"/>

<par def="26" hidewhen="">
<par def="66" hidewhen="">

<run>

Expand All @@ -166,9 +168,9 @@

<tablecell hpostion="left" valign="top">

<pardef id="27" align="left" keeptogether="true" keepwithnext="true" dominotype="dominotable"/>
<pardef id="67" align="left" keeptogether="true" keepwithnext="true" dominotype="dominotable"/>

<par def="27" hidewhen="">
<par def="67" hidewhen="">

<run>

Expand All @@ -187,9 +189,9 @@

<tablecell hpostion="left" valign="top">

<pardef id="28" align="left" keeptogether="true" keepwithnext="true" dominotype="dominotable"/>
<pardef id="68" align="left" keeptogether="true" keepwithnext="true" dominotype="dominotable"/>

<par def="28" hidewhen="">
<par def="68" hidewhen="">

<run>

Expand All @@ -203,9 +205,9 @@

<tablecell hpostion="left" valign="top">

<pardef id="29" align="left" keeptogether="true" keepwithnext="true" dominotype="dominotable"/>
<pardef id="69" align="left" keeptogether="true" keepwithnext="true" dominotype="dominotable"/>

<par def="29" hidewhen="">
<par def="69" hidewhen="">

<run>

Expand All @@ -224,9 +226,9 @@

<tablecell hpostion="left" valign="top">

<pardef id="30" align="left" keeptogether="true" keepwithnext="true" dominotype="dominotable"/>
<pardef id="70" align="left" keeptogether="true" keepwithnext="true" dominotype="dominotable"/>

<par def="30" hidewhen="">
<par def="70" hidewhen="">

<run>

Expand All @@ -240,9 +242,9 @@

<tablecell hpostion="left" valign="top">

<pardef id="31" align="left" keeptogether="true" keepwithnext="true" dominotype="dominotable"/>
<pardef id="71" align="left" keeptogether="true" keepwithnext="true" dominotype="dominotable"/>

<par def="31" hidewhen="">
<par def="71" hidewhen="">

<run>

Expand All @@ -263,9 +265,38 @@

<tablerow>

<tablecell hpostion="left" valign="top"/>
<tablecell hpostion="left" valign="top">

<pardef id="72" align="left" keeptogether="true" keepwithnext="true" dominotype="dominotable"/>

<par def="72" hidewhen="">

<run>

<font color="system" size="12pt" style="normal"/>
Link - Link - This category will open a URL instead of working as a category
</run>

</par>

</tablecell>

<tablecell hpostion="left" valign="top"/>
<tablecell hpostion="left" valign="top">

<pardef id="73" align="left" keeptogether="true" keepwithnext="true" dominotype="dominotable"/>

<par def="73" hidewhen="">

<run>

<font color="black" size="10pt" style="normal" name="sans-serif"/>
<field listdisplayseparator="newline" listinputseparators="comma semicolon newline" object="defaultvalue" linespacing="1" spacebefore="1" spaceafter="1" useappletinbrowser="false" allowtabout="false" defaultfocus="false" storelocally="false" alignPardef="left" listPardef="none" type="text" kind="editable" computeaftervalidation="false" allowmultivalues="false" width="100pt" height="30pt" bgcolor="#ffffff" name="Link"/>

</run>

</par>

</tablecell>

</tablerow>

Expand Down Expand Up @@ -324,72 +355,72 @@ End Sub
<item name="$$FormScript" summary="false" sign="true">
<text>'++LotusScript Development Environment:2:5:(Options):0:74
'++LotusScript Development Environment:2:5:(Forward):0:1
Declare Sub Queryrecalc(Source As Notesuidocument, Continue As Variant)
Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
Declare Sub Postrecalc(Source As Notesuidocument)
Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
Declare Sub Postopen(Source As Notesuidocument)
Declare Sub Postrecalc(Source As Notesuidocument)
Declare Sub Postsend(Source As Notesuidocument)
Declare Sub Initialize
Declare Sub Postsave(Source As Notesuidocument)
Declare Sub Queryrecalc(Source As Notesuidocument, Continue As Variant)
Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
Declare Sub Postmodechange(Source As Notesuidocument)
Declare Sub Initialize
Declare Sub Terminate
Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
Declare Sub Querysend(Source As Notesuidocument, Continue As Variant)
Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
Declare Sub Postopen(Source As Notesuidocument)

'++LotusScript Development Environment:2:5:(Declarations):0:10
'++LotusScript Development Environment:2:2:BindEvents:1:129
Private Sub BindEvents(Byval Objectname_ As String)
Static Source As NOTESUIDOCUMENT
Set Source = Bind(Objectname_)
On Event Queryrecalc From Source Call Queryrecalc
On Event Querymodechange From Source Call Querymodechange
On Event Postrecalc From Source Call Postrecalc
On Event Queryopen From Source Call Queryopen
On Event Queryclose From Source Call Queryclose
On Event Postopen From Source Call Postopen
On Event Postrecalc From Source Call Postrecalc
On Event Postsend From Source Call Postsend

On Event Postsave From Source Call Postsave
On Event Queryrecalc From Source Call Queryrecalc
On Event Querysave From Source Call Querysave
On Event Postmodechange From Source Call Postmodechange


On Event Queryopen From Source Call Queryopen
On Event Querysend From Source Call Querysend
On Event Querysave From Source Call Querysave
On Event Postopen From Source Call Postopen

End Sub
'++LotusScript Development Environment:2:2:Queryrecalc:1:12
Sub Queryrecalc(Source As Notesuidocument, Continue As Variant)
End Sub
'++LotusScript Development Environment:2:2:Querymodechange:1:12
Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
End Sub
'++LotusScript Development Environment:2:2:Postrecalc:1:12
Sub Postrecalc(Source As Notesuidocument)
End Sub
'++LotusScript Development Environment:2:2:Queryopen:1:12
Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
End Sub
'++LotusScript Development Environment:2:2:Queryclose:1:12
Sub Queryclose(Source As Notesuidocument, Continue As Variant)
End Sub
'++LotusScript Development Environment:2:2:Postopen:1:12
Sub Postopen(Source As Notesuidocument)
'++LotusScript Development Environment:2:2:Postrecalc:1:12
Sub Postrecalc(Source As Notesuidocument)
End Sub
'++LotusScript Development Environment:2:2:Postsend:1:12
Sub Postsend(Source As Notesuidocument)
End Sub
'++LotusScript Development Environment:2:2:Postsave:1:12
Sub Postsave(Source As Notesuidocument)
End Sub
'++LotusScript Development Environment:2:2:Queryrecalc:1:12
Sub Queryrecalc(Source As Notesuidocument, Continue As Variant)
End Sub
'++LotusScript Development Environment:2:2:Querysave:1:12
Sub Querysave(Source As Notesuidocument, Continue As Variant)
End Sub
'++LotusScript Development Environment:2:2:Postmodechange:1:12
Sub Postmodechange(Source As Notesuidocument)
End Sub
'++LotusScript Development Environment:2:2:Queryopen:1:12
Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
End Sub
'++LotusScript Development Environment:2:2:Querysend:1:12
Sub Querysend(Source As Notesuidocument, Continue As Variant)
End Sub
'++LotusScript Development Environment:2:2:Querysave:1:12
Sub Querysave(Source As Notesuidocument, Continue As Variant)
'++LotusScript Development Environment:2:2:Postopen:1:12
Sub Postopen(Source As Notesuidocument)
End Sub
<break/></text>
</item>
Expand Down
Loading

0 comments on commit 16f5116

Please sign in to comment.