RE:Setting attributes of columns in listviews

Hello Jack,
please use the Debugger to find out if the object '<ListView.Column>' has
it's memory. Look also, if the Column you specify is initialized.
In most cases your application bombs if you forget the new command to some
Hope it helps
Joseph Mirwald
EMAIL: [email protected]

Hello Richard,
welcome to the forum. Please keep few things in mind:
- Choose the forum according to your topic. Your question should go to the Swing forum.
- Use the forum search on the left. Very often your question has already been asked and answered.
- Have a look in the tutorial. In your case it is [this page|] There are common examples with code.
- Whenever posting code put in code-tags (they appear after clicking on CODE)
- Post an SSCCE. Then, for example, it would be clear to us what getTextField(spinner) is doing. Now, we can only guess.

Similar Messages

  • Report Attributes: Add column link and derived column

    On the Report Attributes page (4000:420), under the Tasks list on the right side of the page, there are 2 links, "Add column link" and "Add derived column". This is the first time I am noticing them.
    The usage is clear, they add columns to the report to function either as a drill-thru link column or just a read-only derived field.
    Doing it this way does NOT modify the source query for the report region.
    Is there any benefit to using this feature versus adding a "null column_link" or "null derived_col" columns to my source query then setting attributes for those columns?

    Well, one disadvantage I can see of using the 'Add Column link' is that if I have more than 1 of such columns, they all show up as '[column link]' on the Report Attributes page with no way to tell what the underlying links are. Instead, if I were to manually add these dummy columns to my query itself, I would give them meaningful column aliases that indicated where they link to.
    Suggestion: Maybe a tooltip could be added to the Report Attributes page for such columns which indicate what the underlying link is without actually going to the Edit page for that column.

  • Possible to set a default column value to an expression?

    Is it possible to set a default column name to an expression when creating a table?
    For example, I wish to set the default value of a column to read from another table's column and do some this possible?

    Yes, you can, with trigger Before Insert for Each row
    But be carefull, you can hit the mutating table problem...

  • How to set a custom column in a workflow task.

    I'm looking for some assistance a bit with how to set a custom column in a Workflow Task.
    I have a List Workflow that starts when an item is created in a list. The workflow, platform type SharePoint 2013, starts a new task, Task1, with Content Type 1. This Content Type has a custom column called Age. Once the Task1 is completed a new task, Task2,
    with Content Type 2, starts and has the same column Age, as Task1.
    How can I populate the Age column in Task2 with the content of the Age column in Task1?
    Since I start the task by running "Assign a task to ..." Action I was thinking to copy the Age column from the Task1 to the list item that started Task1, which has a column Age as well, and then in Task2 to start another workflow - which is associated
    with the Content Type 2,  that would try to read the Age column from the list item that started Task2, which was set once Task1 was competed - I know it's complex but this is how I was thinking. 
    The problem with this approach is that I can't get a reference to the list item that started Task2 to read the Age from the list item.
    Is there a better approach? I use SharePoint Designer 2013 to design all this.
    Any assistance is appreciated.
    Thank you.

    Hello Sebastian,
    you can get the Age column from Task 1 and then update the Task 2 Age column with that value. I am not sure why you want to run another workflow on Task 2.
    You can perform below steps to set Age column from Task 1 to Task 2.
    1.  Create Task 1 using Assign a task , wait till the task is completed.
    2. Get the Age column value based on Task 1 once the task is completed.
    3.Create Task 2 using Assign a task ,  uncheck wait till the task is completed option.
    4. Update the Task 2 with Age column in Task1.
    5. Use Wait for the field to equal value , check for Task Status is completed or not.
    >>The problem with this approach is that I can't get a reference to the list item that started Task2 to read the Age from the list item.
    you can get the related item from task list item to get the main list item.
    Other option is, Use Javascript and CSOM  in task edit form to get the Age column from Task1 and prepoluate the Age value when Task2 is opened.
    Hope this helps.
    My Blog-|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Set multi user column with PowerShell used to work in 2010 but no longer works in 2013

    In SharePoint 2010 I used PowerShell to set the value of multi user people columns and it worked really well.  I attempt to use the same PowerShell to set the same column type in SharePoint 2013 and it fails.
    here is the PowerShell that I use in 2010:
    $web = Get-SPWeb "http://intranet"
    $list = $web.lists["TestList"]
    $item = $list.items.add()
    $item["Title"] = "Test multi user column"
    $users = @("Domain\user1", "Domain\user2")
    $userList = new-object Microsoft.SharePoint.SPFieldUserValueCollection
    foreach($user in $users)
    $spUser = $web.EnsureUser($user)
    $userValue = new-object Microsoft.SharePoint.SPFieldUserValue($web, $spUser.ID, $spUser.Name)
    $item["MultiUserColumn"] = $userList
    I have used this on three SharePoint 2013 farms with differing results.  On two of them I receive an error when running $item.update(): Exception calling "Update" with "0" argument(s): "Invalid look-up value.  A look-up
    field contains invalid data. Please check the value and try again."
    If I take one of the users out of the $users list then it works fine, but it will not allow multiple users to be set with PowerShell.  I can use the GUI to add more than one user but not PowerShell.
    Does anyone know if these methods have changed in 2013? I haven't been able to find anyone else with this issue.
    mmm... coffee...

    Not sure but maybe something to do with casting. Below is the code snippet from one of the blogs. Try modifying your script like below and see if still you get the error
    [Microsoft.SharePoint.SPFieldUserValueCollection]$lotsofpeople = New-Object Microsoft.SharePoint.SPFieldUserValueCollection
    $user1 = $w.EnsureUser("domain\user1");
    $user1Value = New-Object Microsoft.SharePoint.SPFieldUserValue($w, $user1.Id, $user1.LoginName)
    $user2 = $w.EnsureUser("domain\user2");
    $user2Value = New-Object Microsoft.SharePoint.SPFieldUserValue($w, $user2.Id, $user2.LoginName);
    $i["lotsofpeoplefield"] = $lotsofpeople;
    Reference to the link
    Geetanjali Arora | My blogs |

  • Setting attributes question

    I am trying to set attributes of a object in a for loop so that it sets the attribute as many time as there are elements in the for loop and then add the object to an array list and then after exiting the array list set the same attribute to some thing else and also add it to array list so now when I print it out the array list it should print like this....
    first item in array list// coming from for loop
    second item in array list // coming from for loop
    third item // that I am setting out of array list ....
    I am doing it like this
    Bank bank = null;
    ArrayList cchList = new ArrayList();
    flag = true;
    for (int i = 0; i < arrayList.size(); i++) {
              Cutomer cutomer = (Cutomer) arrayList.get(i);
              bank = new Bank();
         falg = false;
              bank = new Bank();
    My problem is it is printing it twice .....
    can someone tell me what I am doing wrong here

    If I understand your problem right, you're not grouping your if-statement.
    bank = new Bank();
    cchList.add(bank);should be
        bank = new Bank();

  • Set count of column in database......

    hi All,
    i just wanna to ask, it is possible that i can set count of column depends on data/input.
    for example;
    in common, when 2 column, code sql like:
    String query3 = "INSERT INTO Sheet5(Rule, Weight)" + "VALUES ('"+ finalRule+"', '"+weight+"')";but if n column, how?
    anybody knows or give me some idea to handle that..

    what do you means by using preparedStatement?
    is it like this
    String sql1 = "SELECT empno FRom emp WHERE empno = ?";
    String sql2 = "INSERT INTO emp VALUES (?,?,?,?,?,?,?,?)";
    PreparedStatement pstmt1 = conn.prepareStatement(sql1);
    PreparedStatement pstmt2 = conn.prepareStatement(sql2);
    pstmt1.setInt(1, 9999);
    ResultSet rset = pstmt1.executeQuery();
              System.out.println("The employee");
         else {
                         pstmt2.setInt(1, 99990);
         pstmt2.setString(2, "CHARLIE");
         pstmt2.setString(3, "ANALYST");
         pstmt2.setInt(4, 7566);
         pstmt2.setString(5, "01-jan-01");
         pstmt2.setFloat(6, 12000);
         pstmt2.setFloat(7, (float)10.5);
         pstmt2.setInt(8, 10);
         }so, i still need to write 8 times '?' for 8 column.
    but how if i don't know count of column?

  • Can i set only 1 column in a jtable to resize?

    I want to set only the columns with "Strings" as content to be resizable inside my jtable. and leave those which are ints, as a fixed size, but I haven't been able to find a way of setting the resizing options for a specific column...
    any ideas?

    You would need to check the column number and the data type in the column being resized and force it back to a set value if it was not a column with a string in it. Remember the user can swap the columns.

  • Set item description (column 3) in matrix problem

    Hello there,
    I try to set field Dscription (column "3") in either Quotations or SalesOrders.
    But B1 keeps popping up with Item picker list.
    This is normal behaviour when you change this field and leave (without pressing CTRL), but how can I workaround this in SDK?
    Thanks in advance.
    Edited by: Harm van der Veen on Mar 2, 2009 11:56 AM
    Version 2007A - PL 41
    Dim oCell = DirectCast(Matrix.Columns.Item("3").Cells.Item(1), Cell)
    Dim oBox = DirectCast(oCell.Specific, EditText)
    oBox.String = "Variable Item Description"

    Thanks for the answer.
    It's not the most practical and clean method but it works for now.
    Can't Freeze Form using this method however.
    Dim oCell = DirectCast(Matrix.Columns.Item("3").Cells.Item(1), Cell)
    MyApplication.SendKeys("Variable Item Description")

  • Need to add row and set attribute value on pageload

    On my page based on the pageflowscope variable value, i need to add a row for master and one row for detail viewobject and set attribute values. (Some of the attribute are LOV and Checkboxes as well)
    I am using following code to create records.....records are being added but i am not able to set the attributes
    OperationBinding ob;
    ob = ADFUtil.findOperationBinding("Create");
    ob = ADFUtil.findOperationBinding("CreateInsert3");
    I am using following code to set the attributes value
    DCIteratorBinding dc1 = ADFUtil.getBindingIterator("firstiterator");
    DCIteratorBinding dc = ADFUtil.getBindingIterator("seconditerator");
    Anything i am doing wrong here or any suggestion to try is greatly appreciated....

    Yes commit button is there and yes its also has entry in pagedef...
    When I open the same page on edit mode and i can edit regular record and save them
    Problem is that when i open the page on new mode and try to add rows on page load..... and setting values as described above.... save button somehow doesn't work...
    seems like after i add the rows on the fly, i need to refresh the binding?
    any help is greatly appreciated....
    thank you guys

  • SET command and column heading are not working

    Hi All,
    Am trying to create sql reports using SET and Column headings as given below.It's saying missing or invalid option.
    But when i execute this in SQL*PLUS it's working fine.. is this limitation in AE edition. Please advice.
    Also tried with sql script execution, still same problem.
    set pagesize 100;
    set linesize 80;
    column ename heading "employee name";
    select * from emp;

    user575819 wrote:
    Please update your forum profile with a real handle instead of "user575819".
    Am trying to create sql reports using SET and Column headings as given below.It's saying missing or invalid option.
    But when i execute this in SQL*PLUS it's working fine.. is this limitation in AE edition. Please advice.
    Also tried with sql script execution, still same problem.
    set pagesize 100;
    set linesize 80;
    column ename heading "employee name";
    select * from emp;
    SET and COLUMN are SQL*Plus client commands, not part of the SQL language, and thus they cannot be used in APEX report queries. Consult the APEX documentation for information on creating reports. If you are unfamiliar with APEX, start with the 2 Day Developer's Guide tutorial, which covers creating APEX reports.

  • Set a particular column's Color when importing a list to Excel

    Hi all,
    I am displaying a list by using REUSE_ALV_LIST_DISPLAY.
    It works fine.Now i import this List to Excel sheet by custom program to set the formatting part and for color prospect which is not working with standard Import functionality.I am using the Methods of Interface  I_OI_SPREADSHEET.
    Now my query is that how to set a particular column's Color ?
    And how to set the width of a particular column ?
    Points will be sured.
    Sanket sethi

    check this
    downloading my report output with the same color on my report to excel .
    Download alv output to an excel file

  • How to add set attribute method in webdynpro abap using code wizard.

    Hi developer,
    I am new to webdynpro abap , i have developed a small component from sap technical abap but i am not able to add the set attribute method using read context node /attribute in wizard code ,pleae guide me in solution.

    could you copy / past your code ?
    if you need help on webdynpro and your beginner, try to watch the video on internet of WebBProfessor. It's really good videos !

  • Set attribute to be mandatory in set type

    Hi! Can I confirm whether it is possible to set certain attribute fields to be mandatory in a set type? The transaction code to create set attribute and assign to the set type is COMM_ATTRSET.

    Hi SF,
    In the standard system, you cannot configure an attribute to be mandatory in a set .
    However, you can try using transaction SFAC in order to set an attribute as mandatory; I am not sure if this procedure will work for you, but is it good to take a look. Into this transaction, you cam define which fields are displayed/hidden/mandatory.
    Keep on mind that every time a set is create in transaction COMM_ATTRSET, a corresponding module pool SAPLZOM_<set type name> is created with Screen group 0100.
    I hope it helps.
    Kind Regards,
    Gabriel Santana

  • Set attribute value using plugins

    Hi Experts,
    I am facing error when setting the value of attribute in the event "OnInvestigationStartedEvent". Any suggestion to fix the issue
                Session ses = onInvestigationStartedEvent.getSessionContext().getInterviewSession().getRuleSession();
                Attribute start = ses.getGlobalEntityInstance().getEntity().getAttribute("test_start_time");
                Date start_date = new Date();
                start.setValue(ses.getGlobalEntityInstance(), start_date);
    25750 [http-apr-8080-exec-9] INFO  - User setting attribute test_start_time, entity global, instance name global, session 1 to value 7/21/13 2:17 PM
    25752 [http-apr-8080-exec-9] ERROR  - A unauthorised change to the Rule Session has been detected. A unauthorised change to the Rule Session has been detected.
      at javax.servlet.http.HttpServlet.service(
      at javax.servlet.http.HttpServlet.service(
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(
      at org.apache.catalina.core.StandardWrapperValve.invoke(
      at org.apache.catalina.core.StandardContextValve.invoke(
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
      at org.apache.catalina.core.StandardHostValve.invoke(
      at org.apache.catalina.valves.ErrorReportValve.invoke(
      at org.apache.catalina.valves.AccessLogValve.invoke(
      at org.apache.catalina.core.StandardEngineValve.invoke(
      at org.apache.catalina.connector.CoyoteAdapter.service(
      at org.apache.coyote.http11.AbstractHttp11Processor.process(
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$ Source)
      at Source)

    When working in an Interview Engine event handler, you need to use Interview Engine objects to set values. Have a look at the example "Use the OnInterviewSessionCreatedEvent to pre-seed data into a newly created session" in the "Oracle Policy Automation Developer's Guide"
    Your code should look something like:
    // get the globalInstance from a new InterviewUserData;
    InterviewUserData data = new InterviewUserData();
    InterviewEntityInstance globalInstance = data.getGlobalInstance();
    // set the test_start_time
    Date start_date = new Date();
    globalInstance.setValue("test_start_time", start_date );
    // submit the data to the Interview session.
    TransactionResult result = session.submit(data);
    Hope this helps.

Maybe you are looking for