Reproducing Incident Form Elements in a Custom Class

Hello again everyone,
I am trying to rollout a completely separate module in SCSM to record MACD (Move/Add/Change/Delete) requests. I decided to use the OOB incident module as my base class as it already contained many fields I require (I inherited the properties
and relationships) and created a new form assembly in Visual Studio to wire the properties to.
After created the form and labels, I imported the .dll into the Authoring Tool so I can just drag out each property from the MP explorer onto the form. Everything works except for the last few fields which are a bit more complex than a standard list or textbox.
I cannot seem to add the controls for the more complicated items like "Affected Services" or "Affected Items", when I try to drag them out to the form I get an error saying cardinality is not set to 1... I am guessing this is because
its trying to map a relationship between a workitem and a service instead of my custom class and a service...
So I went back into Visual Studio and added a ListView to the form, thinking I will have to wire the data bindings inside the form itself. However, I am stuck as I am not sure where "Services" are being written to, as I will need this location
to reference in my empty ListView. I have provided my code and commented where I believe I am missing logic. Thank you in advance for any help!
Note: "servicerelatestoworkitem" is not actually an object, my logic is conceptual and I still have not found which class/object the list of services is being written to.
C# Code containing button logic (an add button to add a service to the ListView, and a delete button to remove a service from the ListView.
private void add_services_button_Click(object sender, RoutedEventArgs e)
   // Open list of Services here, allow user to pick a service, then add selected service to "servicerelatestoworkitem"
   // AffectedServicesListView is populated from servicerelatestoworkitem
private void del_services_button_Click(object sender, RoutedEventArgs e)
    // Test to see if item is being selected and display selected item to confirm ability to manipulate variable
    try
        var itemSelected = ListView.GetIsSelected(AffectedServicesListView);
        MessageBox.Show(itemSelected.ToString());
    catch (Exception ex)
        MessageBox.Show(ex.Message);
    // Remove selected item from servicerelatestoworkitem and refresh AffectedServicesListView
XAML Code containing the list view and two buttons: (Note: The binding is most likely incorrect, I was just experimenting with it)
<ListView x:Name="AffectedServicesListView" HorizontalAlignment="Left" Height="95" Margin="10,414.6,0,0" VerticalAlignment="Top" Width="521" ItemsSource="{Binding Path=AffectedServicesListView, Mode=Default, UpdateSourceTrigger=PropertyChanged}">
                        <ListView.View>
                            <GridView>
                                <GridViewColumn/>
                            </GridView>
                        </ListView.View>
                    </ListView>
                    <Button x:Name="add_services_button" Content="" HorizontalAlignment="Left" Margin="470.55,382.749,0,0" VerticalAlignment="Top" Width="27.674" Height="26.851" Click="add_services_button_Click" BorderBrush="{x:Null}">
                        <Button.Background>
                            <ImageBrush ImageSource="add.png"/>
                        </Button.Background>
                    </Button>
                    <Button x:Name="del_services_button" Content="" HorizontalAlignment="Left" Margin="503.224,382.749,0,0" VerticalAlignment="Top" Width="27.776" Height="26.851" Click="del_services_button_Click" BorderBrush="{x:Null}">
                        <Button.Background>
                            <ImageBrush ImageSource="delete.png"/>
                        </Button.Background>
                    </Button>

Cardinality is a property of relationships classes, not a property of specific relationships. each type of relationship has it's own cardinality values, but the engine only really recognizes "one" and "many". it makes sense to say that
the "affected user" relationship is many to one, because Each work item can have one and only one affected user, but each users may be the affected user of many work items. The Related work items relationship is a many to many, because each workitem
may be related to many other work items. it doesn't make sense to say this specific relationship between this IR and that user is "many to one", because each instance is only between one specific object and another specific objects. the cardinality
just controls how many of those specific relationships instances can exist for each type of relationship. 
There are no out of the box controls for many to many relationships. the Instance Picker control is designed to support one to one and many to one relationships. you'd have to write your own controls for support many to one relationships. Consider Travis
Wright's SR Example for 2010, since most of this code should execute in 2012 and 2012r2 with only minor modifications. 
You'd have to either find the control that defines it, like with the history tab, or recreate it using the
authoring tool or
Visual Studio. 

Similar Messages

  • Customized incident form

    Hi ,
    I am customizing incident form and i am adding Job title of the affected user field to the form.Could you let me know how to configure this class that this should populate from Active directory.
    Thanks
    Krish
    Regards, H@ri

    Hi Krish
    You will need to target the field to the class of active directory user when you have put the text box on the page. Place you text box then in the properties window click on binding path, scroll down to where it says affected user and select the job title
    property.

  • Custom Incident Form Data Binding Help

    Hello Everyone! I'm relatively new to TechNet and am excited to learn a lot as well as contribute my experiences and help others learn as well! 
    I have read through tutorials, taken the MVA SCSM course, and even read through some books like SCSM 2010 Unleashed, and Microsoft System Center Service Manager Cookbook.
    I am currently working on an SCSM 2012 project, in which I have to create a custom incident form for use within the console. I have tried to extend the existing form in the authoring tool, but found it too limited in function. Therefore I went down the 
    road of working on a completely new form in Visual Studio 2013 (I assume I cannot modify the existing Incident form in VStudio otherwise that would probably make my job alot easier). I have completed the UI of the form, and imported it into the authoring tool
    to add some functions not present in VStudio (like list picker, etc.). I also created a new work item, pointed it to my custom assembly, and bundled up my files as a management pack bundle. I imported it into SCSM and successfully created
    a custom view and implemented the form. Now I have to go back to the authoring tool and focus on binding the textboxes and controls to actual data… here I kind of am lost. How do I go about doing this? I know I have to point the textbox for example a location
    on where to pull the data from, but where AM I pulling that data from anyways? For example, the status, the title, etc. These must all be bound to some data object somewhere in the CMDB but thats as far as I know. Any guidance, pointers, tips, even links to
    documentation I can read would be greatly appreciated! Thanks in advance!

    This might as well be a blog as I clearly love answering my own questions all the time... :)
    So it seems the authoring tool is just poorly designed and does not allow one to pick from properties already defined to that class on an EXISTING control (e.g. If you create your form in VStudio like I did and go into Authoring Tool hoping to create the
    appropriate properties and then map them to those controls like textboxes or listpickers, you can't do that.) Instead, create the form without ANY of the controls on it, so just the grids, background, and frame of the page. Then go into Authoring Tool and
    create the properties in the class definition. Then, when you author the form you can DRAG OUT the properties, e.g. ID, Affected User, Status, etc. Automatically mapping the right control to the data type (e.g. it will drag out a textbox for a property that
    is defined as a string), and does all the binding for you. That's it!
    If you were curious as to what the actual syntax was incase you want to manually edit the XML, it would be a line containing something like this:
    <PropertyBindingChange Property="Text" Object="TextBox_1"><NewBinding UpdateSourceTrigger="Default" BindsDirectlyToSource="False" Mode="Default" Path="Id" Enabled="True"/></PropertyBindingChange>
     

  • Custom Fields in Incident form - how to report on ?

    I added a site field and a line of business filed to the incident form.  The fields are not showing up in the DW to be reported on it seems, named the MP Incident Customer ..   How do I get these fields to show ..

    The management pack must be sealed in order to get the extended field to synchronize to the data warehouse.
    www.zgc.se - Sysadmin blog.

  • Adding a populated field to an incident form

    Hi,
    hopefully someone here can help me out, I'm looking to add a field to the Incidents form in SCSM 2012, specifically a 'Location' dropdown with a few of our sites already in it and a 'room number' text box.
    I'm having trouble getting started with this customisation and the more I read TechNet articles and blog posts the more difficult it seems.
    Does anyone have any pointers on how to achieve this?
    Thanks.

    So there are two things that you need to do to do this. First: add a place to store this information. Second: add controls to the form so those places are exposed for editing. 
    The first part is more complicated, but not hard. Let's start with some design choices:
    i'm assuming these two values are properties of the affected user, rather then the incident? the distinction here is if the location and room number are the location of the user having the issue, or a unique location for this issue. imagine a printer problem,
    and bob calls this problem in. should the location field be linked to Bob's office so the analyst can find bob in the building, or should it be blank until bob specifies the room number that the printer is in? 
    If you want user properties, then the first step would be to
    extend the user class (specifically, System.Domain.User) using
    the SCSM authoring tool, by adding a ENUM or list property for the location, and a text property for the room number. you'll want to
    save and seal this MP, then close the unsealed version and open the sealed version before continuing. If you want the Incident properties, you'll do the same process, only to the incident
    class (System.WorkItem.Incident) instead oft he user class. 
    In regards to the second part, customizing the form: start by creating a second MP to store the form. you'll want to keep the class and form definitions separate, due to some property reference issues if they are in the same MPs. If the location is linked
    to the user, then you'll want to follow
    this example to create read only fields linked to the user in the new form. If Not, then you'll want to
    customize the incident form, and
    add a text box and
    list control to link your form properties. Either way, save and seal the form MPs and import them both into Service Manager. 
    Open the forms and check your work. you'll note the dropdown has no entries. you'll want to create a third MP, this time inside SCSM (not the authoring tool) to store the List entries. find the list you created in the authoring tool and
    add some entries. 
    At this point, if you are just storing the information on the incident, then you're done. if you are storing the data on the users, then you'll want to populate this information. you can do this with some automation, like powershell or orchestrator, to get
    this data populated from it's original source, say the HR system that assigns offices, or you can customize the user form to expose these properties so your analyst can start populating this data. 

  • Webservice invocation - Custom class

    Hi,
    I am new to Jdeveloper and iam trying to invoke a webservice which does insert operation. I am invoking webservice using webservice data control mechanism.
    In my data control pallette i have a method called conInsert(Object,String) where it takes two parameters
    1) first parameter is of type java.lang.Object ( some custom class) - SiebelMessage_ListOfContactInterface_Contact
    2) second parameter is of type java.lang.String - statusObject
    WSDL entry for the conInsert operation:
    <message
    name="ConInsert_Input"
    <partname="SiebelMessage"
    type="xsdLocal0:ListOfContactInterfaceTopElmt"
    </part
    <partname="StatusObject"
    type="xsd:string"
    </part
    </message
    <messagename="ConInsert_Output"
    <partname="SiebelMessage"
    type="xsdLocal0:ListOfContactInterfaceTopElmt"
    >
    Now i need to create a form which accepts above specified fields and submit the form using conInsert (webservice operation). How can i create form accepting first and second parameter ?
    Should i drag conInsert(Object;,String) method from Data control pallette to my jspx page ?
    Can anyone help me with the solution.
    Regards,
    Ahmed.

    Shay,
    I have tried the blog post url by Susan Duncan and i was able to map the fields through backing bean and through creating web service proxy. But while hitting the submit buttion i was encounted with below error.
    JBO-29000: Unexpected exception caught: java.rmi.RemoteException, msg=Error parsing envelope: (1, 1) Start of root element expected.; nested exception is: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.*
    Error parsing envelope: (1, 1) Start of root element expected.; nested exception is: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.*
    I am not sure about why iam getting this error ?
    btw, i have analyzed the sending and receiving packets from http analyzer
    here is the request:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://siebel.com.fmw1" xmlns:ns1="http://www.siebel.com/xml/Contact%20Interface">
    <env:Body>
    <ns0:ConInsert>
    <SiebelMessage>
    <ns1:ListOfContactInterface>
    <ns1:Contact>
    <ns1:Id>332</ns1:Id>
    <ns1:FirstName>asdf</ns1:FirstName>
    <ns1:LastName>asdf</ns1:LastName>
    </ns1:Contact>
    </ns1:ListOfContactInterface>
    </SiebelMessage>
    <StatusObject>asdf</StatusObject>
    </ns0:ConInsert>
    </env:Body>
    </env:Envelope>
    Here is the response:
    HTTP/1.1 200 OK
    Date: Tue, 04 Aug 2009 14:12:04 GMT
    Server: IBM_HTTP_Server
    siebel-error-symbol-1: Unknown Error Symbol
    siebel-error-message-1: Invalid external service source 'WebService'. Check the server configuration or the request.(SBL-UIF-00243)
    Content-Length: 0
    Content-Type: text/xml; charset=UTF-8
    Could you please tell me is anything wrong with my config ? looks like iam not able to reach server???
    Regards,
    Ahmed.

  • Column value substitution in tabular form element attributes

    We started to discuss this at Re: Tabular form with Ajax
    I also mentioned this at Re: how to make only some rows editable in html db.
    but thought that this deserves its own thread.
    In Doug's sample Sudoku application in that thread, he uses #COLUMN# substitution in the Form Element Attributes and it works fine, but in my example page at http://htmldb.oracle.com/pls/otn/f?p=24317:219 I used the same technique and no matter what I do, the #COLUMN# substitution is not expanded by the Apex engine.
    This is driving me nuts, any ideas why it works in one application but not in another?
    Thanks

    Hm, you might be right.
    I copied your row template and modified it at http://htmldb.oracle.com/pls/otn/f?p=24317:219
    The styling looks terrible, not sure why, the template is simply
    <tr>
    <td class="t10data">#EMPNO_DISPLAY#</td>
    <td class="t10data">#ENAME#</td>
    <td class="t10data">#JOB#</td>
    <td class="t10data">#MGR#</td>
    <td class="t10data">#HIREDATE#</td>
    <td class="t10data">#SAL#</td>
    <td class="t10data">#COMM#</td>
    <td class="t10data">#DEPTNO#</td>
    </tr>I had a lot of trouble getting this to work because the wizard generated tabular form appends 2 hidden fields containing the PK and the row-checksum to the last (editable?) field on each row. If the last editable field has #COL# substitution, it expands the substitution and forgets to close the INPUT tag thus causing malformed HTML (I think this is a bug in the rendering engine).
    The readonly condition is sal>1000 which now works. The SAL>1000 fields are now readonly.
    But now the update process is broken. If I enter a number in the first blank SAL field (empno=3641) and click Submit, I get no errors but the change is not saved. Wonder why.
    Hopefully, Scott (Spadafore) will take mercy on our amateurish experiments and give us some definitive answers soon!
    Thanks.

  • SE24 or In-line Declaration of Custom Class to be Used in a Custom Exit ???

    After our implementation of a custom screen in EXIT_SAPLIE01_007, the function-group XQSM contained the following custom elements:
    XQSM
        Function Modules
          EXIT_SAPLIE01_007     (this just includes ZXQSMU06)
        PBO Modules
          STATUS_9000
        PAI Modules
          USER_COMMAND_9000
        SCREENS
          9000                  (custom screen (modal dialog box))   
        GUI_STATUS
          9000                  (status for custom screen) 
        INCLUDES
          ZXQSMI01              (contains PAI module) 
          ZXQSMO01              (contains PBP module)
          ZXQSMTOP              (declares custom global variables)
          ZXQSMZZZ              (this just includes ZXQSMI01/ZXQSMO01
          ZXQSMU06              (this calls custom screen 9000)
    Then the users decided they wanted an editable ALV on custom screen 9000 (to handle multi-item GR postings in MIGO, not just single-item postings.)
    Since I never coded an editable ALV before, I first created a working editable ALV program from the SAP demo program BCALV_EDIT_03 plus some additions/modifications kindly provided by Uwe Schieferstein down in the ABAP Objects Forum.
    But now I'm stuck because I don't know which components of the XQSM function group I should put the following pieces of code in:
    1)
    class lcl_event_receiver definition deferred.
    data: g_event_receiver type ref to lcl_event_receiver.
    2)
    class lcl_event_receiver definition.
      public section.
      private section.
    endclass.
    3)
    class lcl_event_receiver implementation.
    endclass.
    Can someone please tell me where (1-3) belong inside XQSM - what components they should be put into?
    Or should I just build a custom class in SE24 and use it in the exit ???  (By "use it", I mean instantiate it and call its methods.)
    It seems to me that if I could define the class in SE24,it would be a lot easier, because everything else except (1-3) above clearly belongs in the PBO or PAIof the screen.

    Hello David
    In thread
    how to activate or deactivate a user-exit based a specific condition
    I have described a general strategy for implementing CMOD/SMOD exits. In your case, I would create a function group <b>ZXQSM</b> having two function modules:
    - <b>Z_EXIT_SAPLIE01_007</b> (= copy of EXIT_SAPLIE01_007) => calls the following fm
    - <b>Z_EXIT_SAPLIE01_007_SPEC</b> (-> specific exit that is executed only if certain conditions are fulfilled
    All you implementations for you editable ALV grid belong into your customer function group ZXQSM.
    Regards
      Uwe

  • How to Add Customer Class Field in WEB-IC

    Hi CRM Experts,
    Please provide me Solution on folooing queries.
    1)When ever i create a BP from WEB-IC, i need to enter Customer Class. Since this field is not available in the standard system i cant enter.
    So, Please tell me how to add new filed in the WebIC.
    Points will be Rewarded.
    Thanks in Advance.
    Regards,
    Sree

    Hi,
    See Thread entitled "Links to CRM Documentation" - there you will find a link to Interaction Center (IC) WebClient Consultants Cookbook. This document gives you all the info you need to add fields to the ICWC.
    http://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000647973&_SCENARIO=01100035870000000112&_OBJECT=011000358700003057372006E
    Regards,
    Damien
    Please award points...

  • Attached files to custom class don't show in console

    Hello, everyone,
    I've created a custom class that inherits from Service Requests.  The class basically includes a custom form and the properties associated with it.
    The request offering that references this class has a couple file attachment prompts.  They are optional.  When a new request is created from the portal and the user attaches a document, it does not show up in the "related items" tab
    of the request.  If the user attaches a file AFTER the request has been created, the file attaches just fine.  File attachments from standard service requests work just fine.
    Anyone have any idea why that is?

    I noticed something interesting in relation to this.  I'm not sure if it matters or not, so I'm including it here.
    The base SR has been extended with some additional classes/form customizations for my analysts to use.  If I look in the management pack for it, in the type projections I see this:
    <Component Path="$Context/Path[Relationship='Alias_2e98cc55_9f36_445f_bddf_2d1f61da0b71!System.WorkItemRelatesToWorkItem' SeedRole='Target']$" Alias="RelatedWorkItemSource">
                <Component Path="$Context/Path[Relationship='Alias_2e98cc55_9f36_445f_bddf_2d1f61da0b71!System.WorkItemAssignedToUser']$" Alias="RelatedWorkItemAssignedTo" />
              </Component>
    The alias is this:
    <Reference Alias="Alias_2e98cc55_9f36_445f_bddf_2d1f61da0b71">
            <ID>System.WorkItem.Library</ID>
            <Version>7.5.1561.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
    These same reference aliases are present in the inherited management pack as well, the one I'm having problems with.  
    Again, I don't know if that's relevant or not, but I thought it might be, so I included it.

  • Javascript function is not working for jsp:include.. form elements

    HI,
    I have two jsp's and i will include one jsp in the another jsp, when i do this
    i am not able to access child form elements value using javascript. the javascript
    function is defined in the main jsp. but i could able to get the main form elements
    through javascript
    here is the code.
    main.jsp
    <!--Generated by WebLogic Workshop-->
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <netui:html>
    <head>
    <title>
    Web Application Page
    </title>
    <script language="JavaScript">
    function isValidAge() {
    alert ("hage " +document[getNetuiTagName("MyForm")][getNetuiTagName("age")].value)
    alert ("swage " +document[getNetuiTagName("MyForm")][getNetuiTagName("swage")].value)
    alert ("wage "+document[getNetuiTagName("MyForm")][getNetuiTagName("wage")].value)
    </script>
    </head>
    <body>
    <p>
    <netui:form action="myaction" tagId="MyForm">
    <netui:textBox tagId="age" dataSource="{actionForm.age}"/>
    <netui:textBox tagId="swage" dataSource="{actionForm.swage}"/>
    here i am adding
    <jsp:include page="NewPage.jsp" />
    <netui:button onClick="isValidAge();" />
    </netui:form>
    </p>
    </body>
    </netui:html>
    child.jsp :
    <!--Generated by WebLogic Workshop-->
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <table class="tablebody">
    <tr class="tablebody">
    <td> wife age
    <netui:textBox tagId="wage" dataSource="{actionForm.wage}"/>
    </td>
    </tr>
    </table>
    can you tell me is this is bug in hte weblogic portal SP1.
    I am using weblogic portal SP1.
    thanks in advance
    shashi

    in this part:
    if(document.LForm.uname.value==null || document.LForm.upassword.value==null)should be:
    if(document.LForm.uname.value=="" || document.LForm.upassword.value=="")or
    if(document.LForm.uname.value.length==0 || document.LForm.upassword.value.length==0)

  • What are the benefits of converting my custom class into Data Control?

    Hi,
    I have developed my own custom class which implements no of methods for execution of Business Logic. Now I have two ways to use the same -
    *1. Create and instance of the same (wherever required) and call those methods.*
    *2. Expose the class as Data Control.*
    I want to understand which methods/technique is better and why?
    Does creating that class as Data Control provides me better performance any other benefit.
    Thanks in Advance,
    Amit

    Hi,
    1. You use this if you don't want to use ADF bindings to access the business logic (e.g. to build input forms or table for it)
    2. You use this when you want to work with ADF. Additional benefits you gain is that you can specify UI control hints on the generated metadata, apply validation rules that are consistently applied to all uses of the POJO class. In addition you don't need to handle class instantiation and dismissal yourself anymore as the ADF framework takes care of it.
    The base line though is "no data control - no ADF binding"
    Frank

  • Validating date form element

    Operating system and version: Win 2000
    Macromedia product and version: DW8
    Browser and version: IE7
    Steps to reproduce:
    1) Add a form
    2) Name a text form element named: <%= (iCount &
    ".Qty") %>
    3) Add a button
    4) Add a date validation, or better said .. try to.
    The form element is not listed in the form, form elements
    NEEDS to be named
    as above (<%= (iCount & ".Qty") %>)
    I even tried renaming the element to say 'date', it worked, I
    apply the
    validation and then on the code replace 'date' for '<%=
    (iCount & ".Qty")
    %>', but it doesnt work.
    I am using ASP/VB with MS SQL 2000
    How should I solve this ? I cannot change the name of the
    element and need
    to validate that the element is a date (mm/dd/yyyy).
    Bottom line: While the element is named <%= (iCount &
    ".Qty") %> I
    cannot apply a validation to it, tried several extensions,
    none work.
    Please advice,
    Alejandro

    I want to have control over certain 'dimension type of' columns in the classic report / tabular form with APEX_ITEM.* in the sql for the report while some of the columns are from Collection with their collection column names. C001, C002 etc..
    ...clips
    SELECT
    APEX_ITEM.SELECT_LIST_FROM_LOV(35
    ,C035,'LOV_ANIMALS'
    ,'style="width:50px"','YES',NULL,NULL
    ,'f35_' || LPAD (seq_id, 4, '0'),NULL) animals
    ,to_number(c001) c001
    ,to_number(c002) c002
    FROM apex_collections WHERE collection_name = 'SLEEPY_ANIMAL'
    ...clips
    When there are several columns in the report, it is easier to maintain C001...columns appearance in the Report Attributes-->Column Attributes.
    Oh yes, I have adapted Denes dynamic cascading lov for tabular forms which is the reason for having the "APEX_ITEM..." in the query and from some blog I read that it is very good to toss those 'dimension' type of columns to high-end numbers in the collection, so there will be space for the entry columns.
    E.g. firstrow in the tabular form
    c035 -- animals --> f35 --> f35_0001 (select list with lov LOV_ANIMALS)
    c001 -- "what ever I have said in Column attributes"--> f01 --> f01_0001 (text area, editable column)
    c002 -- "what ever I have said in Column attributes"--> f02 --> f02_0001 (text area, editable column)
    So the numbering is the same for the www-form and collection columns.
    Everything is ok if the columns c001 and c002 are editable e.g. 'text area' type, but if I change c001 to 'Display..' type then the order for item_id's change.
    c035 -- animals --> f35 --> f35_0001
    c001 -- "what ever I have said in Column attributes" (display as text (escape special chars...))
    c002 -- "what ever I have said in Column attributes"--> f01 --> f01_0001
    So now the collection column c002 accidentally is mapped to forms f01-column while I might assume it is f02.
    rgrds Paavo

  • Error referencing a Struts-Form element from a JavaScript function.

    As shown below, when referencing the form element named 'custRegion', from the JavaScript function, I get an error msg - document.forms[0].custRegion has no properties.
    It appears that this form-element, which also is present in the logic tag is not visible - is it because I'm referencing it incorrectly...
    <SCRIPT> function setRegion() { var theRegion= 'Western'
    document.forms[0].custRegion.value=theRegion; } </SCRIPT>
    <logic:iterate id="customer" name="customerForm" property="customers" >
    <html:text name="customer" property="custRegion"/>
    <html:select name="customer" property="custState" size="1" onchange="setRegion()">
    <html:option value="1"> California </html:option>
    <html:option value="2"> Arizona </html:option>
    </html:select>
    </logic:iterate>

    Here's a quick example of what may help you. It simply disables the select box and slides in a new text box. Nevertheless, it shows you that you accessed a struts property by name.
    struts code:
    <html:select property="customerRegion">
            <html:option value="-1">Unknown</html:option>
            <html:option value="0">Western</html:option>
    </html:select>
    //quick & dirty textbox for testing.  you'll probably want <html:text ... here instead.
    <input type="checkbox"
           onclick="disableSelectAddTxt(document.YOUR_FORM['customerRegion'], this.checked)" />
    Check box to replace select pull-down  
          <div id="setTBox"></div>javascript:
    function disableSelectAddTxt(selectBoxName, disableIt)
        var setTBoxName = selectBoxName;
        //alert('You passed me ' +setTBoxName+ ' and' +disableIt);
        selectBoxName.disabled = disableIt;
        var setTBox = document.getElementById("setTBox");
        if (disableSelect == true) {
            setTBox.innerHTML = "<input type=\"text\" name="+setTBoxName+ "size=\"10\">";
        if (disableSelect == false) {
            setTBox.innerHTML = "";
      hope this helps.

  • Creating thread (service)? in storage nodes using my custom classes?

    Is it possible to create one's own thread in a storage node - say, by defining a service with a custom class?
    The service configuration element states
    +"<service-component>      Required      Specifies either the fully qualified class name of the service or the relocatable component name relative to the base Service component. "+
    I have tried specifying my own class (fully qualified class name) here, which is in the classpath and implements com.tangosol.net.InvocationService but it is never loaded, and throws the following exception into my app when it calls CacheFactory.getService(name):
    Exception in thread "main" java.lang.IllegalArgumentException: Unknown service type: Invocation
    at com.tangosol.coherence.component.net.Cluster.ensureService(Cluster.CDB:65)
    at com.tangosol.coherence.component.util.SafeCluster.ensureSafeService(SafeCluster.CDB:14)
    at com.tangosol.coherence.component.util.SafeCluster.ensureService(SafeCluster.CDB:11)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:808)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:294)
    at com.tangosol.net.CacheFactory.getService(CacheFactory.java:644)
    Is this the wrong way to do it? Is there another way (other than something ugly like creating a thread in an invocable)?
    Thanks

    Hi
    Can you explain what you are trying to accomplish in more detail? Are you trying to run a background thread on the member that owns the data?
    In any case your really shouldn't be adding new service types or service components in the cluster configuration file. See this thread Re: <service-name> tag in config XML file
    thanks
    Paul

Maybe you are looking for