Split a text based on delimiter and add items to a sharepoint list using SPD workflow

Hi All
I have to store repeating table data into a sharepoint list. I have developed an approach to store data into a sharepoint list using web services as mentioned at
http://www.bizsupportonline.net/infopath2007/how-to-submit-items-rows-repeating-table-infopath-sharepoint-list.htm. However this approach is working when form opened client only but when I opened it in browser this approach is giving error. Now I'm looking
to promote repeating table data by combining items will a delimiter semi-colon (;). Please let me know how can I split the promoted field value using de-limiter and add it to a sharepoint list.
Note:
I'm working on SharePoint online 2010. (I don't have sharepoint on-premise, so I can't use SharePoint Object Model)
If anybody know how to deal with this, please let me know.
Thank you in advance.

Hi Chuchendra,
According to your description, my understanding is that you want to split the promoted field value in InfoPath form which was combined using semi-colon and add it to a SharePoint list.
I recommend to submit the data to another SharePoint list first(use a column to store the value) and then create calculated columns to user formula to split the value, then use workflow to update the list where you want to add the value with the divided
values.
For example: the value is aa;bb;cc;dd.
Based on the number of the semi-colons, we need to create one column to store the original value(named test for example), four calculated columns(v1,v2,v3,v4) to store the divided values and two more calculated columns(flag1,flag2) for use in the formula.
v1: =LEFT([test],FIND(";",[test])-1)
flag1: =RIGHT([test],LEN([test])-FIND(";",[test]))
v2: =LEFT([flag1],FIND(";",[flag1])-1)
flag2: =RIGHT([flag1],LEN([flag1])-FIND(";",[flag1]))
v3: =LEFT([flag2],FIND(";",[flag2])-1)
v4: =RIGHT([flag2],LEN([flag2])-FIND(";",[flag2]))
We can also use Client Object Model to write code to split the value of the field.
You can download the dll files form the link below:
http://www.microsoft.com/en-in/download/details.aspx?id=21786
Best regards.
Thanks
Victoria Xia
TechNet Community Support

Similar Messages

  • HTML + JQuery (CSOM) to add multiple item to a Sharepoint list and get their IDs

    Hi everyone.
    I try to use HTML + JQuery in CEWP to build some sort of analog of InfoPath's repeating table in order to be able to insert multiple items in a Sharepoint list using CSOM.
    The current task is to get the IDs of inserted items (in order to use those IDs later to add attachments to the list items) as soon as they are added to the list. I've tried several ways but couldn't get the IDs of all inserted items. Usually
    I get "-1" as an ID for every item except the last one, which returns me the correct ID. 
    Bellow is the code.
    <script src="/testsite1/SiteAssets/jquery-1.11.1.min.js" type="text/javascript"></script>
    <script src="/testsite1/SiteAssets/jquery.SPServices.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(document).ready(function() {
    var click = 1;
    $("#btn_id_1").click(function() {
    click ++;
    $("#tr_id_1").clone().appendTo("#tbl_id_1").attr("id", "tr_id_" + click.toString()).find("input").val("");
    $("#btn_id_2").click(function() {
    Save();
    function Save() {
    var ctx = new SP.ClientContext.get_current();
    var taskList = ctx.get_web().get_lists().getByTitle('Tasks');
    var taskItemInfo = new SP.ListItemCreationInformation();
    var vendor;
    var certname;
    var certid;
    $("#tbl_id_1 tr").each(function() {
    vendor = ($(this).find(".vendor")).val();
    certname = ($(this).find(".certname")).val();
    certid = ($(this).find(".certid")).val();
    newTask = taskList.addItem(taskItemInfo);
    newTask.set_item('Title', vendor);
    newTask.set_item('Request_', certname);
    newTask.set_item('h', certid);
    newTask.update();
    ctx.load(newTask);
    ctx.executeQueryAsync(addTaskSuccess, addTaskFailure);
    //timeout();
    function timeout() {
    alert ("!!!");
    function addTaskSuccess(sender, args) {
    alert(newTask.get_id());
    //AddAttachment(newTask.get_id())
    function addTaskFailure(sender, args) {
    //alert(newTask.get_id());
    alert("no");
    window.location = window.location.pathname;
    </script>
    <div id="div_id_1" class="div_class_1">
    <table id="tbl_id_1">
    <tbody>
    <tr id="tr_id_1">
    <td>Vendor:<br><input type="text" class="vendor" /></td>
    <td>Cert. Name:<br><input type="text" class="certname" /></td>
    <td>Cert. ID:<br><input type="text" class="certid" /></td>
    <td>Attachment:<br><input type="file" class="attachment" /></td>
    </tr>
    </tbody>
    </table>
    <div><button id="btn_id_1" type="button" width="10" height="10">+</button></div>
    <div><button id="btn_id_2" type="button">Save</button></div>
    </div>

    Here's a working solution (thanks to
    this guy)
    <script src="/testsite1/SiteAssets/jquery-1.11.1.min.js" type="text/javascript"></script>
    <script src="/testsite1/SiteAssets/jquery.SPServices.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    var array = [];
    $(document).ready(function() {
    var click = 1;
    $("#btn_id_1").click(function() {
    click ++;
    $("#tr_id_1").clone().appendTo("#tbl_id_1").attr("id", "tr_id_" + click.toString()).find("input").val("");
    $("#btn_id_2").click(function() {
    //Save();
    //Call();
    var asyncPromises = Save();
    asyncPromises.done(function(result) {
    //alert(array.length);
    console.log(array.length);
    for (var i=0; i<array.length; i++) {
    //alert(array[i].get_id());
    console.log(array[i].get_id());
    asyncPromises.fail(function(result) {
    function Save() {
    var buildDeferredSaves = $.Deferred(function() {
    //var array = [];
    var ctx = new SP.ClientContext.get_current();
    var taskList = ctx.get_web().get_lists().getByTitle('Tasks');
    var taskItemInfo;
    var vendor;
    var certname;
    var certid;
    $("#tbl_id_1 tr").each(function() {
    vendor = ($(this).find(".vendor")).val();
    certname = ($(this).find(".certname")).val();
    certid = ($(this).find(".certid")).val();
    taskItemInfo = new SP.ListItemCreationInformation();
    newTask = taskList.addItem(taskItemInfo);
    newTask.set_item('Title', vendor);
    newTask.set_item('Request_', certname);
    newTask.set_item('h', certid);
    newTask.update();
    ctx.load(newTask);
    array.push(newTask);
    ctx.executeQueryAsync(
    function() {
    // Successful
    buildDeferredSaves.resolve();
    function(sender, args) {
    // Failure
    buildDeferredSaves.reject(args.get_message());
    return buildDeferredSaves.promise();
    </script>
    <div id="div_id_1" class="div_class_1">
    <table id="tbl_id_1">
    <tbody>
    <tr id="tr_id_1">
    <td>Vendor:<br><input type="text" class="vendor" /></td>
    <td>Cert. Name:<br><input type="text" class="certname" /></td>
    <td>Cert. ID:<br><input type="text" class="certid" /></td>
    <td>Attachment:<br><input type="file" class="attachment" /></td>
    </tr>
    </tbody>
    </table>
    <div><button id="btn_id_1" type="button" width="10" height="10">+</button></div>
    <div><button id="btn_id_2" type="button">Save</button></div>
    </div>

  • Get the pc name with domain name and add it to my properties file using commands

    i want to get the pc name with domain name and add it to my properties file using powershell  .
    sid

    function Get-Environment{
    [environment]|Get-Member -Static -MemberType Properties |
    ForEach-Object{
    if($_.Name -ne 'StackTrace'){
    $v=[scriptblock]::Create("[environment]::$($_.Name)").Invoke()
    New-Object PsCustomObject -Property ([ordered]@{Name=$_.Name;Value=$v[0]})
    Get-Environment
    Get-Environment | Out-String | Out-File environment.txt
    ¯\_(ツ)_/¯

  • How i can delete and remove apple ID of old user and add my current apple ID to used i pod touch?

    how i can remove and delete apple ID of old user and add my current apple ID to used I POD TOUCH

    Unfortunately, you cannot delete Apple IDs but what you can do is go to Settings>Store>and sign out of the old Apple ID on your iPod and the sign in to the new Apple ID.
    All of the apps that were purchased under the old ID will still need the old ID's password for updates.
    More info can be found here: http://support.apple.com/kb/he37

  • SSRS reporting with sharepoint list using Distinct and Multivalue parameters

    i want create ssrs report with sharepoint list using ms-vs(2008). i want create Distinct multivalue parameters by using CAML query. There is any way we put CAML query where we use Distinct keyword and IN clause in CAML query... i hope all experts will
    understand my poor English... sorry for poor English.. plz help me

    Hi AsifMehmood,
    Per my understanding you have create an SSRS report with SharePoint list, now you don’t know to create the distinct parameters by using CAML query,  right?
    For the CAML language doesn’t have any reserved word (or tag) to set this particular filter to remove duplicate results, but we can use the custom code to do this function. I have tested on my local environment and we can do that by create one hidden parameter(Param1)
    to get all the values from the fields which will  add the filter and then create another parameter(Param2) to get the distinct values based on the Param1, we use the custom code to do the deduplication.
    Step by Steps information in below thread for your reference to create the parameters and the custom code:
    "How to get distinct values of sharepoint column using SSRS"
    Other similar thread for your reference:
    https://audministrator.wordpress.com/2014/02/17/sharepoint-list-add-distinct-parameter-value/
    If your problem still exists, please feel free to ask and also try to provide us more details information.
    Regards
    Vicky Liu

  • How do I query a SharePoint List using a url and filtering on date?

    I am reading a SharePoint list using jquery.  Everything is working fine
    except for the filter.  Each list item has an expiration date.  I want to retrieve JUST the items that have not expired (Expires > Today) but I can't figure out the url syntax and I've been searching all day for an example and
    can't find one.  Could someone please help?!?  See bold code below.
    Thanks,
    Glen
    $(document).ready(function ()
    <strong>var qryWCFUrl = "/sites/MMTP1/_vti_bin/listdata.svc/MMAlerts?$filter=(Expires gt '08/10/2011')&$orderby=Title";
    </strong> $.getJSON(qryWCFUrl, function (results)
    $.each(results.d.results, function (i, mmAlert)
    itemID = mmAlert.Id;
    mmTitle = mmAlert.Title;
    mmClass = mmAlert.ClassValue;
    //alert("Item="+itemID+" Title="+mmTitle+" Class="+mmClass);
    AddMMStatus(mmAlert.Id,mmAlert.Title,mmAlert.ClassValue);

    Fadi,
    Thanks for your response.  I actually have another version of the code that uses the SP client objects that works.  The problem is site boundries.  Let me give a more complete project explanation.
    I am creating a master page for a new intranet.  As part of this master page, I want to read from an SP list of alerts and post each alert (if not expired) in the SP status bar.  I've gotten this to work with SP client objects and jquery (except
    for the date filter part).  Both of these solutions work fine on the top site level.  BUT when trying it out at the sub-site level, the SP client objects version of my code fails. The jQuery version works except the date filtering.
    I looked at the example from your link and it looks like a bit of a hybrid to my approaches:  JQuery with CAML.  My question is; does this example permit me to access a list in the top-level site from the subsites?  Please excuse my ignorance,
    but I am an EXTREME newbie in this having spent the past 8 years as a VB.Net developer and a little bit of ASP.Net.
    Below are the two different versions of my code in different versions of my master page definition:
    SP Client Object Version
    <script type="text/javascript">
    // <![CDATA[
    ExecuteOrDelayUntilScriptLoaded(LoadAlerts, "sp.js");
    var ctx;
    var currAlerts;
    function LoadAlerts() {
    ctx = new SP.ClientContext.get_current();
    list = ctx.get_web().get_lists('/sites/MMTP1/Lists/').getByTitle('MMAlerts');
    var cmlQry = new SP.CamlQuery();
    var camlExp = '<query><Query><Where><Gt><FieldRef Name="Expires" /><Value IncludeTimeValue="FALSE" Type="DateTime"><Today /></Value></Gt></Where></Query></query>';
    cmlQry.set_viewXml(camlExp);
    currAlerts = list.getItems(cmlQry);
    ctx.load(currAlerts,'Include(ID,Title,Class)');
    ctx.executeQueryAsync(GetAlertsSuccess,GetAlertsFailed);
    function GetAlertsSuccess() {
    var lstEnum = currAlerts.getEnumerator();
    while(lstEnum.moveNext()) {
    var mmAlert = lstEnum.get_current();
    AddMMStatus(mmAlert.get_item('ID'),mmAlert.get_item('Title'),mmAlert.get_item('Class'));
    function GetAlertsFailed(sender,args) {
    alert('Alerts load failed: ' + args.tostring);
    function AddMMStatus(msgID, strTitle, strClass) {
    var statID;
    var statClass;
    var statTitle;
    statClass = "<a href=\"#\" onclick=\"javascript:DisplayAlert("+msgID+");\">" + strClass + ": </a>";
    statTitle = "<a href=\"#\" onclick=\"javascript:DisplayAlert("+msgID+");\">" + strTitle + "</a>";
    statID = SP.UI.Status.addStatus(statClass, statTitle, true);
    SP.UI.Status.setStatusPriColor(statID,"red");
    function DisplayAlert(msgID) {
    var options = {
    title: "Miller & Martin Alert!",
    url: "/sites/MMTP1/SitePages/ShowAlert02.aspx?ID="+msgID,
    allowMaximize: false,
    showClose: true
    SP.UI.ModalDialog.showModalDialog(options);
    // ]]>
    </script>
    JQuery Version (works except for filtering by date)
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <script type="text/javascript" >
    // <![CDATA[
    var itemID;
    var mmTitle;
    var mmClass;
    $(document).ready(function ()
    var qryWCFUrl = "/sites/MMTP1/_vti_bin/listdata.svc/MMAlerts?$filter=(Expires gt '08/10/2011')&$orderby=Title";
    $.getJSON(qryWCFUrl, function (results)
    $.each(results.d.results, function (i, mmAlert)
    itemID = mmAlert.Id;
    mmTitle = mmAlert.Title;
    mmClass = mmAlert.ClassValue;
    AddMMStatus(mmAlert.Id,mmAlert.Title,mmAlert.ClassValue);
    function AddMMStatus(msgID, strTitle, strClass, strSeverity) {
    var statID;
    var statClass;
    var statTitle;
    statClass = "<div id=\"mmAlertTitle\" style=\"display:inline-block;\"><a href=\"#\" onclick=\"javascript:DisplayAlert("+msgID+");\">" + strClass + ": </a></div>";
    statTitle = "<div id=\"mmAlertDetail\" style=\"display:inline-block;\"><a href=\"#\" onclick=\"javascript:DisplayAlert("+msgID+");\">" + strTitle + "</a></div>";
    statID = SP.UI.Status.addStatus(statClass, statTitle, true);
    SP.UI.Status.setStatusPriColor(statID,"green");
    function DisplayAlert(msgID) {
    var options = {
    title: "Miller & Martin Alert!",
    url: "/sites/MMTP1/SitePages/ShowAlert02.aspx?ID="+msgID,
    allowMaximize: false,
    showClose: true
    SP.UI.ModalDialog.showModalDialog(options);
    // ]]>
    </script>

  • How to add js files to sharepoint page using sharepoint designer

    how to add js files to sharepoint page using sharepoint designer

    Upload the files to your site collection into the site assets library or into the style library, depending on perference.
    Then you can include the JS files either in the master page, page tempalte or using web parts.

  • Ideas for text based budget management and software

    I'm looking for suggestions for text-based software or just basic scripts for tracking expenses.
    For the last six months I've been recording my purchases in text files, one file for each month.
    An entry looks like this:
    01/01/2013,Schnucks,banana, groceries,1.00,cash
    It works pretty well for recording info, no alternative system could be much faster than just adding a line to a text file.
    Now that I've been recording data for about 6 months, I'm more interested in parsing through it to see what I'm spending in each month and in various categories. At the moment, I just run the files through grep and awk to get what I want. I'm contemplating writing a python program to let me filter and calculate totals and do whatever else comes to mind: importing credit card statements, generating graphs, etc. But at that point, I feel like I'm probably just re-inventing the wheel.
    Does anybody want to share how they are handling a similar case?
    I'm ok with changing my entry format, but I'm pretty attached to handling things as text files. I don't need anything more complex if it adds to the overhead of creating an entry.

    Hey, I been doing something very similar!
    Except it also will measure income, so I can know how much I have done/expend this month, week, etc.
    I don't have it at hand atm, but I use : to separate the fields, and use slashes to escape it (like \:)
    Yes, that is a DSV file.
    I haven't dedicated time to work on it lately, but I was writing a perl script to do the calculations.
    One idea I have is to create an additonal file for a list of expenses names, like this:
    milk-z:Milk brand Z:milk
    milk-y:Milk brand Y:milk
    the first field is an unique code for the product, second field a description, and third field is a category.
    That way I could see how much I have expend on milk, no matter the brand.
    On the expenses file, an expense would be similar to this:
    2012-12-20:expense:milk-z:5.0
    The first field has the date, in the format YYYY-MM-DD; that order is important to be able to sort the file if is necessary
    Second field has "expense"; it could be "income" if it was an income
    Third field is the product code - if its something I don't buy regulary, I could be only a name (like "new led tv" or something), if is an income, the reason behind the income.
    And fourth field is just the amount of money.
    Oh, I think I'll dedicate some time to the project again

  • Take text from a cell and add it to a new cell

    Here's what I'm trying to do.  I have a report that's automatically created in 2 columns.  Item and Price.  I have no way of changing how this report is made, which is why i need Numbers to help me out.  In the item column, part of the text includes a number. 
    Example:
    Item
    Price
    Large Espresso (1.4)
    $1.49
    Small Espresso (0.9)
    $0.99
    What I would like to do (if possible) is have NUMBERS put the number from "column a" into "column c"  i'm assuming it's some type of [if this cell has a number, take that number and insert it here] function
    Example:
    Item
    Price
    Amount
    Large Espresso (1.4)
    $1.49
    1.4
    Small Espresso (0.9)
    $.99
    .9
    And then (i know i'm asking a lot but that's why i'm here to get help):
    if i had multiple items all with different amounts is there a way to categorize/sort those so i could see how much of each one i have sold?  I'm assuming it's some type of [if "column a" contains (large espresso) add it's sisters "column c" together. 
    Example:
    Item Name
    Price
    Amount
    Large Espresso (7.17)
    $90.00
    7.17
    Small Espresso (1.12)
    $15.00
    1.12
    Small Coffee (3.66)
    $45.00
    3.66
    Small Espresso (1.10)
    $15.00
    1.10
    Small Espresso (1.19)
    $15.00
    1.10
    Large Coffee (2.10)
    $3.50
    2.10
    Large Espresso (3.60)
    $45.00
    3.60
    Large Coffee (3.60)
    $45.00
    3.60
    Large Coffee (3.60)
    $45.00
    3.60
    Can it sort to...
    Item Name
    Price
    Amount
    Large Espresso
    (all items from above table named large espresso, regardless of what number comes after it)
    $135
    (total of all items named Large Espresso)
    10.77
    (total of numbers next to Large Espresso in "Column A")
    Small Espresso
    (all items named small espresso, regardless of what number comes after it)
    $45
    (total of all small espresso purchases)
    3.32
    (total of numbers next to Small Espresso in "Column A")
    Large Coffee
    (all items named large coffe)
    $93.50
    (total of all large coffee purchases)
    9.3
    (total of numbers next to Large Coffee in "Column A")
    Small Coffee
    (all items named small coffee)
    $45
    (total of all small coffee purchases)
    3.66
    (total of numbers next to Small Coffee in "Column A")
    I'm sorry for such the lengthy explanation, but i tried to be as detailed as possible.  If there's any questions, feel free to ask, thank you all so much for your help, i don't know where else to turn...

    Thank you SOOOOOO much for your help wayne, everything worked perfectly except for one thing.  It isn't returning anything to me on the summary table.  **UPDATE** Our tables were named differently, I was able to figure out how to change what columns you were referencing and add the "amount" column to my summary table by copying and pasting the previous formula and again changing what columns it referenced.  I can't thank you enough for your help! 
    I do have one more question i hope you could help me with...I realize that the names in the summary table column "a" must exactly match the column "d" in the inventory list table, but if i had 2 items named the same thing could it include all text that included the item name...
    Example Summary Table:
    Item
    Price
    Amount
    Large Coffee
    $15.00
    5.64
    Small Coffee
    $45.00
    21.45
    Large Espresso
    $20.00
    5.67
    Small Espresso
    $15.00
    9.4
    Changing this instead to Include all items containing the word "coffee" or "espresso" respectively.  It's ok if i have to manually write the names of the items in column "a" of the summary table, and just change the formula in the price and amount column to search for a certain word...
    To make sure I'm clear, referencing the original sales sheet, and then assuming the above summary table was a result of that sales sheet, I would like only one row of coffe and one row of espresso.  So the formula would need to search for a word rather than referncing that "d" column from the earlier formulas you gave me.
    Item
    Price
    Amount
    Coffee
    $60.00
    (All Coffees sold, large or small)
    27.09
    (All Coffees Sold, large or small)
    Espresso
    $35.00
    (All espressos sold, large or small)
    15.07
    (All espressos sold, large or small)
    Thanks for all your help, i hope i was clear enough again

  • Create a text file in KM and add the structure of a node

    Hello Everybody,
    could some one please advise on how do I write the data stored in my node (elements) as string into a text file? How can i create a text file and add the structure of my node to it? I can just walk through my node recursively.
    Any help would be highly appreciated.
    Thanks in advance.
    Regards,
    Seed

    Are you referring to a org.w3c.dom.Node?
    In that case, the simplest approach would be to use KM's XML serializer (http://help.sap.com/javadocs/NW04s/current/km/com/sapportals/wcm/util/xml/SimpleSerializer.html)
    BR, Julian

  • SCs split into multiple POs, duplicate POs and PO items in reverse c/ to SC

    Hi,
      We are on SRM Server 550 SP10 ECS. We are facing the following situations intermittently in Prod. We are unable to simulate the same situation in Dev or Q environment. Again this does not happen for every SC it happens atleast once or twice in a day with a volume of few hundred shopping carts.
    1) SC gets split into as many POs as SC Items. Let us say SC has 4 items, each item is created in one PO so we will have 4 POs w/ one item per PO in this example.
    2) PO gets duplicated. Let us say SC has two items. Then two POs are created with identical SC items referencing the same SC
    3) PO items are either jumbled or reversed in comparison to SC. Let us say in a SC you have 3 items in SC then the PO will contain items in say 3 ,2 , 1 order or 2, 3 1 order.
    These POs are automaticaly created after Approval (no sourcing cockpit). The vendor, Purchasing Org, Document Type etc is same for all items in SC.
    Anothe question: Once the approval of the SC happens in Workflow, the PO is automatically created via BAPI? or some job? Can anybody clarify the process that takes place from the Approval to PO creation (assuming the SC does not go to SOCO).
    Thanks

    Hi
    Which R/3 and SRM support pqack versions are you using ?
    Following is the criteria which is used to split POs
    For Backend Purchase Orders
    Company Code
    Purchasing Org
    Purchasing Group
    Document Type
    Vendor
    Subtype (Direct/Hierarchy)
    FI Logical System
    Logical System from where an External Requirement comes
    For Local Purchase Orders additional criteria is used to split POs:
    Delivery Address (for higher releases)
    Procument Card Number
    Procurement Card Company
    Please Check the Implementation of BADI BBP_SC_TRANSFER_BE (Method GROUP_PO) for any Customer Added Splitting Criteria. Please look at SAP documenatation of the Business Add-In BBP_SC_TRANSFER_BE, its Method GROUP_RQ and GROUP_PO. You can use to overwrite the standard and group SC items based on custom rules to create split the PO or RQ in EBP.
    P.S. As soon as the purchaser assigns different SOS in the SC, you'll have different POs created.
    Meanwhile, please go through the following pointers / SAP OSS Notes as well ->
    Note 768164 - Multiple SCs via SoCo are processed incorrectly
    Note 1057530 - BBPSC02: Incorrect PO split when SC contains direct material
    Note 861889 - Limitations on limit and service PO's in case of ECS
    You order a shopping cart with couple of items with same data (such as vendor etc). One of the item is a direct material. When you order the cart, the PO split criteria is creating multiple POs instead of a single PO.
    Re: Incorrect PO Split in SoCo?  (which FM should I debug ?) :-(
    Re: S.Cart creates Split PO, One S.Cart creates multiple PO's for each SC item
    How to split shopping cart qty to create two PO
    Re: PO split  in  sourcing cockpit   ?      :-(
    Split PO in SRM
    Re: Creating single PO from multiple SC
    SC gets split into one PO per Line even when the vendor is the same.
    Hope this will help. Do let me know.
    Regards
    - Atul

  • How do I read txt file and add items to dropdownlist or checkbox

    I want to add items to a dropdown or check box by reading from a text file(and select one of them). (I donot use any table or database). The list of items is sometimes upto 20MB and hence cannot populate using session bean.I want items to be added to either checkbox or listbox during a button action. I have done this for textarea but unable so far to acheive for checkbox or listbox. I use following code which does not work:
    public String button3_action() {       
    try{           
    FileReader fr = new FileReader "F:/CreatorProjects/checkboxtst.prs");
    BufferedReader br = new BufferedReader(fr);
    String s;
    while((s=br.readLine())!=null) {
    dropdown1.setValue(s);
    br.close();
    fr.close();
    }catch(Exception e) {
    e.printStackTrace();
    return null;
    I know I cant just transplant textarea code for dropdownlist or checkbox.
    Any help is greatly appreciated.
    Thanks.
    Dr.AM.Mohan Rao

    I am able to read from txt file to a listbox if i write in sessionsbean1:
    try{
    FileReader fr = new FileReader("F:/CreatorProjects/checkboxtst.prs");
    BufferedReader br = new BufferedReader(fr);
    String s1="";
    String s="";
    while((s=br.readLine())!=null) {
    s1 = s1+s;
    s1= s1+"\n";
    disOptions = new com.sun.rave.web.ui.model.Option[] {              
    new Option(s1,s1)};
    diseases = new String[] {};
    fr.close();
    br.close();
    catch(Exception e) {
    e.printStackTrace();
    But I get all data in one line!! if I click submit button text area gets all. How to display items in each line????Please help...
    Dr.AM. Mohan Rao

  • How to create a group and add class instances to that group using VSAE

    how can i create a group in VSAE and add the objects to the group that too instances of a class.
    should i use the ID of the object or some other rule to add members to that group
    Thanks & Regards, Suresh Gaddam

    Hi,
    The below links should be helpful for you to create group in VSAE:
    Computer and Instance Group Fragments in VSAE
    http://blog.scomskills.com/create-a-computer-or-instance-group/
    Create a Group of Health Service Watcher Objects Using VSAE
    http://blog.scomskills.com/create-a-group-of-health-service-watcher-objects-using-vsae/
    SCOM VSAE – Custom Dynamic Computer Groups Based On Server Registry Keys
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Create Site Column and add it to two different list as dependent lookup column

    I want to create two lookup lists that will have one common column. The common column values will vary depending on the list.
    For ex: List A holds Countries (USA) and their Currency code (USD). List B holds States (New York) and their code (NY). The lists are completely independent of each other. I would like to create a common site column named "Code" of type
    Text and use it across these two lists. Is it possible?
    My solution so far -
    a. created the site column (programmatically) which is pretty straight forward.
    b. created list definition with two fields (Title and Code).
    c. created list instance for Country list. Added data rows in the elements.xml. But not sure how to add Code field as dependent lookup.
    If I remove the code field from the elements.xml, the solution deploys successfully creating the Country list with just the Title field. But I need both the fields. Any help is appreciated.
    Here is a look at the elements.xml with data rows for Country list instance
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <ListInstance Title="List Instance" OnQuickLaunch="TRUE" TemplateType="10001" Url="Lists/CountryList" Description="Country Values">
    <Data>
    <Rows>
    <Row>
    <Field Name="Title">USA</Field>
    <Field Name="Code">USD</Field>
    </Row>
    <Row>
    <Field Name="Title">Japan</Field>
    <Field Name="Code">Yen</Field>
    </Row>
    <Row>
    <Field Name="Title">Australia</Field>
    <Field Name="Code">AUD</Field>
    </Row>
    </Rows>
    </Data>
    </ListInstance>
    </Elements>

    Hi,
    According to your post, my understanding is that you want to add lookup field to the list in elements.xml.
    I recoment you to create lookup column as site column, then bind the lookup column to the contnet type, and then use the contnet type in the list.
    For more information, you can refer to:
    http://spcodes.blogspot.com/2013/02/create-custom-content-type-with-lookup.html
    http://social.msdn.microsoft.com/Forums/office/en-US/d5ec08d5-cfa7-4bbb-9459-78d04674ee59/add-a-lookup-column-in-the-schemaxml?forum=sharepointcustomizationlegacy
    http://www.justanothertechnologyguy.com/2013/01/how-to-create-and-connect-lookup-fields.html
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How do I import a bookmarks folder from another computer and add it to my existing list of bookmarks folders?

    I have two computers. One contains a folder of bookmarks that I want to transfer to the other computer and add it in. I don't want to replace all my bookmarks on the second computer with those from the first computer. How do I do this?

    Which kind of backup did you do? A backup from the Bookmarks Organizer or a backup using the program MozBackup?
    If you used MozBackup, you need to install it on the new computer to decode the backup. http://mozbackup.jasnapaka.com/
    If you used the Bookmarks Organizer, you might just need to add .json to the end of the file name.

Maybe you are looking for

  • How to handle large library, limited data plan

    I've been using Itunes Match for about six months now, and I'm having problems... I live rurally and so I use an AT&T hotspot with a 10 gig/month data plan for my phone, ipad, and desktop mac. My wireless connection speed is pretty good. I have about

  • How to get PO number in FI Invoice Document??

    Dear All, Please guide me to get PO number in FI Logistics invoice Verification number against the vendor line item. Our requierement to develope a report to send to the vendor about -- Invoices -- pending & Invoices paid -- against each invoice ther

  • Firefox will not restart after reopening internet lock in Zone Alarm

    Firefox will not start after following use of the internet lock in Zone Alarm. Google Chrome will! == User Agent == Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.125 Safari/533.4

  • ERROR CREATED UNDER \SYSMAN\RECV\ERRORS FILLING UP THE HARD DISK

    I am using Content DB 10.2.0.0.1 with Infrastucture 10.1.2.0.2 on Windows 2003, and have the situation as described in Bug No. 6164515 on Metalink: "ERROR CREATED UNDER \SYSMAN\RECV\ERRORS FILLING UP THE HARD DISK Files like A0000000064.err_2007_06_2

  • Run rmi registry in executable

    Hi all, I've created a jar executable for an application I wrote. I have two questions if anyone can help me out with either. 1. Is there anyway to have it run my rmi registry along with the jar executable so I don't have to run it seperate? 2. Is th