JQuery sharepoint lookup value neighbouring column

Help the code is necessary JQUERY.
2 columns in the Title and Another list are everything hi, it is necessary in case of a value choice from the Ttile field, in other field to add value from the Another column i.e. that it turned out so we select User1, there is Privet1. All many thanks who
will help, very urgently.

Hi,
Can you provide more details about your requirement? I’m not quite clear about how this solution would work for the end users.
Best regards,
Patrick
Patrick Liang
TechNet Community Support

Similar Messages

  • [Forum FAQ] SharePoint 2013: Extracting values from a multi-value enabled lookup column and merge values to a multi-value enabled column

    For some business requirements, users want to extract values from a multi-value enabled lookup column
    and add items to another list based on each separate value. In contrast, others want to find duplicate values in the list and merge associated values to a multi-value enabled column and then
    add items to another list based on the merged value. All of these can be achieved using SharePoint Designer 2013 Workflow.
    How to extract values from a multi-value enabled lookup column and add items to another list based
    on each separate value using SharePoint Designer 2013.
    Important actions: Loop Shape; Utility Actions
    Three scenarios
    Things to note
    Steps to create Workflow
    How to merge values to a multi-value enabled column and add item to another list based on the
    merged value using SharePoint Designer 2013.
    Important actions: Call HTTP Web Service; Build Dictionary
    Things to note
    Steps to create Workflow
    How to
    extract values from a multi-value enabled lookup column and
    add items to another list based on each separate value using SharePoint Designer 2013.
    For example, they have three lists as below. They want to
    extract values from the Destinations column
    in Lookup2 and add items to Lookup3 based on each country and set Title to current item: ID.
    Lookup1:
    Title (Single line of text)
    Lookup2:
    Title (Single line of text), Destinations (Lookup; Get information from: Lookup1 in Title column).\
    Lookup3:
    Title (Single line of text), Country (Single line of text).
    Important action
    1. Loop Shape: SharePoint Designer 2013 support two types of loops: loop n times and loop with condition.
    Loops must also conform to the following rules:
    Loops must be within a stage, and stages cannot be within a loop.
    Steps may be within a loop.
    Loops may have only one entry and one exit point.
    2. Utility Actions: It contains many actions, such as ‘Extract Substring from Index of String’ and ‘Find substring in String’.
    Three scenarios
    We need to loop through the string returned from the look up column and look for commas. There are three
    scenarios:
    1.  No comma but string is non-empty so there is only one country.
    2.  At least one comma so there is at least two or more countries to loop.
    3.  In the loop we have consumed all the commas so we have found the last country. 
    Things to note
    There are two things to note:
    1. "Find string in string (output to Variable:index)"  will return -1 if doesn't find
    the searched for string.
    2. In the opening statement "Set Variable: Countries to Current Item:Destinations" set the return
    field as  "Lookup Values, Comma Delimited".
    Steps to create Workflow
    Create a custom list named Lookup1.
    Create a custom list named Lookup2, add column: Destinations (Lookup; Get information from: Lookup1 in Title column).
    Create a custom list named Lookup3, add column: Country (Single line of text).
    Create a workflow associated to Lookup2.
    Add conditions and actions:
    Start the workflow automatically when an item is created.
    Add item to Lookup2, then workflow will be started automatically and create multiple items to lookup3.
    See the below in workflow History List:
    How to merge values to a multi-value enabled column and add item to another list based on the
    merged value using SharePoint Designer 2013
    For example, they have three lists as below. They want to find duplicate values in the Title column in
    Lookup3 and merge country column to a multi-value enabled column and then add item to lookup2 and set the Title to Current Item: Title.
    Lookup1:
    Title (Single line of text)
    Lookup3:
    Title (Single line of text), Country (Single line of text).
    Lookup2:
    Title (Single line of text), Test (Single line of text).
    Important actions
    "Call HTTP Web Service"
    action: In SharePoint 2013 workflows, we can call a web service using a new action introduced in SharePoint 2013 named Call HTTP Web Service. This action
    is flexible and allows you to make simple calls to a web service easily, or, if needed, you can create more complex calls using HTTP verbs as well as allowing you to add HTTP headers.
    “Build Dictionary"
    action:
    The Dictionary variable type is a new variable type in the SharePoint 2013 Workflow.
    The following are the three actions specifically designed for the Dictionary variable type: Build Dictionary, Count Items in a Dictionary and Get an Item from a Dictionary.
    The "Call HTTP Web Service" workflow action would be useless without the new "Dictionary" workflow action.
    Things to note
    The
    HTTP URI is set to https://sitename/_api/web/lists/GetByTitle('listname')/items?$orderby=Id%20desc and the HTTP method is set to “GET”. Then the list will be sort by Id in descending order.
    Use Get
    d/results(0)/Id form
    Variable: ResponseContent (Output to
    Variable: maxid) to get the Max ID.
    Use Set
    Variable: minid to Current List:ID to get the Min ID.
    Use Copy from
    Variable: destianation , starting at
    1 (Output to
    Variable: destianation) to remove the space.
    Steps to create Workflow
    Create a custom list named Lookup1.
    Create a custom list named Lookup2, add column: Test (Single line of text).
    Create a custom list named Lookup3, add column: Country (Single line of text).
    Create a workflow associated to Lookup3.
    Add a new "Build Dictionary" action
    to define the http request header:
    Add a Call HTTP Web Serviceaction, click on
    this and paste your http request.
    To associate the
    RequestHeader variable, select the Call action property,
    set the
    RequestHeaders property to
    RequestHeader:
    In the Call action, click on
    response and associate the response to a new
    variable: ResponseContent (of type Dictionary).
    After the Call action add Get item from Dictionary action to get the Max ID.
    Add Set Workflow Variable action to get the Min ID.
    Add Loop Shape (Loop with Condition) to get all the duplicate titles and integrate them to a string.
    Create item in Lookup2.
    The final Stage should look like this:
    Start the workflow automatically when an item is created.
    Add item to Lookup3, then workflow will be started automatically and create item to lookup2.
    See the below in workflow History List:
    References
    SharePoint Designer 2013 - Extracting values from a multi-value enabled lookup column into a dictionary as separate items:
    http://social.technet.microsoft.com/Forums/en-US/97d34468-1b53-4741-88b0-958472f8ca9a/sharepoint-designer-2013-extracting-values-from-a-multivalue-enabled-lookup-column-into-a
    Workflow actions quick reference (SharePoint 2013 Workflow platform):
    http://msdn.microsoft.com/en-us/library/jj164026.aspx
    Understanding Dictionary actions in SharePoint Designer 2013:
    http://msdn.microsoft.com/en-us/library/office/jj554504.aspx
    Working with Web Services in SharePoint 2013 Workflows using SharePoint Designer 2013:
    http://msdn.microsoft.com/en-us/library/office/dn567558.aspx
    Calling the SharePoint 2013 Rest API from a SharePoint Designer Workflow:
    http://sergeluca.wordpress.com/2013/04/09/calling-the-sharepoint-2013-rest-api-from-a-sharepoint-designer-workflow/

    GREAT info, but it may be helpful to note that when replacing a portion of the variable "Countries" with a whitespace character, you may cause the workflow to fail in a few specific cases (certain lookup fields will not accept this and will automatically
    cancel).  I only found this out when recreating your workflow on a similar, but much more complex list set.  
    To resolve this issue, I used another utility action (Extract Substring from Index of List) to clear out the whitespace.  I configured it as "Copy from
    Variable: Countries, starting at
    1 (Output to Variable: Countries), which takes care of this issue in those few cases.
    Otherwise, WOW!  AWESOME JOB!  Thanks!  :)

  • PowerShell: Update SharePoint multiple value lookup column?!

    Hi.
    I have some PowerShell scripts that access, update and insert data into various SharePoint 2010 lists. This all works nicely but there is one thing I'm having trouble with. I want to populate a lookup column in a list with multiple values. The column allows
    multiple values and has many such records inserted manually - but I cannot do this using PowerShell. I can update the lookup column using a single "ID" lookup value - but not with multiple values.
    I cannot find any documentation on how to do this using PowerShell. I have seen some examples (C#?) but there's little help in them.
    Any suggestions?
    Thank you,
    Markus
    Markus Sveinn Markusson

    Well, being impatient in nature, I did a lot of browsing and searching - and finally found a solution that works for me - in this thread:
    http://social.technet.microsoft.com/Forums/en/winserverpowershell/thread/3788a0ff-7011-4aea-bcc6-96a276a50e60. Adapted
    to my code it looks like this:
    $spAssignment = Start-SPAssignment
    $spList = (Get-SPWeb -identity
    http://site.domain.com -AssignmentCollection $spAssignment).Lists["Tickets"]
    $spNew = $spList.Items.Add()
    $spNew["Title"] = $Title
    $spNew["Assigned To"] = $AssignID
    $spNew["Description"] = $Descr
    $spNew["Priority"] = $Priority 
    #----- Begining of "solution"
    $lookupentry1 = New-Object Microsoft.Sharepoint.SPFieldLookupValue(1,"Service 1")
    $lookupentry2 = New-Object Microsoft.Sharepoint.SPFieldLookupValue(2,"Service 2")
    $lookupentry3 = New-Object Microsoft.Sharepoint.SPFieldLookupValue(3,"Service 3")
    $multientry = New-Object Microsoft.Sharepoint.SPFieldMultiChoiceValue($null)
    $multientry.Add($lookupentry1)
    $multientry.Add($lookupentry2)
    $multientry.Add($lookupentry3)
    $spNew["Service"] = $multientry
    #----- End of "solution"
    $spNew.Update()
    Regards,
    Markus
    Markus Sveinn Markusson

  • SSIS Package : While Extracting Sharepoint Lookup column, getting error 'Cannnot convert between unicode and non-unicode string data types'

    Hello,
    I am working on one project and there is need to extract Sharepoint list data and import them to SQL Server table. I have few lookup columns in the list.
    Steps in my Data Flow :
    Sharepoint List Source
    Derived Column
    its formula : SUBSTRING([BusinessUnit],FINDSTRING([BusinessUnit],"#",1)+1,LEN([BusinessUnit])-FINDSTRING([BusinessUnit],"#",1))
    Data Conversion
    OLE DB Destination
    But I am getting the error of not converting between unicode and non-unicode string data types.
    I am not sure what I am missing here.
    In Data Conversion, what should be the Data Type for the Look up column?
    Please suggest here.
    Thank you,
    Mittal.

    You have a data conversion transformation.  Now, in the destination are you assigning the results of the derived column transformation or the data conversion transformation.  To avoid this error you need use the data conversion output.
    You can eliminate the need for the data conversion with the following in the derived column (creating a new column):
    (DT_STR,100,1252)(SUBSTRING([BusinessUnit],FINDSTRING([BusinessUnit],"#",1)+1,LEN([BusinessUnit])-FINDSTRING([BusinessUnit],"#",1)))
    The 100 is the length and 1252 is the code page (I almost always use 1252) for interpreting the string.
    Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com

  • Lookup value not getting populated...

    I am using following xml code (copy.asmx > method CopyIntoItems). Per Microsoft
    http://msdn.microsoft.com/en-us/library/websvccopy.copy.copyintoitems(v=office.14).aspx I should be able to update lookup fields value as well because Lookup list is on the same subsite and both source and target libraries are on the same sub-site as well.
    Any idea? Item gets copies and all the columns get populated except the lookup column. I verified that the ID and value matches for the lookup value.
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="htthttschemas.xmlsoap.org/soap/envelope/" xmlns:m="schemas.microsoft.com/sharepoint/soap/">
    <soap:Header>
    </soap:Header>
    <soap:Body>
    <m:CopyIntoItems>
    <m:SourceUrl>http://internal.col.com/sales/bymonth/Active/0973410.pdf</m:SourceUrl>
    <m:DestinationUrls>
    <m:string>http://internal.col.com/sales/bymonth/NonActive/0973410.pdf</m:string>
    </m:DestinationUrls>
    <m:Fields>
    <m:FieldInformation Type="Text" DisplayName="Sales Code" InternalName="SalesID" Value="99999"></m:FieldInformation>
    <m:FieldInformation Type="Text" DisplayName="Sales Person Name" InternalName="FullName" Value="TEST, John S."></m:FieldInformation>
    <m:FieldInformation Type="Choice" DisplayName="FileSection" InternalName="PersonnelFileSection" Value="1- New Hire Paperwork, ECA, Termination, LOA"></m:FieldInformation>
    <m:FieldInformation Type="Choice" DisplayName="FileCategory" InternalName="PersonnelFileCategory" Value="Termination Paperwork"></m:FieldInformation>
    <m:FieldInformation Type="Text" DisplayName="Year" InternalName="Record_x0020_Year" Value="2014"></m:FieldInformation>
    <m:FieldInformation Type="DateTime" DisplayName="Effective Date" InternalName="Anniversary" Value="04/22/2014 00:00:00"> </m:FieldInformation>
    <m:FieldInformation Type="Choice" DisplayName="Status" InternalName="Current_x0020_Status" Value="Terminated"></m:FieldInformation>
    <m:FieldInformation Type="Lookup" DisplayName="AreaCode" InternalName="AreaCode" Id="cdae6ca0-d49c-4971-a580-2adcd7a282f1" Value="4;#1795004"></m:FieldInformation>
    <m:FieldInformation Type="Text" DisplayName="Title" InternalName="Title" Value="TEST"></m:FieldInformation>
    </m:Fields>
    <m:Stream>base64Binary</m:Stream>
    </m:CopyIntoItems>
    </soap:Body>
    </soap:Envelope>

    How many values are pulled in the lookup column?
    Also thourgh UI are you able to see values for the lookup column.
    Please ensure that you mark a question as Answered once you receive a satisfactory response.

  • Filter lookup values of a lookup field

    hello ,
    I have a lookup field which is mapped to the title field of the same list and i would like to filter returned values so that i edit an item i want that the title of the current edited item dont show in the lookup value.
    How to achieve my requirement ?
    Thanks

    One way you can do it by using javascript added to your new or edit form. Add a content editor WP to the new/edit form and use javascript to bind an onchange event on the form control for the lookup field.
    Here is a blog post on how to implement this using JS:
    http://www.codeproject.com/Articles/203818/SharePoint-Filtering-Lookup-column-using-Java
    Thanks, Ransher Singh, MCP, MCTS | Click Vote As Helpful if you think that post is helpful in responding your question click Mark As Answer, if you think that this is your answer for your question.

  • Inplview.aspx only seems to do filter by lookup value

    Hi,
    I have a xslt list view webpart on a DispForm of a list, where the Xslt webpart takes a filter value from the DispForm webpart. The filter is applied to a lookup column.
    If I click the edit link to toggle Quick Edit mode and then I click stop a request is made to inplview.aspx to get the rows to be displayed in the webpart. This request has the details of the filter in the query string parameters, in the following way:
    FilterField1=LookupFieldInternalName&FilterValue1=4&FilterLookupId1=1
    I understand here that the FilterLookupId1=1 parameter means that the value 4 should be interpreted as an Id and not as a value, however inplview.aspx seems to ignore this, and returns an empty result set every time this request is made.
    To prove this I have made a request using Fiddler to the same URL just replacing the Id 4 with the actual field value in the parameters and it works. I got the proper row results even if I had the FilterLookupId1=1 parameter in the query (and also if
    I removed it).
    This looks like a bug for me, and would be really great if it would get fixed.
    In the meanwhile I'm open for workarounds. The best that I was able to come up with so far was to reload the page without the hash in the URL every time the 'Stop' is pressed, it's not a really smooth user experience, but still better than having rows disappear.

    Hi Qiao Wei,
    Thank you for your reply.
    As you mentioned the filter itself works fine, the problem occurs when I use the quick-edit (grid) mode to edit the items of the webpart. What I meant is to press the edit button belonging to this webpart and then the stop, see on image:
    And as you mention the filtering with query string that is exactly how I also understood it should work, but it doesn't, at least not for me.
    I did try it on the AllItems view also, with the same results. Here is what I did:
    1) Opened an AllItems page of list that has a lookup column visible there
    2) Pressed the previously mentioned edit and stop buttons, to get the InplviewHash in the URL. This step added this to the URL: #InplviewHash826945a5-86c5-4109-a03a-df4b5cd3d0dc=
    3) I have added this to the URL: FilterField1=fieldinternalname&FilterValue1=lookupId&FilterLookupId1=1 (Of course fieldinternalname and lookupId replaced with valid values)
    4) Pressed ENTER and all of the items disappeared from the view
    5) Now I replaced the lookupId in the URL with the lookup value (a string instead of a number) (Note that I didn't even had to remove &FilterLookupId1=1 from the query string)
    6) Pressed ENTER and the items reappeared correctly filtered.
    Performing these steps confirms me once again that SharePoint ignores the FilterLookupId1=1 query string parameter.

  • VLOOKUP not reading lookup value correctly

    Hi,
    I'm having a problem with my VLOOKUP. For my lookup value, I'm using a cell containing a RANDBETWEEN so that whenever I refresh with F9, I would get a new number in the RANDBETWEEN cell, which will then make VLOOKUP show the cell corresponding to the newly
    generated number.
    This isn't exactly what I did, but this is an example of the basic gist of what I was trying to do.
    On Worksheet A, I had Column A list numbers 1 through 12, while Column B had January through December.
    On Worksheet B, I had Cell A1 contain RANDBETWEEN(1,12) and Cell B1 contain VLOOKUP(A1,'Worksheet A'!$A$1:$B$12,2)
    So, when I pressed F9, I would be able to get RANDBETWEEN to generate a random number between 1 and 12, and the VLOOKUP would generate the corresponding name of the month.
    However, when I tried this, the random numbers continued to be generated, but the VLOOKUP did not keep up with the new numbers being generated. What did I do wrong? I tried using my file on Onedrive's version of Excel as well as OpenOffice Calc, and none
    of them are working.
    As noted in my username, I am still in the beginning stages of learning Excel. So, if I'm doing something stupid, please be easy on me...
    Thank you for your time.

    Could you create a stripped-down copy of the workbook (without sensitive information) and make it available through one of the websites that let you upload and share a file, such as Microsoft OneDrive (https://onedrive.live.com),
    FileDropper (http://filedropper.com) or DropBox (http://www.dropbox.com). Then post a link to the uploaded and shared file here.
    Or register at www.eileenslounge.com (it's free) and post a message in the Excel forum. You can attach files up to 250 KB to a post there (zipped if necessary).
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Group by Clause displaying all lookup values

    Hello Friends
    I've a simple table with columns namely Date, Reason, Product and Count and the sample data is displayed below.
    ==========================
    Date Reason Product Count
    ==========================
    06/08/2012 Reason1 Home 1
    07/08/2012 Reason2 Motor 1
    08/08/2012 Reason1 Home 1
    09/08/2012 Reason3 Home 2
    10/08/2012 Reason1 Home 1
    06/08/2012 Reason5 Home 1
    ===========================
    In total I've 5 reason lookup values from Reason1 through to Reason5, but the above table consists of few of them.
    I would like to diplay result per day and take an example of 6th August, I want to display below result, i.e. display all 5 reason looksup and assign zero count if there are no records for that day.
    =====================================
    DATE REASON HOME_COUNT MOTOR_COUNT
    =====================================
    06/08/2012 Reason1 1 0
    06/08/2012 Reason2 0 1
    06/08/2012 Reason3 0 0
    06/08/2012 Reason4 0 0
    06/08/2012 Reason5 1 0
    =====================================
    If we write group by clause, missing reasons like Reason3 and Reason4 will not be displayed in the result set.
    And I've tried to write multiple UNION ALL queries to get the above result which works fine, but if there 100 lookup values, I do not want to write 100 Union queries.
    Please let me know if you have any analytical functions to display the end results?
    Thanks
    Murali.
    Edited by: Muralidhar b on Aug 19, 2012 8:17 PM

    If you followed relational design, you have reason lookup table. If you do not have it you should create one. Also, date is reserved word and count is a keyword, so do not use them as column names. Then use outer join:
    SQL> create table tbl as
      2  select to_date('06/08/2012','dd/mm/yyyy') dt,'Reason1' reason,'Home' product,1 qty from dual union all
      3  select to_date('07/08/2012','dd/mm/yyyy'),'Reason2','Motor',1 from dual union all
      4  select to_date('08/08/2012','dd/mm/yyyy'),'Reason1','Home',1 from dual union all
      5  select to_date('09/08/2012','dd/mm/yyyy'),'Reason3','Home',2 from dual union all
      6  select to_date('10/08/2012','dd/mm/yyyy'),'Reason1','Home',1 from dual union all
      7  select to_date('06/08/2012','dd/mm/yyyy'),'Reason5','Home',1 from dual
      8  /
    Table created.
    SQL> create table reason_list as
      2  select  'Reason' || level reason from dual connect by level <= 5
      3  /
    Table created.
    SQL> select  d.dt,
      2          r.reason,
      3          nvl(
      4              sum(
      5                  case product
      6                    when 'Home' then qty
      7                  end
      8                 ),
      9              0
    10             ) home_qty,
    11          nvl(
    12              sum(
    13                  case product
    14                    when 'Motor' then qty
    15                  end
    16                 ),
    17              0
    18             ) motor_qty
    19    from      (
    20               select  min_dt + level - 1 dt
    21                 from  (
    22                        select  min(dt) min_dt,
    23                                max(dt) max_dt
    24                          from  tbl
    25                       )
    26                 connect by level <= max_dt - min_dt + 1
    27              ) d
    28          cross join
    29              reason_list r
    30          left join
    31              tbl t
    32            on (
    33                    t.dt = d.dt
    34                and
    35                    t.reason = r.reason
    36               )
    37    group by d.dt,
    38             r.reason
    39    order by d.dt,
    40             r.reason
    41  /
    DT        REASON                                           HOME_QTY  MOTOR_QTY
    06-AUG-12 Reason1                                                 1          0
    06-AUG-12 Reason2                                                 0          0
    06-AUG-12 Reason3                                                 0          0
    06-AUG-12 Reason4                                                 0          0
    06-AUG-12 Reason5                                                 1          0
    07-AUG-12 Reason1                                                 0          0
    07-AUG-12 Reason2                                                 0          1
    07-AUG-12 Reason3                                                 0          0
    07-AUG-12 Reason4                                                 0          0
    07-AUG-12 Reason5                                                 0          0
    08-AUG-12 Reason1                                                 1          0
    DT        REASON                                           HOME_QTY  MOTOR_QTY
    08-AUG-12 Reason2                                                 0          0
    08-AUG-12 Reason3                                                 0          0
    08-AUG-12 Reason4                                                 0          0
    08-AUG-12 Reason5                                                 0          0
    09-AUG-12 Reason1                                                 0          0
    09-AUG-12 Reason2                                                 0          0
    09-AUG-12 Reason3                                                 2          0
    09-AUG-12 Reason4                                                 0          0
    09-AUG-12 Reason5                                                 0          0
    10-AUG-12 Reason1                                                 1          0
    10-AUG-12 Reason2                                                 0          0
    DT        REASON                                           HOME_QTY  MOTOR_QTY
    10-AUG-12 Reason3                                                 0          0
    10-AUG-12 Reason4                                                 0          0
    10-AUG-12 Reason5                                                 0          0
    25 rows selected.
    SQL> SY.

  • Urgent! Display lookup value and return value at the same time.

    We are using pop up lov.
    How can we display lookup value and return value at the same time. let me claer..
    Our lov query is like fallowing
    select dname, deptno from dept
    we want to return deptno column into a database bind text item and dname column into a display item (look up)
    can we do it (we need to do)
    thanks for your help.

    We did it .
    But pop up key lov (display description return value ) property doesn't appear for tabular forms item.
    (Report Attributes pages Tabular Form Element section display As property list)
    can we set or not.
    Thank you.

  • Values from columns of datatable...

    Hi guys,
    i'm working with my jsf application to create a datatable.
    It works well,but now i've added a commandlink button to dynamically adding a new column(i use this datatable for input data,each row is an experiment).
    It works fine,column is correctly added.
    At the end of each row of my datatable i've a submit button to send values of the row into db.
    My question is:
    My datatable has 5 fixed fields and other dinamic fields that user can add with button. My 5 fixed values have to go into a table(and it works) and i want that dynamic values(that use has added) go into another table,each one as a different row.
    Example
    usa italy french england japan rome tokyo
    i want usa italy french englan japan go into a table(as a row) and rome tokio goes into another table
    rome
    tokio(different rows).
    How can i do it?
    My problem is i'm not able to binding the dynamic input fields to bean....can you help me?
    Here is my class
    public class BiosamplesTable {
         private List biosamples= new ArrayList();
         private HtmlDataTable biosampleDataTable;
    private int autokey2;
         private Biosample biosampleItem;
         private int nrows;
         private DataModel mColumns;
         private int load=0;
         private String columnLabel;
         public HtmlDataTable getBiosampleDataTable()  {
              return biosampleDataTable;
         public void setBiosampleDataTable(HtmlDataTable biosampleDataTable) {
              this.biosampleDataTable = biosampleDataTable;
         public Biosample getBiosampleItem() {
              return biosampleItem;
         public void setBiosampleItem(Biosample biosampleItem) {
              this.biosampleItem = biosampleItem;
         public List getBiosamples() throws Exception {
              loadBiosamples();
              // Reload after every request.
              return biosamples;
         public void setBiosamples(List biosamples) {
              this.biosamples = biosamples;
         public void loadBiosamples() throws Exception {
              if (load==0){
              for (int i = 0; i < nrows; i++) {
                   Biosample biosample = new Biosample();
                   biosamples.add(biosample);
                   setBiosamples(biosamples);
                   load=1;
              else
                   setBiosamples(biosamples);
         public int getNrows() {
              return nrows;
         public void setNrows(int nrows) {
              this.nrows = nrows;
         public DataModel getColumnDataModel()
             if (mColumns == null)
               String[] result = new String[]{};//sono le colonne di partenza,in questo caso 1!!!
               mColumns = new ListDataModel(new ArrayList(Arrays.asList(result)));
             return mColumns;
         public void addColumn(ActionEvent e)
             if(columnLabel!=null);//metter l'if
               List columns = (List) getColumnDataModel().getWrappedData();
               columns.add(columnLabel);
         public String getColumnLabel(){
              return columnLabel;
         public void setColumnLabel(String columnLabel){
              this.columnLabel=columnLabel;
    }and this is my jsp page
    <t:dataTable
        value="#{biosamplesTable.biosamples}"
        var="biosampleItem"
         binding="#{biosamplesTable.biosampleDataTable}" border="3" bgcolor="pink" >
        <h:column >
            <f:facet name="header">
                <h:outputText value="Organism"/>
            </f:facet>
           <h:selectOneMenu value="#{biosampleItem.organism}">
                <f:selectItems value="#{biosample.selectOrganism}"/>
           </h:selectOneMenu>
        </h:column>
        <h:column>
            <f:facet name="header">
                <h:outputText value="Treatment Protocol" />
            </f:facet>
            <h:inputText value="#{biosampleItem.treatmentProtocol}" />
        </h:column>
        <h:column >
            <f:facet name="header">
                <h:outputText value="Extraction Method" />
            </f:facet>
            <h:inputText value="#{biosampleItem.extractionMethod}" />
        </h:column>
        <h:column >
            <f:facet name="header">
                <h:outputText value="Label"/>
                </f:facet>
            <h:inputText value="#{biosampleItem.label}" />
        </h:column>
        <h:column>
            <f:facet name="header">
                <h:outputText value="Hybridation" /></f:facet>
            <h:inputText value="#{biosampleItem.hybridation}" />
        </h:column>
        <h:column>
            <f:facet name="header">
                <h:outputText value="Amplification" /></f:facet>
            <h:inputText value="#{biosampleItem.amplification}" />
        </h:column>
        <t:columns value="#{biosamplesTable.columnDataModel}" var="column"  >
         <f:facet name="header">
        <h:panelGroup>
        <h:outputText value="#{column}" />
        <h:commandLink actionListener="#{biosamplesTable.removeColumn}">
        <h:outputText value="Elimina"/>
        </h:commandLink>
        </h:panelGroup>
        </f:facet>
             <h:inputText value="#{biosampleProperties.value}" />
        </t:columns>
        <h:column>
            <f:facet name="header">
                <h:outputText value="Actions" />
            </f:facet>
            <h:commandLink
            value="Invia dati biosample" actionListener="#{biosamplesTable.editBiosample}" id="editBiosample">
            </h:commandLink>
        </h:column>
        </t:dataTable>     i want the values of each added column goes as different row into a biosampleProperties table....
    Thanks..

    u can't achieve this with DataTable u need tu use JSTL ...exactly the
    C-Tag
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

  • CE function to get distinct values from Column table

    Hi All,
    Could you please let me know the appropriate CE function to get the distinct values from column table.
    IT_WORK = SELECT DISTINCT AUFNR FROM :IT_WO_DETAILS;
    Thank you.

    Hi,
    If you have 10g, you can use Model( with model performance is better than connect by )
    Solution
    ========================================================================
    WITH t AS
    (SELECT '0989.726332, 1234.567432, 3453.736379, 3453.736379, 0989.726332, 3453.736379, 1234.567432, 1234.567432, 0989.726332'
    txt
    FROM DUAL)
    SELECT DISTINCT TRIM(CHAINE)
    FROM T
    MODEL
    RETURN UPDATED ROWS
    DIMENSION BY (0 POSITION)
    MEASURES (CAST( ' ' AS VARCHAR2(50)) AS CHAINE ,txt ,LENGTH(REGEXP_REPLACE(txt,'[^,]+',''))+1 NB_MOT)
    RULES
    (CHAINE[FOR POSITION FROM  1 TO NVL(NB_MOT[0],1) INCREMENT 1] =
    CASE WHEN NB_MOT[0] IS NULL THEN TXT[0] ELSE REGEXP_SUBSTR(txt[0],'[^,]+',1,CV(POSITION)) END );
    =========================================================================
    Demo
    =======================================================================
    SQL> WITH t AS
    2 (SELECT '0989.726332, 1234.567432, 3453.736379, 3453.736379, 0989.726332, 3453.736379, 123
    4.567432, 1234.567432, 0989.726332'
    3 txt
    4 FROM DUAL)
    5 SELECT DISTINCT TRIM(CHAINE)
    6 FROM T
    7 MODEL
    8 RETURN UPDATED ROWS
    9 DIMENSION BY (0 POSITION)
    10 MEASURES (CAST( ' ' AS VARCHAR2(50)) AS CHAINE ,txt ,LENGTH(REGEXP_REPLACE(txt,'[^,]+',''))+1 NB_MOT)
    11 RULES
    12 (CHAINE[FOR POSITION FROM  1 TO NVL(NB_MOT[0],1) INCREMENT 1] =
    13 CASE WHEN NB_MOT[0] IS NULL THEN TXT[0] ELSE REGEXP_SUBSTR(txt[0],'[^,]+',1,CV(POSITION)) END );
    TRIM(CHAINE)
    3453.736379
    1234.567432
    0989.726332
    SQL>
    ========================================================================

  • How to get lookup value for a lookup_type and pass as a parameter in OAF

    Hi,
    I have requirement wherein I have to enable the "Add Attachment" Button only for a particular deliverable name.
    Steps I followed
    1) I have extended the corresponding Controller class.
    2) Sting str1="XYZ";
    3) Getting the attachment table bean and the deliverable name thru Data Mappings as Attachment is the built-in funtionality in OAF.
    4)Checking if the deliverable name whether it is equal to str1 or not
    Case1: If the deliverable name is not equal to str1 then I am placing the insertallowed as BOOLEAN.FALSE
    Case2:If not it will be enabled.
    5)The functionality as per the requirement is working fine.
    6)Here for str1 I have hardcoded the value initially but I need to take up the value from a lookup created for this value because may be in future if for more than one value the "Add Attachment" Button has to enabled they it will be easy to add in the look up only. No need to change the controller class.
    7) So please let me know the steps in getting the value from a lookup and have to pass the lookup values (Here str1--"XYZ","ABC","DEF") into the extended Controller Class.
    Thanks in Advance,
    Regards,
    Ramya

    Ramya,
    Here for str1 I have hardcoded the value initially but I need to take up the value from a lookup created for this value because may be in future if for more than one value the "Add Attachment" Button has to enabled they it will be easy to add in the look up only. No need to change the controller class.For this u need to iterate through the lookup values.
    Share ur existing Controller Code.
    Regards,
    Gyan

  • Workflow Activity "Lookup Value" returns An error occured while enumerating the filter using [//WorkflowData/customvalue]

    I want to generate an Accountname using EmployeeID, FirstName and LastName via a workflow.
    I'm using the Granfeldt Workflow Activity Library (https://fimactivitylibrary.codeplex.com/)
    I'm using the FIM Powershell Workflow Activity (https://fimpowershellwf.codeplex.com/)
    Steps:
    Passing the EmployeeID, FirstName and LastName to the powershell Activity, generating a logonid based on logic.
    Add-PSSnapin FIMAutomation
    $EmployeeID = $fimwf.WorkflowDictionary.EmployeeID
    $Forename = $fimwf.WorkflowDictionary.Firstname
    $Lastname = $fimwf.WorkflowDictionary.Lastname
    'logic creating a custom logonid here
       ==> This works
    Returning data back to the workflow via that powershell script:
    $fimwf.WorkflowDictionary.Add('NewAccountName',$newlogonid)
       ==> This works
     Using Lookup Value Activity to read the Workflow data and update the [//Target/AccountName] fails.
    This gives an error:
           An error occurred while enumerating the filter 'string' .
    (where string is the actual generated userid that I've got back from the powershell script. Example dab2563)
    I tried with only [//WorkflowData], then this gives the error:
          Index was outside the bounds of the array.
    Any hints to solve this?    
    Kind regards,
    David

    The Lookup Activity is for looking up an object in the FIM Service. Seems like thats not what you're trying to accomplish.
    For updating the target of the workflow, just use the built-in Function Evaluator. The Lookup WF was not built for that and it is failing because you have not specified a valid XPAth lookup filter, such as /Person[AccountName='BillG']
    Regards, Soren Granfeldt
    blog is at http://blog.goverco.com | facebook https://www.facebook.com/TheIdentityManagementExplorer | twitter at https://twitter.com/#!/MrGranfeldt

  • REP-1425 report formula DO_SQL error putting value into column

    Hi all
    I have opened a report 2.5 in Oracle9i Reports Developer and, it converted ok. However, when I run the report (paper layout), the message
    rep-1425 report formula DO_SQL error putting value
    into column. Column may not be referenced by parameter
    triggers
    appears. There are several report level formula columns and corresponding placeholder columns that are the cause of this error. The formula has the following :
    SRW.DO_SQL('SELECT RPAD(''DAILY TABLE AUDIT REPORT'',60,''.'')||TO_CHAR(SYSDATE,''DD-MON-YYYY'') INTO :REPORT_TIT FROM DUAL');
    COMMIT;
    RETURN('');
    I can't work out what this error message really means as the column, report_tit is a placeholder column and, the formula column is not a parameter trigger!! The report_tit placeholder is used as a source for a layout field. I noticed that the layout field is defined as a placeholder column in the converted report but in the reports 2.5 version, it is defined as a layout field.
    I can do a work around by replacing the SRW.DO_SQL statement with a normal PL/SQL SELECT statement. However, I wonder if anyone else has had the same problem and, if anyone can help provide an answer as to what this error really means and, also, how I can retain the SRW.DO_SQL statement and/or an alternative work around to the one that I have described.
    Thanks.
    Therese Hughes
    Forest Products Commision

    Hi again
    The firewall proved to be the problem after all! The firewall set in Reports config-files is not used for WebServices, it has to be set within the stub:
    Properties prop = System.getProperties();
    prop.put("http.proxyHost","yourProxyServer");
    prop.put("http.proxyPort","youProxyServerPort");
    I inserted this in my java-code and after some problems (see below), restarting Report Builder turned the trick, the report works now.
    Cheers
    Tino
    Here there mail I set up before I found that restarting Report Builder helped:
    Thanks for your answer, putting in the proxy-settings actually helped some - the same error message is
    popping up, but instantly and not after 10 seconds like before:
    My proxy lines look like this, I also tried "http://proxy.ch.oracle.com", but "proxy.ch.oracle.com" proved to
    be the correct syntax:
    public Float getRate(String country1, String country2) throws Exception
    Float returnVal = null;
    Properties prop = System.getProperties();
    prop.put("http.proxyHost","proxy.ch.oracle.com");
    prop.put("http.proxyPort","8080");
    URL endpointURL = new URL(endpoint);
    Call call = new Call();
    I tested the new proxy-entries by disabling the proxy preference in JDeveloper, so I could verify the added
    proxy-lines in the code work - they do. If I change the proxy to some incorrect value like
    "proxyy.ch.oracle.com", they fail.
    After unsuccessfully trying recompile and re-import of Java classes, I rebuild the report from scratch and
    stumbled over the same problem. Now the question is, whether I'm still doing something wrong with the
    proxy or whether there is another problem after passing the firewall....
    -------------------------------------------------------------------------------------------------------------

Maybe you are looking for

  • Photoshop CC - image edits very slow to update on monitor

    I need some help... I'm running Windows 7 Ultimate, 64 bit.  PC with i7-920 processor and 12 gb Memory,  Quadro FX-1800 graphics card.   Photoshop CC with all updates applied as of yesterday. When I make edits to an image, it takes sometimes 10 secon

  • Reports by Product

    i have reports by product but i need the reports for fiscal month and fiscal year.. I have seen in the analysis by default a "pick list" which asks you to month and fiscal year need to see .. That is what I need. can help me some one ?

  • Grants-Projects/Awards Reconciliation & GL

    What are the main reasons for reconciliation problems between Projects and Awards, including summary and detailed information?? Grants and GL reconciliation-main problems? The project and award segments in GL are necessary? If not, how to reconciliat

  • Subject Profile for InHouse Repair

    Dear Experts, I created a in House Repair in CRM GUI with subject for Reason, Cause and Correction Measure. When I created a In House repair in SAP CRM GUI I can see my catalog, but no in WebGUI. Which is the reason?.. I don't category, because I nee

  • Cisco7206 show command to get the chassis s/n

    Hi there, I have a partner in Canada that is trying to add a Cisco 7206VXR to smartnet and we are trying to determine the true chassis serial number.  The end customer has provided us the sh invent which gives us the main processor board s/n, and the