on 05-30-2005 1:42 PM
hai,
1. i can able to create user defined fields , but i need my fields are in UNIUQE KEY how can i achive through the
VB Code. ?
2. I load a XML form but i cant able to make it as fixed single form, or deactivate the minimize / maximaze button , how can i achive it through the VB Code?
regards
Thiru
Hello,
For the first point, you can add a UserKey on the table, add only one field and make this key Unique
Set oUserKeysMD = oCompany.GetBusinessObject(oUserKeys)
oUserKeysMD.TableName = "YourTableName" '// BP table
oUserKeysMD.KeyName = "BE_MyKey1"
oUserKeysMD.Elements.ColumnAlias = "U_YourFieldName"
oUserKeysMD.Unique = tYES
oUserKeysMD.Add
For the second point, set the BorderStyle to 6 in the XML file and (maybe I haven't tried) Type to 6
<form AutoManaged="0" BorderStyle="6" Type="6"
Message was edited by: Sébastien Danober
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hai,
thank u,
the second one is not working.
1,i need only to deactivate max button, and min button and make the form as FIXED SINGLE how its possible when using XML .
regards
thiru
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think you can disable the min max button, but you can just remove them
The following XML create a form that can't be Resize, maybe it can help you.
<?xml version="1.0" encoding="UTF-16"?>
<Application>
<forms>
<action type="add">
<form AutoManaged="0" BorderStyle="6" FormType="60007" ObjectType="-1" SupportedModes="15" appformnumber="" client_height="119" client_width="60" color="0" default_button="" height="121" left="0" mode="1" pane="0" title="Toolbar Like" top="0" type="6" uid="Try" visible="1" width="160">
<datasources>
<dbdatasources>
<action type="add" />
</dbdatasources>
<userdatasources>
<action type="add" />
</userdatasources>
</datasources>
<Menus />
<items>
<action type="add">
<item AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" enabled="1" font_size="0" forecolor="-1" from_pane="0" height="21" left="112" linkto="" right_just="0" supp_zeros="0" tab_order="0" text_style="0" to_pane="0" top="0" type="100" uid="Line1" visible="1" width="1">
<AutoManagedAttribute />
<specific />
</item>
</action>
</items>
<FormMenu />
<DataBrowser />
</form>
</action>
</forms>
</Application>
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.