Decode with select

Hi Experts,
I have a pl/sql query where there is a decode statement.
Now currently the decode statement is -
decode(GcsEntryHeadersEO.DISABLED_FLAG, 'Y', 'deleteicon_disabled.gif', 'deleteicon_enabled.gif')
But I want to change it to such a condition that -
decode( (SELECT GcsEntryHeadersEO.DISABLED_FLAG FROM gcs_cons_relationships gcr, gcs_cons_eng_runs gcer, gcs_entry_headers GcsEntryHeadersEO WHERE gcer.hierarchy_id =
GcsEntryHeadersEO.hierarchy_id AND gcr.CHILD_ENTITY_ID = GcsEntryHeadersEO.entity_id AND gcer.cal_period_id between GcsEntryHeadersEO.start_cal_period_id and
GcsEntryHeadersEO.end_cal_period_id AND gcer.locked_flag = 'N' AND gcer.most_recent_flag = 'Y' AND gcer.hierarchy_id = gcr.hierarchy_id AND gcer.run_entity_id =
gcr.parent_entity_id ), 'Y', 'deleteicon_disabled.gif', 'deleteicon_enabled.gif')
But when I try to use this in the query, it throws an error saying sub query returns more than one row.
Can somebody please suggest what is the optimal solution?
Thank you - Alpi

Hi,
Here is the complete query -
SELECT GcsEntryHeadersEO.ENTRY_ID,
GcsEntryHeadersEO.DISABLED_FLAG,
GcsEntryHeadersEO.ENTRY_NAME,
ght.HIERARCHY_NAME AS HIERARCHY,
fet.ENTITY_NAME AS ENTITY,
gct.category_name AS CATEGORY,
fcpt_start.CAL_PERIOD_NAME AS START_PERIOD,
fcpt_end.CAL_PERIOD_NAME AS END_PERIOD,
decode(GcsEntryHeadersEO.process_code, 'SINGLE_RUN_FOR_PERIOD',case nvl(GcsEntryHeadersEO.PROCESSED_RUN_NAME, ' ')
when ' ' then 'Next Run in Period' else 'Completed:'||SUBSTR(GcsEntryHeadersEO.PROCESSED_RUN_NAME, 1, 15)||'...' end,
'Every Run in Period') PROCESSED_RUN_NAME,
decode(GcsEntryHeadersEO.DISABLED_FLAG, 'Y', 'deleteicon_disabled.gif', 'deleteicon_enabled.gif') Disable_Switch,
decode(GcsEntryHeadersEO.DISABLED_FLAG, 'Y', 'updateicon_disabled.gif', 'updateicon_enabled.gif') Update_Switch,
          gdtctl.DATA_TYPE_NAME AS BALANCE_TYPE,
gjc.USER_JE_CATEGORY_NAME,
GcsEntryHeadersEO.CURRENCY_CODE AS ENTITY_CURRENCY,
decode(gjc.USER_JE_CATEGORY_NAME, NULL, 'detailsicon_disabled.gif', 'detailsicon_enabled.gif') Writeback_Switch,
GcsEntryHeadersEO.start_cal_period_id START_CAL_PERIOD_ID,
GcsEntryHeadersEO.end_cal_period_id END_CAL_PERIOD_ID,
GcsEntryHeadersEO.disabled_cal_period_id,
gct.category_code,
ght.hierarchy_id,
decode(nvl(GcsEntryHeadersEO.approval_status_code, 'APPROVED'),
'REQUIRED',
'notstartedind_active.gif',
'IN_PROGRESS',
'different_active.gif',
'WARNING',
'warningind_active.gif',
     'APPROVED',
'okind_active.gif',
     'ERROR',
'criticalind_active.gif',
     'REJECTED',
'criticalind_active.gif') approval_switch
FROM gcs_entry_headers GcsEntryHeadersEO,
gcs_hierarchies_tl ght,
gcs_hierarchies_b ghb,
fem_entities_tl fet,
fem_cal_periods_tl fcpt_start,
fem_cal_periods_tl fcpt_end,
gcs_categories_b gcb,
gcs_categories_tl gct,
fem_entities_attr fea_secure,
gcs_data_type_codes_b gdtcb,
gcs_data_type_codes_tl gdtctl,
gl_je_categories gjc
WHERE GcsEntryHeadersEO.hierarchy_id = ght.hierarchy_id
AND ght.language = USERENV('LANG')
AND GcsEntryHeadersEO.entity_id = fet.entity_id
AND fet.language = USERENV('LANG')
AND GcsEntryHeadersEO.entry_type_code = 'MANUAL'
AND gct.category_code = gcb.category_code
AND gcb.category_type_code = 'CONSOLIDATION_RULE'
AND gcb.category_code <> 'ACQ_DISP'
AND gct.language = USERENV('LANG')
AND GcsEntryHeadersEO.category_code = gcb.category_code
AND GcsEntryHeadersEO.start_cal_period_id = fcpt_start.cal_period_id
AND fcpt_start.language = USERENV('LANG')
AND GcsEntryHeadersEO.end_cal_period_id = fcpt_end.cal_period_id (+)
AND fcpt_end.language (+) = USERENV('LANG')
AND fea_secure.entity_id = fet.entity_id
AND fea_secure.attribute_id = :1
AND fea_secure.version_id = :2
AND ( fea_secure.dim_attribute_varchar_member = 'N'
OR EXISTS (SELECT 'X'
FROM wf_local_user_roles wlur,
gcs_role_entity_relns grer
WHERE grer.entity_id = fet.entity_id
AND wlur.user_name = :3
AND wlur.role_name = grer.role_name
AND wlur.role_orig_system = grer.orig_system
AND wlur.role_orig_system_id = grer.orig_system_id
AND wlur.partition_id = grer.partition_id
          AND (sysdate BETWEEN wlur.START_DATE AND nvl(wlur.EXPIRATION_DATE,sysdate))
AND ghb.hierarchy_id = ght.hierarchy_id
AND (ghb.security_enabled_flag = 'N'
OR EXISTS (SELECT 'X'
FROM wf_local_user_roles wlur,
gcs_role_hier_relns grhr
WHERE wlur.user_name = :4
AND wlur.role_name = grhr.role_name
AND wlur.role_orig_system = grhr.orig_system
AND wlur.role_orig_system_id = grhr.orig_system_id
AND wlur.partition_id = grhr.partition_id
AND grhr.hierarchy_id=ghb.hierarchy_id
          AND (sysdate BETWEEN wlur.START_DATE AND nvl(wlur.EXPIRATION_DATE,sysdate))
AND GcsEntryHeadersEO.BALANCE_TYPE_CODE = gdtcb.DATA_TYPE_CODE
AND gdtcb.data_type_id = gdtctl.data_type_id
AND gdtctl.LANGUAGE = USERENV('LANG')
AND gcb.gl_category_code = gjc.je_category_name;
I want to modify the decode in bold.
I want the image to be set not with the value of GcsEntryHeadersEO.DISABLED_FLAG but with the value returned by the select statement as mentioned previously.
Thank you - Alpi

Similar Messages

  • Decode with multiple column sub query

    Dear's
    What is the wrong with the query
    select * from common_master
    where
    (company_code,lpad(rtrim(ltrim(bu_code)),12,' ')) IN
    decode ('ADMIN','ADMIN',(select company_code ,lpad(rtrim(ltrim(bu_code)),12,' ') from common_master )
    ,(select company_code ,lpad(rtrim(ltrim(bu_code)),12,' ') from user_system_privs) )
    The error message as
    Error starting at line 16 in command:
    select * from common_master
    where
    (company_code,lpad(rtrim(ltrim(bu_code)),12,' ')) IN
    decode ('ADMIN','ADMIN',(select company_code ,lpad(rtrim(ltrim(bu_code)),12,' ') from common_master )
    ,(select company_code ,lpad(rtrim(ltrim(bu_code)),12,' ') from user_system_privs) )
    Error at Command Line:18 Column:53
    Error report:
    SQL Error: ORA-00920: invalid relational operator
    00920. 00000 - "invalid relational operator"
    *Cause:   
    *Action:
    Dennis

    You can club the columns in where clause and in decode
    like
    select * from common_master
    where
    (company_code || lpad(rtrim(ltrim(bu_code)) || to_char(12) ||' ') IN
    ( select decode ('ADMIN','ADMIN',company_code || lpad(rtrim(ltrim(bu_code)) || to_char(12) || ' ') from common_master ),
    ,company_code || lpad(rtrim(ltrim(bu_code)) || to_char(12) ||' ') from user_system_privs) )
    HTH,
    ~Yogesh

  • How to use Decode with a variable

    Maybe you've seen this done.
    I want to take statement strMenu4 and subtract the previous value
    that is stored in an array as shown in strMenu5.
    My problem is this change as shown in strMenu5 produces
    an error code:
    ORA-00904 invalid column name
    So either I'm coding something wrong or it can't be done within the
    SUM(decode) construct. If I replace the variable with a literal
    like 1000 the code works:
    SUM(decode(name,'DBWR lru scans', c1.value) - 1000) DBWR_lru_scans
    but with an array variable or even a constant the code fails:
    SUM(decode(name,'DBWR lru scans', c1.value) - Array(3)) DBWR_lru_scans, "
    Any ideas how I can use Decode with a variable and not have it interrupt it
    as a invalid column name?
    Thanks,
    Joseph Karpinski
    [email protected]
    [email protected]
    strMenu4 = "SELECT d1.instance, " _
    & " to_char(sysdate, 'dd-mon-yy hh24:mi:ss') start_time, " _
    & " SUM(decode(name,'DBWR buffers scanned', c1.value)) DBWR_buffers_scanned, " _
    & " SUM(decode(name,'DBWR lru scans', c1.value)) DBWR_lru_scans, " _
    & " SUM(decode(name,'db block gets', c1.value)) db_block_gets , " _
    & " SUM(decode(name,'consistent gets', c1.value)) consistent_gets , " _
    & " SUM(decode(name,'physical reads', c1.value)) physical_reads " _
    & " from dual, v$sysstat c1, v$thread d1 " _
    & " group by d1.instance "
    strMenu5 = "SELECT d1.instance, " _
    & " to_char(sysdate, 'dd-mon-yy hh24:mi:ss') start_time, " _
    & " SUM(decode(name,'DBWR buffers scanned', c1.value) - Array(2)) DBWR_buffers_scanned, " _
    & " SUM(decode(name,'DBWR lru scans', c1.value) - Array(3)) DBWR_lru_scans, " _
    & " SUM(decode(name,'db block gets', c1.value) - Array(4)) db_block_gets , " _
    & " SUM(decode(name,'consistent gets', c1.value) - Array(5)) consistent_gets , " _
    & " SUM(decode(name,'physical reads', c1.value) - Array(6)) physical_reads " _
    & " from dual, v$sysstat c1, v$thread d1 " _
    & " group by d1.instance "

    Re-posting in the SQL and PL/SQL forum.
    It's more appropriate.
    Thanks,
    Closing

  • Problem with "SELECT...FOR UPDATE OF..." and "POST command" combination

    Problem with "SELECT...FOR UPDATE OF..." and "POST command" combination
    Problem in committing transactions in Multiple Forms (Oracle Forms) with POST built-in command:
    Consider that the following statements are written in WHEN-WINDOW-CLOSED trigger of a called form.
    Statements in called form (Form name: FORM_CHILD):
    go_block('display_block') ;
    do_key('execute_query') ;
    -- Data from table_b will be populated in this block, based on the value of COLUMN_1 obtained
    -- from TABLE_A.
    -- Example: If the value of COLUMN_1 is 10, then all the matching records from TABLE_B, which
    -- are inserted with value 10 in TABLE_B.COLUMN_1 will be fetched and shown here.
    if user_choice = 'YES' then
    commit ;
    else
    rollback ;
    end if ;
    Statements in calling forms:
    There are two calling forms having following statements and it is going to call the above said called form.
    CALLING FORM 1
    Statements in KEY-COMMIT trigger:
    post;
    call_form(form_child, no_activate) ;
    Statements in ON-INSERT trigger:
    select column_1
    from table_a
    for update of column_1
    where column_2 = 'X' ;
    update table_a
    set column_1 = column_1 + 1
    where column_2 = 'X' ;
    insert into table_b ...;
    insert into table_b ...; Statements in KEY-COMMIT trigger:
    post;
    call_form(form_child, no_activate) ;
    CALLING FORM 2:
    Statements in ON-INSERT trigger:
    select column_1
    from table_a
    for update of column_1
    where column_2 = 'X' ;
    update table_a
    set column_1 = column_1 + 1
    where column_2 = 'X' ;
    insert into table_b ...;
    insert into table_b ...;
    insert into table_b ...;
    Our understanding:
    Assume that both the forms are running from two different machines/instances, issuing commit at the same time. In this case, forms will start executing the statements written in ON-INSERT trigger, the moment POST command is executed. Though the commit is issued at the same time, according to oracle, only one of the request will be taken for processing first. Assume that calling form 1 is getting processed first.
    So, it fetches the value available in COLUMN_1 of TABLE_A and locks the row from further select, update, etc. as SELECT...FOR UPDATE command is used (note that NOWAIT is not given, hence the lock will be released only when COMMIT or ROLLBACK happens) and proceed executing further INSERT statements. Because of the lock provided by the SELECT...FOR UPDATE command, the statements in calling form 2 will wait for the resource.
    After executing the INSERT statements, the FORM_CHILD is called. The rows inserted in to TABLE_A will be queried and shown. The database changes will be committed when user closes the window (as COMMIT is issued in its WHEN-WINDOW-CLOSED trigger). Then the SELECT...FOR UPDATE lock will be released and calling form 2's statements will be executed.
    Actual happenings or Mis-behavior:
    Calling form 2 starts executing INSERT statements instead of waiting for SELECT...FOR UPDATE lock. Also, the value selected from TABLE_A.COLUMN_1 is same in both the calling forms, which is wrong.
    The rows inserted into TABLE_B are having similar COLUMN_1 values in calling form 2 and they are fetched and shown in the called form FORM_CHILD.
    Note that in calling form 2 also POST only is issued, but the changes posted there are accessible in calling form 1 also, which is wrong.
    Kindly suggest us as to how to fix above problem. It will be much use, if you can send us the information regarding the behavior of Oracle Forms POST built-in also.
    Our mail ID: [email protected]
    Thanks a lot in advance.

    You have several problems:
    1. On-Insert will ONLY run if you have created a new record in a base-table block. If you haven't done that, then the POST command will not cause it to run.
    2. Select for update without a "no wait" will lock records for the first form, but when the second form tries this, it will hit the ORA-00054 exception, and will NOT wait. The only way you could make it wait is to issue an UPDATE sql command, which is not such a good way to go.
    All POST does is issues SQL insert or update commands for any changes the user has made to records in a form's base-table blocks, without following with a Commit command.
    Also understand that Commit is the same as Commit_Form, and Rollback is the same as Clear_Form. You should read up on these in the Forms help topics.

  • Problem with SUBMIT report [ WITH SELECTION-TABLE ] or [ IN range ]

    Hello Everybody,
    I am trying to call transaction F.80 for mass reversal of FI documents by using SUBMIT sentence and its parameters like this:
      LOOP AT i_zfi013 INTO wa_zfi013.
        PERFORM llena_params USING 'BR_BELNR' 'S' 'I' 'EQ' wa_zfi013-num_doc ''.
    range_line-sign   = 'I'.
    range_line-option = 'EQ'.
    range_line-low    = wa_zfi013-num_doc.
    APPEND range_line TO range_tab.
    endloop.
    Line: -
          SUBMIT sapf080
            WITH br_bukrs-low = p_bukrs
            WITH SELECTION-TABLE it_params  [ same  problem with -  WITH BR_BELNR IN range_tab]
            WITH br_gjahr-low = p_an1
            WITH stogrd = '05'
            WITH testlauf = ''
            AND RETURN.
    My problem is that  when the report is executed the BR_BELNR only delete one document of the all the inputs in the selection criteria from the loop. if I add the statement [ VIA SELECTION-SCREEN] in the SUBMIT if open the multiple selection criteria in the screen I can check that all the documents are set in it from the ABAP code in the loop from it I just need to push F8 to copy them and run the program processing all the documents normally .
    Can some one help me with this? is there a way to execute the transaction BY the SUBMIT with the multiple selection criteria for the Document Number working well?
    Thank for you time and help.

    This is my code:
      TYPES: BEGIN OF T_ZFI013,
              BUKRS     TYPE BUKRS,
              GJAHR     TYPE GJAHR,
              MONAT     TYPE MONAT,
              ANLN1     TYPE ANLN1,
              ANLN2     TYPE ANLN2,
              NUM_DOC     TYPE BELNR_D,
              DATE     TYPE DATUM,
              TIME  TYPE UZEIT,
              USER     TYPE SYUNAME,
             END OF T_ZFI013.
       DATA: I_ZFI013  TYPE STANDARD TABLE OF T_ZFI013,
             WA_ZFI013 TYPE T_ZFI013,
      DATA: br_belnr       TYPE BELNR_D,
            rspar_tab  TYPE TABLE OF rsparams,
            rspar_line LIKE LINE OF rspar_tab,
            range_tab  LIKE RANGE OF br_belnr,
            range_line LIKE LINE OF range_tab."range_tab.
      LOOP AT i_zfi013 INTO wa_zfi013.
        range_line-sign   = 'I'.
        range_line-option = 'EQ'.
        range_line-low    = wa_zfi013-num_doc.
        APPEND range_line TO range_tab.
      ENDLOOP.
      SUBMIT sapf080
        WITH br_bukrs-low = p_bukrs
        WITH br_belnr IN range_tab
        WITH br_gjahr-low = p_an1
        WITH stogrd = '05'
        WITH testlauf = ''.
    This is the RANGE_TAB table before submit:
    1     I     EQ     1001xxxxxx
    2     I     EQ     1002xxxxxx
    3     I     EQ     1003xxxxxx
    4     I     EQ     1004xxxxxx
    5     I     EQ     1005xxxxxx
    6     I     EQ     1006xxxxxx
    7     I     EQ     1007xxxxxx
    8     I     EQ     1008xxxxxx
    I think this wont work for some reason so I will start to do this by a BDC.
    Many thanks for your help.

  • I have 2 email accounts the second one i have only recently added, i have sent one email from my second account but i cant seem to send anymore, it says "cant send email with selected server" i am still able to send emails from my first account. Any ideas

    I have 2 email accounts, the second i only just recently added, i was able to send an email from this account after i added the account but am not able to send anymore emails. It says "unable to send email with selected server" there are no other servers to choose from. please help! TIA

    Hi apmichael,
    If you are having issues sending email from one of your mail accounts on your iPhone, you may find the following article helpful:
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    Regards,
    - Brenden

  • How can I fill a table of objects from cursor with select * bulk collect???

    Hi All, I have a TYPE as OBJECT
    create or replace type dept2_o as object (
    deptno NUMBER(2),
    dname VARCHAR2(14),
    loc VARCHAR2(13));
    I can fill a table of objects from cursor with out select * bulk collect...., row by row
    declare
    TYPE dept2_t IS TABLE of dept2_o;
    dept_o_tab dept2_t:=dept2_t();
    i integer;
    begin
    i:=0;
    dept_o_tab.extend(20);
    for rec in (select * from dept) loop
    i:=i+1;
    dept_o_tab(i):=dept2_o(
    deptno => rec.deptno,
    dname => rec.dname,
    loc =>rec.loc
    end loop;
    for k IN 1..i loop
    dbms_output.put_line(dept_o_tab(k).deptno||' '||dept_o_tab(k).dname||' '||dept_o_tab(k).loc);
    end loop;
    end;
    RESULT
    10 ACCOUNTING NEW YORK
    20 RESEARCH DALLAS
    30 SALES CHICAGO
    40 OPERATIONS BOSTON
    But I can't fill a table of objects from cursor with select * bulk collect construction ...
    declare
    TYPE dept2_t IS TABLE of dept2_o;
    dept_o_tab dept2_t:=dept2_t();
    begin
    dept_o_tab.extend(20);
    select * bulk collect into dept_o_tab from dept;
    end;
    RESULT
    ORA-06550: line 6, column 39;
    PL/SQL: ORA-00947: not enough values ....
    How can I fill a table of objects from cursor with select * bulk collect???

    create or replace type dept_ot as object (
    deptno NUMBER(2),
    dname VARCHAR2(14),
    loc VARCHAR2(13));
    create table dept
    (deptno number
    ,dname varchar2(14)
    ,loc varchar2(13)
    insert into dept values (10, 'x', 'xx');
    insert into dept values (20, 'y', 'yy');
    insert into dept values (30, 'z', 'zz');
    select dept_ot (deptno, dname, loc)
      from dept
    create type dept_nt is table of dept_ot
    declare
       l_depts dept_nt;
    begin
       select dept_ot (deptno, dname, loc)
         bulk collect
         into l_depts
         from dept
       for i in l_depts.first .. l_depts.last
       loop
          dbms_output.put_line (l_depts(i).deptno);
          dbms_output.put_line (l_depts(i).dname);
          dbms_output.put_line (l_depts(i).loc);    
       end loop;
    end;
    /

  • Can NOT update video automatically with selected playlists!

    I just bought my iPod today and when I try to put some video on it, the movie does not appear anywhere.
    when I click on the Video button, the "automatically with selected playlist" option is hidden and I cant click on it, and no video title can be observed.
    Do you have to put video in to certain folder to add them?
    And how come the Automatlcally with selected playlist is hidden?

    I had the same issue, however I used this program;
    http://www.videora.com/en-us/Converter/iPod/
    I'm pasting this from the Videora site, the settings worked for me when others didn't, enjoy:
    Configuring videora converter
    0) Start Videora iPod converter.
    1) Click setup in the left nav.
    1.5) Click the profiles tab.
    2) Click new profile.
    3) Now, configure that profile:
    profile name: ipod
    in the video settings section...
    mode: MPEG-4 > CBR
    resolution: 320x240
    passes: one
    bitrate: 768 kbps (384 kbps also works)
    framerate: 29.97 fps
    in the audio settings section...
    bitrate: 128 kbps
    sample rate: Input
    channels: stereo
    4) Click apply to save the profile.
    Now, you're ready to transcode.
    1) Click convert on the left nav.
    2) Click the transcode new video button.
    3) Pick your source video. Mine was an AVI from a torrent.
    4) Under quality profile, choose "ipod", the profile you created using the steps above.
    5) Click start.
    Now you're ready to get the video on your ipod
    1) In iTunes, under the File menu, select add file to library. Find the transcoded one. By default, the transcoded videos pop out under the Videora install directory.
    2) Drag and drop to your ipod.
    Questions/observations:
    1) I haven't been able to get H264 anything to work. Is it broken? How much smaller than MPEG4 is it?
    2) 768 kbps video was about 400 megs/hour; 384 kbps video was about 231 megs/hour. I could readily see a difference in video quality.

  • Adf Table with selection as set to NONE

    Hi,
    I having a scenario as explained below:
    I am populating records in to the adf Table
    After that I am using checkbox for selecting multiple records in the table and delete them.
    So I set selection property to None for the table. Because I want user to edit only that record which is checked.
    My multiple delete is working fine.
    Now if i selected one checkbox and and click on edit(which I have placed in the panal collection toolbar) it should show me the record in the which I have selected by check box. But it is showing me the first row.
    Can anybody help me to set the current row of the adf table manually which is having selection property as none. so that I can populate in popup.
    If some other way is available please explain.
    I am using jdeveloper 11.1.2.1
    Thanks,
    Sandeep.

    I don't see why you can't set selection property to "single"? (and don't forget to restore table SelectionListener property - if deleted)
    This will set current row when you click on it.
    If you programmatically iterate through RowSet to find rows with selected checkbox, this will work regardless of value in "selection" property.
    Dario
    Edited by: kdario on Nov 7, 2012 5:20 AM
    Edited by: kdario on Nov 7, 2012 5:22 AM

  • How to populate table rows with selected listbox items?

    Hello,
    I am trying to populate a table with selected listbox items. Each item should be a new row in the table. The picture below is the listbox and table I am using. I need to get the selected name to populate the Attendee column of the table when the user clicks the Add button. How do you do this with mutltiple attendees selected?
    Thank you,
    Angie

    So you're considering the fact the if the user clicks the button twice, the name will appear twice and you don't want this, right?
    Then you must check if any value is the same than the one you are about to add in the row..
    for (var i = 0 ; i < ListBox1.length; i++){
         if (ListBox1.getItemState(i) == true){
              for (var x = 0 ; x < Table1._Row1.count; x++){
                   var boNewAttendee = true;
                   var strAttendee = Table1.resolveNode("Row1[" + x.toString() + "]").txtAttendee;
                   var newAttendee = ListBox1.getDisplayItem(i);
                   if (strAttendee.rawValue == newAttendee){
                        boNewAttendee = false;
                        break;
              if (boNewAttendee){
                   txtAttendee.rawValue = ListBox1.getDisplayItem(i);

  • How to lock windows 8.1 with selected applications

    In windows 8.1 how to make a kiosk mode with selected application(Mail, IE, Camera & Reader)

    check this, hope it will answer your question
    http://blogs.technet.com/b/canitpro/archive/2013/12/17/step-by-step-enabling-kiosk-mode-in-windows-8-1-via-assigned-access.aspx

  • File Count with selected date range

    Hi,
    Our requirement is to get the file count with selected date by the user from two sharepoint date time controls i.e. dtp1 and dtp2 into the data table. I am able to get the file count of specific folder from Pages library through below code. Now need to get
    the selected date range from two date time picker controls and check with the item created by is within the date range. If yes I need to get the file count.
    So please share your ideas/thoughts to do the same.
    SPList list =
    wikiweb.Lists["Pages"];
                        SPFolderCollection oFolders
    = list.RootFolder.SubFolders["foldername"].SubFolders;
                        DataTable dt
    = new DataTable();
                        dt.Columns.Add("Column1");
                        DataRow dr;
                        if (oFolders.Count
    > 0)
                            foreach (SPFolder oFolder in oFolders)
     if (!oFolder.Name.Equals("Forms"))
                                    dr
    = dt.NewRow(); 
    dr["Column1"] = oFolder.ItemCount.ToString();
    dt.Rows.Add(dr);
    Regards,
    Sudheer
    Thanks & Regards, Sudheer

    Hi,
    I have modified the code as below
    if((DateTime)(oFolder.Item.File.TimeCreated>dtFromDate.SelectedDate)&&(DateTime)(oFolder.Item.File.TimeCreated<dtToDate.SelectedDate))
    But still it is throwing the error.
    Please share your ideas on the same.
    Regards,
    Sudheer
    Thanks & Regards, Sudheer

  • How to create a DB Adapter with select query having inner query

    Hi All,
    I am trying to create a DB Adapter with select query. The query has some inner queries in it. It is just like this select a, b, c, (select d from e) d, (select e from e) e from tablename.
    The problem here is with the xsd generated for this query. Xsd is not getting generated properly for all the fields it is just getting generated till c element and when it encounters
    the inner query it is stopping the generation of xsd. So for the above query the xsd is something similar to the below
    <xs:complexType name="rewOutput">
    <xs:sequence>
    <xs:element name="a" type="xs:string" nillable="true"/>
    <xs:element name="b" type="xs:string" nillable="true"/>
    <xs:element name="c" type="xs:string" nillable="true"/>
    <xs:element name="select_d" type="xs:string" nillable="true"/>
    </xs:sequence>
    </xs:complexType>
    as shown above the xsd is just getting generated till the first inner query. What should be done to get the full fledged xsd. Should it be manually built ?? Please help me on this.
    Thanks In Advance.
    Edited by: 959766 on Nov 30, 2012 1:20 AM

    Hi,
    I don't think the parser will be able to understand your query properly... I would try building the xsd manually...
    Cheers,
    Vlad

  • Issue with Select options in select statement - ABAP Question

    Hi
    I am facing an issue with select options. Select statement is returning sy-subrc as 4.
    I wrote the program as below:
    SELECT-OPTIONS:
    s_kunnr FOR bsad-kunnr,
    s_lifnr FOR bsak-lifnr,
    s_gjahr FOR bsad-gjahr,
    s_bukrs FOR bsad-bukrs,
    s_saknr FOR bsad-saknr,
    s_budat FOR bsak-budat.
    In start of selection I have written the select statement as
    SELECT * FROM bsak INTO TABLE lt_bsak
    WHERE bukrs IN s_bukrs AND lifnr = s_lifnr AND gjahr IN s_gjahr AND budat IN s_budat AND saknr IN s_saknr.
    In selection screen I have not entered any values and executed the program. I am not getting any result. When I debug that, sy-subrc is 4 at above select statement. But table has records.
    If am removing the "lifnr = s_lifnr " condition in select then select is returning values.
    I am not getting where I made the mistake. Please suggest.
    Thank you
    Hanu

    Hi,
    The problem here with where condition select option lifnr = s_lifnr.
    Use below select query.
    SELECT * FROM bsak INTO TABLE lt_bsak
    WHERE bukrs IN s_bukrs
        AND lifnr     IN s_lifnr
        AND gjahr   IN s_gjahr
        AND budat  IN s_budat
        AND saknr  IN s_saknr.
    s_lifnr is a select option and you are passing it as parameter lifnr = s_lifnr.
    if you want to pass this s_lifnr as single vale then pass in below mentioned way.
    lifnr = s_lifnr-low
    BR,
    Vijay

  • Problem with selecting text in Adobe Reader XI

    Hi all, I am encountering a problem with Adobe Reader XI and it is very strange I could not find an alike issue on the internet so I guess I have to submit a question with it.
    So here it is, I am using Adobe Reader XI Version 11.0.2, operating system: Windows 7. I do not know it starts from when but it has the problem with selecting text - to be copied in pdf documents. I ensure that the documents are not scanned documents but word-based documents (or whatever you call it, sorry I cannot think of a proper name for it).
    Normally, you will select the text/paragraph you want to copy and the text/paragraph will be highlighted, but the problem in this case that I cannot select the text/paragraph, the blinking pointer (| <-- blinking pointer) will just stays at the same location so I cannot select/highlight anything to be copied. It happens oftenly, not all the time but 90%.
    This is very annoying as my work involves very much with copying text from pdf documents, I have to close the pdf file and then open it again so I can select the text but then after the first copying or second (if I am lucky), the problem happens again. For a few text I have to type it myself, for a paragraph I have to close all opening pdf documents and open again so I could select the paragraph to copy. I ran out of my patience for this, it causes trouble and extra time for me just to copying those texts from pdf documents. Does this problem happen to anyone and do you have a solution for this? I would much appreciate if you could help me out, thank you!

    Yeah,  I totally agree, this is very strange. I have always been using Adobe Reader but this problem only occurred ~three months ago. It must be that some software newly installed I think. But I have no idea.
    About your additional question, after selecting the texts and Ctrl + C, the texts are copied and nothing strange happens. It's just that right after I managed to copy the texts, it takes me a while to be able to select the texts again. For your information, I just tested to select the texts and then pressed Ctrl, the problem happened. And then I tried pressing C and then others letters, it all led to the problem.
    I guess I have to stick with left-clicked + Copy until I/someone figure the source of this problem. Thanks a lot for your help!

Maybe you are looking for

  • What's causing this phatom space in Safari and Chrome but not FF

    http://www.energyschool.com/CSES_Home/Resources.html I'm not figuring it out.

  • Editing authorware 3-created files in version 7?

    I have several kiosks in a museum installation running old 1996-era powermacs hosting a quiz program created with Authorware 3 on Mac OS 7.5. This software actually still works fine and it has to control outboard hardware via a serial port so it seem

  • Strange behaviour on default button

    Hi, I have a frame which has a default button (the button which automatically gets triggered when enter key is pressed. And I am popping up a modal dialog on the JFrame which also has it's own default button. The tester kept pressing the enter key fo

  • Extract Metadata from HFM

    Goodmorning, I'm looking for HFM API that could be used by FDM Event Script to extract Account Type (metadata, more generally). Precisely: When I'm importing source account, I've to verify that target account has a specified type, cause I've to chang

  • Create work order using BAPI_ALM_ORDER_MAINTAIN

    Does anybody know how to use BAPI_ALM_ORDER_MAINTAIN to create a maintenance order?  I did a where used and it isn't used by SAP.  The documentation makes it look like I can use it for create but I am not sure how to do that. Regards, Davis