Re: Empty record in list item

I would be very greatful it anybody could help me.
I have created a recordgroup for list item and populated the same. All values are dispalyed properly but in addion one empty record is appear. how can i remove the empty record ? my syntax are as under:
declare
v_rg NUMBER;
v_GrpID RECORDGROUP;
begin
v_GrpID := CREATE_GROUP_FROM_QUERY('DRVCODE', 'SELECT led_name ,led_name FROM master_ledger where cmp_code=:global.cmp_code ORDER BY 1');
v_rg := POPULATE_GROUP(v_GrpID);
IF v_rg = 0 THEN
POPULATE_LIST('master_driver.tdrvname', v_GrpID);
END IF;

Just add the last line after your code... that is you set the value after populating the list-item;
declare
v_rg NUMBER;
v_GrpID RECORDGROUP;
begin
v_GrpID := CREATE_GROUP_FROM_QUERY('DRVCODE', 'SELECT led_name ,led_name FROM master_ledger where cmp_code=:global.cmp_code ORDER BY 1');
v_rg := POPULATE_GROUP(v_GrpID);
IF v_rg = 0 THEN
POPULATE_LIST('master_driver.tdrvname', v_GrpID);
END IF;
:master_driver.tdrvname:= v_value;where v_default_value is a variable containing the default value for your list_item (or the specific value that you want it to be pre-set, that could be a table stored value).

Similar Messages

  • Enable or disable particular record in list item based on a corresponding c

    Hi,
    How can i Enable or disable property of particular record in list item (multi record) based on a corresponding check box(multi record) ,
    e.g Form Structure:
    if press a button then record should populate where multi_post_query
    if my_check_box = 1 then
    my_list_item  disable to update;
    else
    my_list_item  enable to update;
    end if;
    now wanted result is like below
    my_check_box ---- my_list_item
    +----------------------enable
    +----------------------enable
    +----------------------enable
    _----------------------Disable
    _----------------------Disable
    Here "+" means checked,"_" means unchecked and "enable" means updatable "Disable" means not updatable
    the pseudo code is like,
    if my_check_box = 1 then
    my_list_item enable to update;
    else
    my_list_item disable to update;
    end if;
    Note: my_check_box is not updatable
    please tell me which trigger and where I should create
    Thanks
    Edited by: 838602 on Feb 21, 2011 11:12 PM
    Edited by: 838602 on Feb 22, 2011 1:40 AM

    Hi Abdetu,
    I created WHEN-NEW-RECORD-INSTANCE Trigger at data block level
    And I need should work like below pseudo code (sorry for previous pseudo code)
    if my_check_box = 1 then
    my_list_item  disable to update;
    else
    my_list_item  enable to update;
    end if;
    so change code as
    IF :MULTI.PROTECTED_FIELD = 1 THEN
    SET_ITEM_PROPERTY ('MULTI.ACTION',REQUIRED , PROPERTY_FALSE );
    SET_ITEM_PROPERTY('MULTI.ACTION',NAVIGABLE,PROPERTY_FALSE);
    SET_ITEM_PROPERTY ('MULTI.ACTION' ,UPDATE_ALLOWED,PROPERTY_FALSE);
    SET_ITEM_PROPERTY ('MULTI.ACTION' ,INSERT_ALLOWED,PROPERTY_FALSE);
    :multi.action := 0;
    ELSE
    SET_ITEM_PROPERTY ('MULTI.ACTION',REQUIRED , PROPERTY_TRUE);
    SET_ITEM_PROPERTY('MULTI.ACTION',NAVIGABLE,PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('MULTI.ACTION' ,UPDATE_ALLOWED,PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('MULTI.ACTION' ,INSERT_ALLOWED,PROPERTY_TRUE);
    END IF;
    Sorry, still I am not getting desired o/p. even i check item (ACTION) level Trigger
    Note: my_check_box is not updatable
    that would assign at time of button press (post query) as i mentioned
    Edited by: 838602 on Feb 22, 2011 1:41 AM

  • Order Records by List Item description

    Can someone please give me some tips on how to solve the following issue?
    I have a List Item that is populated using the following record group query:
    SELECT DOC_TYPE_DESC, TO_CHAR(DOC_TYPE_INFO_ID) FROM DOC_TYPE_INFO WHERE ACTIVE = 'Y' ORDER BY DOC_TYPE_DESC
    The DOC_TYPE_INFO_ID is stored with the actual record (foreign key relationship) but the user will see the description values in order to make a selection.
    I'd like to give the user the option of ordering the records by this description value.

    the function has to be on the database to be used in sql.
    the sql sent by forms to the database when it queries the block has to be something like this
    select ...
    from documents
    where...
    order by my_database_function(doc_type_info_id)
    the function returns the doc_type_desc from the doc_type_info table for the specified doc_type_info_id.
    put "my_database_function(doc_type_info_id)" in the block's order by property.
    there might be a more efficient method. try this out:
    select * from documents
    order by (select doc_type_desc from doc_type_info where doc_type_info_id = documents.doc_type_info_id)
    if that works, put the bold bit in the order by property instead of using the function.

  • Multiple SharePoint 2010 list items edited simultaneously in InfoPath 2010?

    I am looking to distribute a list of accounts to salespeople, so they can update some of the fields for their own accounts and save the changes back to SharePoint. We are currently sending them Excel workbooks, but this isn't ideal.  Since the requirements
    include drop-down choices, conditional formatting, and data validation, I'm wondering if InfoPath can be utilized so that a salesperson can filter the list by their name and see (only) all of their own accounts (records/rows/list items) at once in InfoPath,
    then make multiple changes to different fields (columns) for their accounts, and finally submit the form--saving multiple edited records simultaneously.  Think Datasheet View, but with conditional formatting and data validation. Is this
    possible in any application?

    Hi ired25,
    Few point to mention here.
    InfoPath form will be linked with each SharePoint List item
    user can change/update their own record using Datasheet view(validation will be applied for sure if it configured as formula)
    you can think to use edit form InfoPath form to leverage infopath's powerful rule engine, which might delayed user's productivity but very safe for data.
    I dont think a InfoPath for can handle multiple item in one single form.
    For permission you can think of "Item level permission" from list settings => Advance settings
    As a thought "Content approval" can be used for data sanity.
    Hope this will help
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Lost emtpy table cells and list items on reset using HTMLEditorKit

    I am using the HTMLEditorKit and creating tables and lists with empty cells, i.e., <TABLE><TR><TD></TD></TR></TABLE> or <UL><LI></LI><UL>. When I toggle from the text pane to the source pane and back the last empty table or list item cell is deleted. This happens again and again until the whole element is deleted. If I place some text in the last cell or list item they are not deleted. When switching to the source pane I use JSourcePane.setText(JTextpane.getText) which works OK. The problem is switching from the source back to the text via JTextPane.setText(JSourcePane.getText). Using the read method results in the same problem. Any suggestions?
    Thanks,
    Steve

    A link to the your live test page would be much more productive here. 
    It's much easier for us to diagnose problems when we can see your page & images in our browsers.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Tabular Block with list item

    I have tabular block (4 items) in this block and created a list item on top of this tabular.
    I insert first record and select an item from list item
    but when I go to 2nd record then list item value go back on this default item.
    there is possibility that when I enter 1st record and select item from item list
    this item (from list) is my default item in each row.

    No.
    Sr#     Item1          Item2          item3          list ( all database items)
    1     abc          abc          abc          xyz
    2     abc          bbc          ccd          
    now see list item this is a item list and having 3 list in item
    1. abc
    2. xyz
    3. bbc
    in first row I post record and select xyz from list item
    in 2nd row i want that xyz will be the default value of all rows in list item.
    null

  • List item - Record Group Query - Alignment improper Order

    Dear All,
    When am trying to concatenate two columns using record group query and displaying in the list item, the alignment is not in proper order.
    E.g; Below is the columns and data's used in process:
    CODE_VALUE     SHORT_DESC     DESCRIPTION
    ROLL1     Customer - Non accidental     Production, booking with other carrier, bad projection.
    ROLL2     Customer - Accidental     L/C, B/L draft, Customs, Samples, AMS, LAR.
    ROLL3     ABC - Lack of empty     Lack of empty units.
    ROLL4     ABC CDE - Roll over     AGR RRR decision.
    ROLL5     ABC XXX - Accidental     IMO or OOG refused, operational problems, Cut & Run.
    ROLL6     ABC YYY - Fictive booking     Equipment buffer, dummy booking.
    Below is the record group query used in forms:
    PROCEDURE p_when_new_form_instance
    IS
    GROUP_ID recordgroup;
    list_id item := FIND_ITEM ('BLK_CONTROL.LI_ROLL_REASON');
    rg_name VARCHAR2 (20) := 'LI_ROLL_REASONS';
    status NUMBER;
    l_query VARCHAR2 (4000);
    BEGIN
    l_query :=
    'SELECT rpad(short_desc,50,'' '')||'' | ''||description description, code_value code_value FROM codes WHERE code_value IN (''ROLL1'', ''ROLL2'', ''ROLL3'',''ROLL4'',''ROLL5'',''ROLL6'')';
    GROUP_ID := CREATE_GROUP_FROM_QUERY (rg_name, l_query);
    status := POPULATE_GROUP (GROUP_ID);
    POPULATE_LIST (list_id, GROUP_ID);
    EXCEPTION
    WHEN OTHERS
    THEN
    pl_common.when_others;
    END;
    Moreover i have my list item font property by default as ""MS SANS SERIF" and when i run in Forms Builder am getting the alignment as below.
    Result:
    ====
    DESCRIPTION     CODE_VALUE
    Customer - Non accidental | Production, booking with other carrier, bad projection.     ROLL1
    Customer - Accidental | L/C, B/L draft, Customs, Samples, AMS, LAR.     ROLL2
    ABC - Lack of empty | Lack of empty units.     ROLL3
    ABC CDE - Roll over | AGR RRR decision.     ROLL4
    ABC XXX - Accidental | IMO or OOG refused, operational problems, Cut & Run.     ROLL5
    ABC YYY - Fictive booking | Equipment buffer, dummy booking.      ROLL6
    Above order is not the expected result as all the |(pipe) symbol should display in proper order as below.
    Expected Result:
    ==========
    DESCRIPTION     CODE_VALUE
    Customer - Non accidental | Production, booking with other carrier, bad projection.     ROLL1
    Customer - Accidental | L/C, B/L draft, Customs, Samples, AMS, LAR.     ROLL2
    ABC - Lack of empty | Lack of empty units.     ROLL3
    ABC CDE - Roll over | AGR RRR decision.     ROLL4
    ABC XXX - Accidental | IMO or OOG refused, operational problems, Cut & Run.     ROLL5
    ABC YYY - Fictive booking | Equipment buffer, dummy booking.      ROLL6
    I tried with RPAD and LPAD still the alignment issue is there; i know the issue is because of invariable length of the font.
    But is there any solution to override this it will be of great help.
    So please help!!!!!!!!!!!!!!!!!
    Thanks..................
    Regards,
    Sunil.G

    Hi Francois,
    Thanks for your reply. I have tried changing the font to "Courier(Western)" it is working fine.
    But as per the standards defined, it should be "Ms Sans Serif" nothing apart from that.So that is where the problem lies. :(
    Regards,
    Sunil.G

  • If Records of different list items are entered, then the data is not getting inserted in the table.

    Hi Everyone,
    A Very Very Happy, Fun-filled, Awesome New Year to You All.
    Now coming to the discussion of my problem in Oracle Forms 6i:
    I have created a form in which the data is entered & saved in the database.
    CREATE TABLE MATURED_FD_DTL
      ACCT_FD_NO    VARCHAR2(17 BYTE)               NOT NULL,
      CUST_CODE     NUMBER(9),
      FD_AMT        NUMBER(15),
      FD_INT_BAL    NUMBER(15),
      TDS           NUMBER(15),
      CHQ_NO        NUMBER(10),
      CREATED_DATE  DATE,
      CREATED_BY    VARCHAR2(15 BYTE),
      PREV_YR_TDS   NUMBER(15),
      ADD_FD_AMT    NUMBER(15),
      DESCRIPTION   VARCHAR2(100 BYTE),
      P_SAP_CODE    NUMBER(10),
      P_TYPE        VARCHAR2(1 BYTE)
    The form looks like below:
    ENTER_QUERY     EXECUTE_QUERY     SAVE     CLEAR     EXIT
    ACCT_FD_NO
    CUST_CODE
    FD_AMT
    FD_INT_BAL
    PREV_YR_TDS
    TDS
    ADD_FD_AMT
    P_SAP_CODE
    P_TYPE
    CHQ_NO
    DESCRIPTION
    R
    W
    P
    List Item
    There are 5 push buttons namely ENTER_QUERY, EXECUTE_QUERY, SAVE, CLEAR, EXIT.
    The table above is same as in the form. All the fields are text_item, except the P_TYPE which is a List_Item ( Elements in List Item are R, W & P).
    The user will enter the data & save it.
    So all this will get updated in the table MATURED_FD_DTL .
    I am updating one column in another table named as KEC_FDACCT_MSTR.
    and
    I want this details to get updated in another table named as KEC_FDACCT_DTL only if the P_TYPE='P'
    CREATE TABLE KEC_FDACCT_DTL
      FD_SR_NO                NUMBER(8)             NOT NULL,
      FD_DTL_SL_NO            NUMBER(5),
      ACCT_FD_NO              VARCHAR2(17 BYTE)     NOT NULL,
      FD_AMT                  NUMBER(15,2),
      INT_RATE                NUMBER(15,2),
      SAP_GLCODE              NUMBER(10),
      CATOGY_NAME             VARCHAR2(30 BYTE),
      PROCESS_YR_MON          NUMBER(6),
      INT_AMT                 NUMBER(16,2),
      QUTERLY_FD_AMT          NUMBER(16,2),
      ITAX                    NUMBER(9,2),
      MATURITY_DT             DATE,
      FDR_STAUS               VARCHAR2(2 BYTE),
      PAY_ACC_CODE            VARCHAR2(85 BYTE),
      BANK_CODE               VARCHAR2(150 BYTE),
      NET_AMOUNT_PAYABLE      NUMBER,
      QUATERLY_PAY_DT         DATE,
      CHEQUE_ON               VARCHAR2(150 BYTE),
      CHEQUE_NUMBER           VARCHAR2(10 BYTE),
      CHEQUE_DATE             DATE,
      MICR_NUMBER             VARCHAR2(10 BYTE),
      PAY_TYPE                VARCHAR2(3 BYTE),
      ADD_INT_AMT             NUMBER(16,2),
      ADD_QUTERLY_FD_AMT      NUMBER(16,2),
      ADD_ITAX                NUMBER(16,2),
      ECS_ADD_INT_AMT         NUMBER(16),
      ECS_ADD_QUTERLY_FD_AMT  NUMBER(16),
      ECS_ADD_ITAX            NUMBER(16)
    So for the push button 'Save' , i have put in the following code in the Trigger : WHEN BUTTON PRESSED,
    BEGIN
         Commit_form;
              UPDATE KEC_FDACCT_MSTR SET PAY_STATUS='P' WHERE ACCT_FD_NO IN (SELECT ACCT_FD_NO FROM MATURED_FD_DTL);
              UPDATE MATURED_FD_DTL SET CREATED_DATE=sysdate, CREATED_BY = :GLOBAL.USER_ID WHERE ACCT_FD_NO = :acct_fd_NO;
    IF :P_TYPE='P' THEN
         INSERT INTO KEC_FDACCT_DTL
              SELECT FD_SR_NO, NULL, MATURED_FD_DTL.ACCT_FD_NO, FD_AMT, INT_RATE, P_SAP_CODE,
                   GROUP_TYPE, (TO_CHAR(SYSDATE, 'YYYYMM'))PROCESS_YR_MON,
                   FD_INT_BAL, (FD_INT_BAL-MATURED_FD_DTL.TDS)QUTERLY_FD_AMT , MATURED_FD_DTL.TDS,
                   MATURITY_DATE, P_TYPE, NULL, NULL, (FD_INT_BAL-MATURED_FD_DTL.TDS)NET_AMOUNT_PAYABLE,
                   NULL, NULL, CHQ_NO, SYSDATE, NULL, 'CHQ', NULL, NULL, NULL, NULL, NULL, NULL
              FROM MATURED_FD_DTL, KEC_FDACCT_MSTR
         WHERE KEC_FDACCT_MSTR.ACCT_FD_NO=MATURED_FD_DTL.ACCT_FD_NO;
    END IF;
    COMMIT;
         MESSAGE('RECORD HAS BEEN UPDATED AS PAID');
         MESSAGE(' ',no_acknowledge);
    END;
    If P_TYPE='P' , then the data must get saved in KEC_FDACCT_DTL table.
    The problem what is happening is,
    If i enter the details with all the records as 'P' , the record gets inserted into the table KEC_FDACCT_DTL
    If i enter the details with records of 'P' and 'R' , then nothing gets inserted into the table KEC_FDACCT_DTL.
    Even the records with 'P' is not getting updated.
    I want the records of 'P' , to be inserted into table KEC_FDACCT_DTL, even when multiple records of all types of 'P_Type' (R, w & P) are entered.
    So, can you please help me with this.
    Thank You.
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    Oracle Forms Builder 6i.

    Its not working properly.
    At Form_level_Trigger: POST_INSERT, I have put in the following code.
    IF :P_TYPE='P'THEN
      INSERT INTO KEC_FDACCT_DTL
      SELECT FD_SR_NO, NULL, MATURED_FD_DTL.ACCT_FD_NO, FD_AMT, INT_RATE, P_SAP_CODE,
      GROUP_TYPE, (TO_CHAR(SYSDATE, 'YYYYMM'))PROCESS_YR_MON,
      FD_INT_BAL, (FD_INT_BAL-MATURED_FD_DTL.TDS)QUTERLY_FD_AMT , MATURED_FD_DTL.TDS,
      MATURITY_DATE, P_TYPE, NULL, NULL, (FD_INT_BAL-MATURED_FD_DTL.TDS)NET_AMOUNT_PAYABLE,
      NULL, NULL, CHQ_NO, SYSDATE, NULL, 'CHQ', NULL, NULL, NULL, NULL, NULL, NULL
      FROM MATURED_FD_DTL, KEC_FDACCT_MSTR
      WHERE KEC_FDACCT_MSTR.ACCT_FD_NO=MATURED_FD_DTL.ACCT_FD_NO;
      END IF;
    MESSAGE('RECORD HAS BEEN UPDATED AS PAID');
    MESSAGE(' ',no_acknowledge);
    It worked properly when i executed first time, but second time , in database duplicate values were stored.
    Example: First I entered the following in the form & saved it.
    ACCT_FD_NO
    CUST_CODE
    FD_AMT
    FD_INT_BAL
    PREV_YR_TDS
    TDS
    ADD_FD_AMT
    P_SAP_CODE
    P_TYPE
    CHQ_NO
    DESCRIPTION
    250398
    52
    50000
    6000
    0
    600
    0
    45415
    P
    5678
    int1
    320107
    56
    100000
    22478
    3456
    2247
    0
    45215
    R
    456
    320108
    87
    50000
    6500
    0
    650
    0
    21545
    W
    0
    In the database, in table KEC_FDACCT_DTL, the ACCT_FD_NO:250398 with P_TYPE='P' record was inserted.
    ACCT_FD_NO
    P_TYPE
    250398
    P
    But second time, when i entered the following in the form & saved.
    ACCT_FD_NO
    CUST_CODE
    FD_AMT
    FD_INT_BAL
    PREV_YR_TDS
    TDS
    ADD_FD_AMT
    P_SAP_CODE
    P_TYPE
    CHQ_NO
    DESCRIPTION
    260189
    82
    50000
    6000
    0
    600
    0
    45415
    P
    5678
    interest567
    120011
    46
    200000
    44478
    0
    4447
    0
    45215
    R
    456
    30191
    86
    50000
    6500
    0
    650
    0
    21545
    W
    56
    In the database, in the table KEC_FDACCT_DTL, the following rows were inserted.
    ACCT_FD_NO
    P_TYPE
    250398
    P
    250398
    P
    260189
    P
    320107
    R
    320108
    W
    There was duplicate of 250398 which i dint enter in the form second time,
    All the other P_TYPE was also inserted , but i want only the P_TYPE='P' to be inserted into the database.
    I want only those records to be inserted into the form where P_TYPE='P' and duplicate rows must not be entered.
    How do i do this???

  • SharePoint: Workflow to retrieve all users and Create list item record for each user

    Hi all,
    My share point site have two Lists as Holidays and MyCalender.
    Actually Holiday is simple non-Calender list with field as Holiday Date, Reason. MyCalender List Calender type list with Person Look-up column and user can see his own record. User of Manager group will declare holiday. This Holiday should get reflected
    on each user 's MyCalender List.[One listitem as holiday date and reason for each user] so everyone can view that record.
    I have requirement as Manager will create one Holiday record and then run single workflow so for all users present in SharePoint Site, one MyCalender List Item record should get created. Is it possible to do using Workflow?? Please help as I didn't get any
    solution for this.. Thanks in advance!

    You don't need one workflow per user when a filtered view can do this for you.  If the manager's list is the parent calendar, I'm assuming that he'll be at least using the person look-up column.
    Whether this feeds through the MyCalendar or stays where it is, you can use the [Me] parameter within the filter on a new view.  This will then return the assigned holiday filtering against the account that is logged in.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Dynamic update if multi-record list item.

    I have a bunch of multi-record list items whose poplist I need to update with queried data at the WHEN-NEW-ITEM-INSTANCE triggers,
    At NEW-FORM-INSATNCE trigger I queried and filled all the poplists with no problem. The problem occurs at the WHEN-NEW-ITEM-INSTANCE triggers.
    I have a clear_list() before each add_list_element() from a runtime record group. The problem is that the poplists at the cursor record is updated correctly, when I click on the same list item at other records, the list repeats -- meaning (probably) it was not cleared before being populated. Is there a way to either (1) just populate the list item of the current record, or (2) clear all records of a list item before all records are populated.
    I tried copy( NULL, current_ilist ) where current_ilist is the item name before add_list_element(), but I got errors because the list items are required fields. Besides, the item has queried data in it.
    I'm thinking about changing the item property to optional, save the item value, set it to NULL, populate its poplist, restore it's original value and then change the item property back to "required'. I don't know if it would work but is there a more elegant way of doing it?
    Any suggestion will be appreciated.

    Hello All,
    Just in case nobody saw this, thought i might post it again.
    would abybody have any pointers,
    easo

  • Populating list item with a record group

    I'm trying to populate a list item (TList) with a Record group with a simple query: SELECT FRM_NAME FROM FORM
    In the forms WHEN_VALIDATE_NEW_FORM trigger, I use POPULATE_LIST('FORM_LIST', 'RG_FORM_LIST');
    Am I missing something? I get the error FRM-41334: Invalid record group for list population.

    thanks, i've tried that, but still nothing. I must be doing something simple, but very wrong. I tried with oracle's default scott/tiger schema, created a simple form with a record group with 2 columns, and populating a manually made poplist (populate_list('LIST4', 'RG1'); Still get errors:
    FRM-30191: No list items defined for required poplist.
    List LIST4
    Item: LIST4
    Block: EMP
    Form: MODULE5
    FRM-30085: Unable to adjust form for output.

  • List item problem in oracle forms 6i

    Hello,
    I've 10 test filed, in-front of each text field there are 10 list item (separate list item)
    for each list item element list is given below
    Route
    Customer name
    Delivery date
    Delivery Time
    Delivery Session
    Expected received
    Actual Received
    Fresh Received
    Rate per liter
    Debit Amount
    On text fields I am fetching records from another file. User will map the list item with text item.
    What i want to check is, list item should not get repeated. i.e suppose I've run time display like this
    text item
    list item
    A
    ROUTE
    B
    DELIVERY DATE
    C
    DELIVERY TIME
    D
    DELIVERY DATE
    E
    EXPECTED RECEIVED
    F
    ACTUAL RECEIVED
    G
    FRESH RECEIVED
    H
    RATE PER LITER
    I
    DEBIT AMOUNT
    J
    DELIVERY SESSION
    on text filed B- DELIVERY DATE is assign and at text field D again DELIVERY DATE is assign. I want to avoid this thing and prompt the user regarding the same. How should I go about this? Should I design a button for validation, if yes then what should be the code? or should i go with WHEN-LIST-CHANGE? if so, then what should be the code?
    my design time display is like this
    text
    list item
    txt1
    lst1
    txt2
    lst2
    txt3
    lst3
    txt4
    lst4
    txt5
    lst5
    txt6
    lst6
    txt7
    lst7
    txt8
    lst8
    txt9
    lst9
    txt10
    lst10
    please suggest something
    Thank You
    Sam

    THe most user-friendly way would be to remove elements from all other lists when they are chosen once. You would have to have a WHEN-LIST-CHANGED-trigger on all listitem and populate the the listitems accordingly.

  • How to Get the required List Item values by using Where Clause

    I have two tables named "TAX_RULES","BILL"
    1. " Tax_Rules" (Sub_Head_Code,Tax_ID,Tax_Percentage)
    { While "Sub_Head_Code" field is unique,
    Tax_ID describes that there are two kinds of Tax_IDs based on Tax_percentage which is 6% for some Sub_Head_Codes and 3.5% for the remainng Sub_Head_Codes. I have given Tax_ID 1 for 6% and Tax_ID 2 for Sub_Head_codes having 3.5%. }
    2. "BILL" (Bill_ID,Sub_Head_Code,Tax_ID,Bill_Amount)
    {While "Bill_ID" describes unique Bill Identification Number,
    Sub_Head_Code and Tax_ID are behaving like composite foreign key from Tax_Rules table}
    I have design form for both tables.
    In BILL form i am trying to get values of Tax_ID from Tax_Rules table at run-time by using WHEN-NEW-FORM-INSTANCE.
    For this whenever i select a Sub_Head_Code in Bill Form, all the Tax_IDs that i have recorded against each Sub_Head_Code which is either 1 or 2 against 6% and 3.5% respectively.
    But I want that whenever i select a "Sub_Head_Code", Only that Tax_ID which is associated with that Sub_Head_Code ahould come in the LIST ITEM.
    I have used WHERE clause but that is useless.
    Following is the Code that i have applied in the WHE-NEW-ITEM-INSTANCE Trigger at FORM LEVEL
    <CODE>
    DECLARE
         rg_n1 VARCHAR2(40) :='TAX_ID';
         rg_idn1 RecordGroup;
         gc_idn1 GroupColumn;
         errcode NUMBER;
    BEGIN
         CLEAR_LIST('BILL.TAX_ID');
         rg_idn1 := Find_Group(rg_n1);
    IF      Id_Null(rg_idn1) then
              rg_idn1 := Create_Group(rg_n1);
         gc_idn1 := Add_Group_Column(rg_idn1,'EXPLAIN',CHAR_COLUMN,60);     
              gc_idn1 := Add_Group_Column(rg_idn1,'TAX_ID',CHAR_COLUMN,3);
         END IF;
         errcode := Populate_Group_With_Query(rg_idn1,'select TAX_ID,TAX_ID from TAX_RULES');
         POPULATE_LIST('BILL.TAX_ID',RG_IDn1);
    END;
    </CODE>

    In the Tax Rules table, you state:
    "Sub_Head_Code" field is unique
    In the Bill table, you state:
    Sub_Head_Code and Tax_ID are behaving like composite foreign key from Tax_Rules table
    If the Sub_Head_Code is unique, then it's acting as a primary key, so Sub_Head_Code and Tax_ID in the Bill table are not behaving like a composite foreign key. The Sub_Head_Code is a foreign key, and the Tax_ID is irrelevant as far as keys are concerned.
    It is not clear what it is you want to do.
    If you want to display the Tax_IDs from the Bill table when you select a Sub_Head_Code from the Tax_Rules table, then change your query to:
    select TAX_ID, TAX_ID from BILL where Sub_Head_Code = :Tax_Rules.Sub_Head_Code
    If you want to display the Tax_IDs from the Tax_Rules table when you select a Sub_Head_Code from the Bill table, then change your query to:
    select TAX_ID, TAX_ID from TAX_RULES where Sub_Head_Code = :Bill.Sub_Head_Code
    If this is not what you want, then clarify what it is you want to do. Don't say:
    "I want that whenever i select a "Sub_Head_Code", Only that Tax_ID which is associated with that Sub_Head_Code"
    because it is not clear what tables you are referring to.

  • Need to update the list item in the same sharepoint list with particular condition with Sharepoint Designer 2013.

    Hi All
    I have one sharepoint list with huge data i.e with 20columns and more than 200 records with the fields .
    Suppose lets consider there are A,B,C,D,E,F,G,H columns.
    Now i want to create one form with the fields A,C,E.
    When the user enter the existing data of list for columns A,C..based on C value the E column value should change and update that particular item in the list.
    Please guide me without visual web part can we acheive this by Sharepoint designer 2013 or what would be the preferable solution.
    Please help me on this as it is very urgent from me..
    Thanks in Advance
    Sowjanya G

    Hi,
    According to your post, my understanding is that you wanted to update the list item in the same sharepoint list with particular condition with Sharepoint Designer 2013.
    I recommend to create workflow associated to the list and then start the workflow automatically when an item is changed.
    In the workflow, you can add condition and actions as below:
    If current item: C equal to Test1
         Set E to Test2
    Then the value of the filed E will be changed based on the value of the filed C.
    In addition, if you create the form using InfoPath, you can add rule to the filed C as below:
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • SharePoint: Workflows - Emailing hyperlink of list item.

    I have a custom SharePoint (2013) list to manage tasks assigned to personnel and keep track of their statuses. I've created a workflow using SP Designer to send out an email to whom the task is assigned on the date for which it's due.
    The workflow is working properly and email alerts are being sent, except for one thing. Inside the email body is a hyperlink to the associated record which the recipient clicks on to view (only view, not edit) the task details.
    I got the record's hyperlink by accessing it's display form and copying the URL from the browser, pasting it into the email body. The URL's format looks something like this:
    http://zeroshiki/sites/SP2010-Main-Site/Lists/Announcements/DispForm.aspx?ID=2&ContentTypeId=0x0104000933421F36DFF740B428FEC15871B493
    Then I modified the URL by formulating a lookup to include the ID of the Current Item. In other words, the ID specified in the URL isn't fixed; it's based on the associated list item.
    I've confirmed that when the recipient recieves an email, the ID in the URL matches the record's ID on the site. However, when they click on the link and are redirected to the record's display page, there's no data displayed. The fields are visible but the
    values are not. Then I noticed that the URL in the browser does not match the one in the email; it's missing an ID value.
    So when the URL in the email is ...DispForm.aspx?ID=2&ContentTypeId... it changes to ...DispForm.aspx?ID=&ContentTypeID...
    Why does this happen? This method may seem strange to use, but I've tried looking up the "Encoded Absolute URL" and I get an error stating that the return type of the lookup is invalid. That's why I manually copied the URL format and formulated
    the record ID.
    Am I doing something wrong here? Is there a more straight-forward approach to retrieving the record's URL?

    Hi,
    According to your post, my understanding is that you wanted to send email with hyperlink.
    In order to solve the problem more efficiently I need to clarify some information.
    Did the hyperlink is the current item URL?
    How did you set the hyperlink?
    Per my knowledge, the "Encoded Absolute URL" result is https://sitename/Lists/listname/Id_.000
    To get the current item URL, I recommend to we can use [%Workflow Context:Current Item URL%] with SharePoint Workflow 2010 platform,
    Here is a similar thread for you to take a look at:
    http://social.technet.microsoft.com/Forums/en-US/7dd2d0cb-97ff-4d9f-9c43-57109bb6bb3d/send-email-of-created-item-to-all-the-staff?forum=sharepointcust
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

Maybe you are looking for