How to attach non-recurring element to employees based on a dynamic query?

Hi,
We have a client requirement where the client wants to attach a non-recurring element to the employees based on some data in a view. The element entry should be done for only those employees who have entry in the view.
Please help on this....

Hi Manuj,
two ways i can think of -
1. Create an Assignment set for all the people who meet the criteria and enter the element entries using BEE.
2. Loop through the view and call the element entry API.
2nd approach is more easier.
Cheers,
Vigneswar

Similar Messages

  • How to create an LOV based on a dynamic query

    Hi,
    Can someone tell me how to query a dynamic query for LOV. On my base page I have a dropdown-box (that will show the table names for searching) and is dynamically populated based on users access e.g. if user A logs in he may see 5 values (these values are basically table names) in a drop down if user B logs in he may see 10 values. I also have two input fields one field a user can enter value and the other field is read only and a torch icon for LOV so the user can search and select values that are populated in the input fields on the base page.
    How can I have my LOV that takes in a value selected in the dropdown and anyvalue entered in one of the input fields and search in the table selected in the dropdown box.
    Basically my LOV should do a search on the table and some search value passed when clicking on the torch icon. So a user can select any table-name in the drop down and my LOV should do a search only on the selected table. Once on the LOV Popup want to have a search field there but it only searched on the table selected in the dropdown on the based page. And the selected value on the LOV Popup page gets populated in fields on the base page.
    Any help is appreciated.
    Thanks

    Hi,
    I have created 4 SQL Based VO's with the following sqls
    SELECT header_id AS ID, to_char(order_number) AS NAME
      FROM oe_order_headers_all
    SELECT party_id AS ID, party_name AS NAME
      FROM hz_parties
    SELECT quote_header_id AS ID,
           (quote_number || CHR (45) || quote_version) AS NAME
      FROM aso_quote_headers
    SELECT sales_lead_id AS ID, to_char(lead_number) AS NAME
      FROM as_sales_leadsI created on LOVRegin and have the following 2 messagestyle items now what do I set in the ViewInstance and View Attribute fields
    srcid
    srcname
    Can you provide some sample code to set ViewUsage and whereclause that I need to put in the controller of LOVRegion.
    Thanks

  • Trouble hiding / showing element with DA based on results of query

    Hi all,
    I have a field that I would like to valid either on keypress or lose focus. What I need to do is query a table with the value entered to determine if it exists. If it does, I want to show a little green checkmark, if not a red 'x'. I figure that I can use getElementById() to hide or show the image, but I can't seem to figure out how to do that based on the result of the query.
    I've tried this so far:
    DA
    event: lose focus
    type: item
    item: P3_PO_REF_NUMBER
    condition: not null
    true action: execute pl/sql code
    code:
    BEGIN
    declare
    l_exists number;
    begin
      select count(*) into l_exists
      from PO_LINE
      where BUSINESS_UNIT = 'METRO' and
        (PO_ID = to_char(:P3_PO_REF_NUMBER,'FM000000000') or PO_ID = 'S'||:P3_PO_REF_NUMBER);
      if l_exists > 0 then
        apex_util.set_session_state('P3_VALID', 'VALID');
      else
        apex_util.set_session_state('P3_VALID', 'NOT_VALUE');
      end if;
    end;
    END;page items to submit: P3_PO_REF_NUMBER
    page items to return: P3_VALID
    Eventually I thought that I'd create another hide/show DA based on the value of P3_VALID, but before I went much further, I wanted to check to see how this worked. It didn't. Error: exception thrown and not caught.
    Any thoughts as to what I'm missing, or am I doing this completely wrong?
    Thanks,
    Joe

    Ok, just for closure. I did get this working.
    I ended up deleting the original P3_PO_REF_NUMBER item and recreated it, and everything began to work. As I was doing this, I noticed that it seemed like things would begin to go awry when I changed the item's name, even if I changed it back again. It was almost as if there was an associated between the DA that became corrupted once the item name was changed. If I took the item out of the page items to submit field, no error. Of course the DA wouldn't fire correctly then either because it wasn't getting any value changes, but when I added the item back into the page items to submit field, I go an error.
    So:
    When I created the second PO_REF_NUMBER item, I did not delete the original first, so the new one of course had to be named differently. Then I modified the DA to use the new item name (PO_REF_NUM). It worked! Cool. So, no wanting to get rid of the original yet, I rename it, and then renamed the second one to what the original was (I have other code using that item name). Then I changed the DA again...but now it failed - unless I blanked out the page items to submit field...
    3rd time is a charm. So, this time, I made sure that no items were named "PO_REF_NUMBER", then I created the PO_REF_NUMBER again, naming it exactly as I needed it to be so I wouldn't have to change it later. Then I set out to tweak the field (size, etc), but did not touch the name. Now my DA is working nicely! It sets a hidden field's value, then another DA shows or hides an icon based on that hidden field's.
    Hopefully someone will find this useful,
    Joe

  • How do you obtain SEQ_ID of a collection based on a SQL QUERY

    I don't know if my brain is not working or what, but how can I access the seq_id of a collection that I display as a SQL Query? I have this SQL Query:
    select
    htmldb_item.checkbox(1,b.asset_id) " ",
    htmldb_item.select_list_from_lov(2,
    'SHARE-UNRESTRICTED','LOV_RESERVATION_MODE',null,'YES') "mode",
    a.seq_id,
    b.asset_no,
    b.device_name,
    b.device_name_attached_to
    from
    htmldb_collections a,
    asset_report_vw b
    where
    a.collection_name = 'CART'
    and a.c001 = b.asset_id
    The user can select the reservation mode from the select list for the Mode field and hit a button to update the cart. I have reviewed documentation and the Collections Showcase demo that showed how to do this with form items, but not from a report. I can't figure out how to get the seq_id to pass to the HTMLDB_COLLECTION.UPDATE_MEMBER_ATTRIBUTE procedure. I tried to create a hidden region item called P9_SEQID but I can't figure out how to set it to the seq_id returned from a query. Using #SEQ_ID# syntax doesn't work.

    I am including the seq_id in my SQL Query report. The sticky point was how to reference the seq_id in an AFTER SUBMIT process to update the collection returned by the SQL Query when the user hit the Apply Changes button (they can edit one of the fields).
    So, I assume then this is how I need to do it. I thought there might be a more efficient way to do it by somehow referencing the seq_id column in the SQL Query report instead of having to requery to get the seq id for each row in the SQL Query:
    -- 'update_cart' AFTER SUBMIT process
    DECLARE
    v_seqid number := null;
    BEGIN
    FOR I in 1..HTMLDB_APPLICATION.G_F02.COUNT LOOP
    select x.seq_id into v_seqid from htmldb_collections x
    where x.collection_name = 'CART'
    and c001 = htmldb_application.g_f01(i);
    HTMLDB_COLLECTION.UPDATE_MEMBER_ATTRIBUTE(
    p_collection_name => 'CART',
    p_seq => v_seq_id
    p_attr_number => 2,
    p_attr_value => htmldb_application.g_f02(i));
    END LOOP;
    END;

  • How to make joins using different tables depending on inputs? Dynamic Query

    Hi,
    I have this situation:
    - A form with a few input messages;
    - Each input corresponds to a table on a DB;
    - A user can search for information filling any input, one or more;
    - With the inputs filled I have to dynamic create the query, execute it and show the returned lines on a table.
    How I am supposed to do that? What is the right way to make it? Can I alter a VO query on runtime including from arguments?
    Any light would be apreciate!
    Thanks,
    Marcelo

    You can make View Object with Dynamic Select Statement.
    See the detailed instructions in the
    oracle.apps.fnd.framework.server.OAViewDef Javadoc for creating a thread-specific view instance at Run time.

  • How to find table name(s) in a dynamic query

    In one of our (9iAS PORTAL)applications, any user can able to run their query statment and get output. All queries will be executed as dynamic SQL thru' a common shema/user who has 'SELECT' privilege on all tables but all users don't have this privilege on all tables. Now, before executing any query I need to find out what are the table name(s) used in this query to check the privilege for the respective user. How do I extract all table names being used in a dynamic query?.
    Thanks
    -Krishnamurthy

    I guess that his users log in to application first, then application uses one account to log in to database, so application are not direct database user since all users share the same account to database. If so, when a user lgins in, you may write it down from application to a database audit table, and you need to write down the dynamic query to the database audit table too, then you may query that audit table to find out. up to here, it looks that your application has to do more to assign what role to a user running the application, since database does not know what user is assessing it.

  • In elements 12 -making a sideshow how to attach itunes music

    in elements 12 -making a sideshow how to attach itunes music

    You need to convert the music into one of the formats supported by Elements:
    Here's an article showing how to convert unprotected music in iTunes to WAV - http://www.aimersoft.com/itunes-drm/itunes-to-wav.html (methods 1 & 2 don't require the product they would like you to buy).
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children

  • TS3999 all my non-recurring appointments have been deleted from my iphone.  The are listed on my pc in outlook under icloud archives.  How do I get these appointments back on my phone

    All my non-recurring appointments have been deleted from my iphone.  They are stored in outlook 2010 under the archiveicloud calander.  How do I restore these appointments to my phone?  Thanks

    The pics are gone.  This is what a restore is.  You erased your iphone, reinstalled your software, then added back your settings from the date of the last backup.
    You should have imported your photos to your computer as you would with any digital pictures, before any restore or update.
    Sorry

  • How to attaching the documents to WBS element in projects .

    Hi Friends,
    Can any one explain me how to attaching the documents in project WBS element. We have u201CDMSu201D server. But I donu2019t know the process. Please explain me step by step the entire process of attaching documents to WBS elements in project.
    Regards,
    Hari Krishan

    Hi...
    Im adding to Expert..Venkats reply.
    Plz see this link
    http://help.sap.com/saphelp_45b/helpdata/en/95/5fdf348840ee64e10000009b38f83b/frameset.htm
    Regards
    Chandra

  • How to attach a text file as an attachment to email message?

    Hello Everybody,
    I have a .csv file, in which details about emp-id, emp-name, e-expenses for Reimbursement and email address are stored.
    My application reads this .csv file, and sends a mail to each employee with his id, salary details in text format. (by changing content type to "text/plain") The code is working fine. But,
    My problem is:
    The message is sent as message body to the end user.
    The end user / the person who receives this mail will not be a technical person. So,
    1) If he trys to take a print out of this e-mail, He get only half of it.(as no. of colums will be more than paper size).
    2) I am finding alignment problem. IF employee name is too big, other columns will shift to right and data will not be exactly under column header. (it is going in zig zag way)
    So, I thought sending text file with all the details as an attachment might do well.
    But, I don't know how to attach a text file to email-message body.
    code
    try
                   {               String s1="";
                                  File f1 = new File(the path);
                                  FileInputStream fstream = new FileInputStream(f1); //new
                                  BufferedReader br = new BufferedReader(new InputStreamReader(fstream));
                                  int count=0;
                                  while((s1=br.readLine())!=null )
                                                 count++;
                                                 //out.println("within while loop "+count);
                                                 StringTokenizer st = new StringTokenizer(s1,",");
                                                 if ((st.hasMoreTokens())&&(count>1))
                                            String a=st.nextToken().trim();
                                                 String b=st.nextToken();
                                                 String c=st.nextToken();
                                                 String d=st.nextToken();
                                                 String e=st.nextToken();
                                                 String f=st.nextToken();
                                                 String g=st.nextToken();
                                                 String h=st.nextToken();
                                                 String i=st.nextToken();
                                                 String j=st.nextToken();
                                                 String k=st.nextToken();
                                                 String l=st.nextToken();
                                                 String m=st.nextToken();
                                                 String n=st.nextToken();
                                                 String o=st.nextToken();
                                                 String p=st.nextToken();
                                                 String q=st.nextToken();
                                                 String mail=st.nextToken();
                                                 String s=st.nextToken();
                                                 //out.println("b="+b+"c="+c+"d="+d+"e="+e+"f="+f+"mail="+mail);
                                                 %>
    <%
                                            String to =mail;
                                                 String from =request.getParameter("fromadd");                                        
                                                 String subject ="Statement of Expenses";
                                                 String smtp ="mail.xxxxxxxxxx.com";
                                                 String message="";                                        
                                                 message=message.concat("EMP ID");
                                                 message=message.concat("     ");
                                                 message=message.concat("Name");
                                                 message=message.concat("          ");
                                                 message=message.concat("Dept No.");
                                                 message=message.concat("     ");
                                                 message=message.concat("Acc No.");
                                                 message=message.concat("     ");
                                                 message=message.concat("*****************************************************************************************");     
                                                 message=message.concat(a);
                                                 message=message.concat("     ");
                                                 message=message.concat(b);
                                                 message=message.concat("          ");
                                                 message=message.concat(c);
                                                 message=message.concat("     ");
                                                 message=message.concat(d);
                                                 Properties props = System.getProperties();
                                                 // Puts the SMTP server name to properties object
                                                 props.put("mail.smtp.host", smtp);
                                                 // Get the default Session using Properties Object
                                                 Session session1 = Session.getDefaultInstance(props, null);
                                                 // Create a New message
                                                 MimeMessage msg = new MimeMessage(session1);
                                                 // Set the From address
                                                 msg.setFrom(new InternetAddress(from));
                                                 // Setting the "To recipients" addresses
                                            msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(to, false));
                                            /* // Setting the "cc recipients" addresses
                                            msg.setRecipients(Message.RecipientType.CC,InternetAddress.parse(cc, false));
                                            // Setting the "Bcc recipients" addresses
                                            msg.setRecipients(Message.RecipientType.BCC,InternetAddress.parse(bcc, false)); */
                                            // Sets the Subject
                                            msg.setSubject(subject);
                                            // set the meaasge in HTML format
                                            msg.setContent(message,"text/plain");
                                            // Set the Date: header
                                            msg.setSentDate(new java.util.Date());
                                            // Send the message
                                            Transport.send(msg);
                                            // Display Success message
                                            result =result.concat("<tr><td>"+b+"</td>"+"<td>"+to+"</td></tr>");
                                                      }//end of if of hasmore element
                                       }// end of while loop
                        out.println(result);                    
    }catch(Exception e)
                        // If here, then error in sending Mail. Display Error message.
                        result="Unable to send your message";
                        out.println("e="+e);
    Any help will be appreciated.
    Thanks and regards.
    Ashvini

    <html>
    <p>
    MimeBodyPart mbp1 = new MimeBodyPart();
    mbp1.setText("Your Messages");
    MimeBodyPart mbp2 = new MimeBodyPart();
    FileDataSource fds = new FileDataSource("Your Attachments");
    mbp2.setDataHandler(new DataHandler(fds));
    mbp2.setFileName(fds.getName());
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp1);
    mp.addBodyPart(mbp2);
    msg.setContent(mp);
    msg.saveChanges();
    msg.writeTo(System.out);
    msg.setSubject(subject);
    Transport.send(msg);
    </p>
    <B><U>See you can add above code in your program and see the magic</U></B>
    Bye
    regards--
    Ashish
    </html>

  • Unable to attach formula with Element

    Hi All,
    I have written a formula with type Oracle Payroll that is 10% based on Basic pay and return a value in a variable,after writing I am unable to associate it with element , If I take the type element input validation it appears in the input value screen in the element window but when I take type Oracle payroll it does not appear ,kindly share your experiences
    Regards,

    Hi,
    A Oracle Payroll type Fast Formula can be attached to an Element using "Formula Results" window.
    Navigation : Total Compensation > Basic > Formula Results
    1. Select the Element to which you want to attach this Formula and click Find.
    2. In Processing Rules block, Select Name as "Standard" and then attach your formula in the "Formula" field.
    3. In Formula Results block, Select Name as the Return Variable you are returing in the Formula and then select "direct result" as Type.
    4. Select the input value of your element to which you want to pass this value.
    5. If you want to pass this value to another element. Then select "Indirect result" as Type, select that element and then select the input value of that element to
    which this variable value needs to be passed.
    6. To pass a value using Indirect result, the destination element should be non-recurring and with lesses priority (higher number).
    Hope this helps you.
    - Sri.
    Edited by: Sri81 on Nov 26, 2008 1:15 AM

  • How to get Manager id automatically when Employee Id is given.

    How to get Manager id automatically when Employee Id is given.
    1) I created a simple BO with two elements namely
        1.Employee Id
        2.Manager id
    How to get employee's first name and last name?
    And how will i get manager id  automatic when i click employee id in element field.
    Anbu.

    Have you tried to use "APPS.FND_CONCURRENT" API?
    http://etrm.oracle.com/pls/trm11510/etrm_pnav.show_object?c_name=FND_CONCURRENT&c_owner=APPS&c_type=PACKAGE
    http://etrm.oracle.com/pls/trm11510/etrm_pnav.show_object?c_name=FND_CONCURRENT&c_owner=APPS&c_type=PACKAGE%20BODY
    Thanks,
    Hussein

  • How to include non database item in the query

    Hi
    I have a Master-Detail form. where in the detail block one of the field is text item 'X' attached the list of values(Y). Master block includes non database items which is based in the decoding result of the database items for example:
    Gender(Male, Female)>> non database item
    Gender_id(M,F)>>database item
    the form is created based on the template.fmb form for apps. When I run the form in the query mode, i can query about any database item while including query about others non database item does not affect.
    how to can i modify it so this could be handled??
    I know that one way to avoid this issue is to create a view with all my desired field.
    but there should be away to override the build in query used by oracle apps...
    any one has a link, source, document... etc that help on this??
    any idea how to do it without creating a view??
    thnx alot

    Hi HST,
    You can code the handling in POST-Query of the corresponding block to retrive the corresponding data depending on the Queried data.
    Regards,
    Kiran

  • Non-editable element in an InDesign document.

    Hello, all.
    I need to add a non editable element to my InDesign document. This element will be my copyright notice. Although I will be sharing this InDesign document with others and will allow them to modify or customize it to their needs I wish to make my copyright notice non-editable so users will not have the option to remove the notice.
    Is there a way to make an element non-editable in an InDesign document so users can modify anything they want but that one element ?
    Thank you,
    Joe.

    In addition, as I explained on my previous e-mail, it should be difficult to implement such a feature considering Adobe currently offers something similar on its Acrobat application.
    My gut feeling here - not meaning to be offensive - is that you probably have no idea how hard or easy it is to lock something down. I am no developer, but I spend enough time working with devs to have a vague idea how hard it is to make something like what you're describing. And Bob is right about, defeating Acrobat security is trivial.
    It is not difficult but impossible to do what you ask for. All you can do is make it difficult to remove your copyright statement, and that difficulty varies according to the technical skills of the person(s) who wish to remove your copyright statement.. In your shoes, I'd just make it annoying to remove, and that would probably defeat 95% of the casual thieves who would file off the serial numbers and call your work their own. Heck, just locking it would defeat more than half of the casual uncredited reuse, if the frequency of posts here is to be believed. Put it behind a locked transparent frame on a locked layer and you've made it more difficult.
    I think that there may well be an untapped market for the feature you are describing, Joe - but if I were once again in your shoes, I'd be pitching it wherever Framemaker users hang out.

  • Please reply to this: non-consecutive element

    Hello Every one,
    How can i process non-consecutive element in the forall loop to update the table . i can not use .exists method as if in not allowed in forall syntax.
    So please can anyone give me example how to process in forall loop.
    in 10g we can use indices of or value of clause. what is the alternative in 9i r2.
    Thank you in advance.
    [                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Please don't create duplicate threads. It's a sure way to be ignored.
    non-consecutive element in collection

Maybe you are looking for

  • Drop-down box population

    I have tried to research this situation through the forums, but all the answers I've found are ... not quite 'it'. I'm working in a relatively small company, producing forms to automate a good deal of the workflow. ( I used to be a Notes Dev and Admi

  • I can't do it! It's not letting me? what do i do now?

    I can't do it! It's not leting me! What do i do now? HELP!

  • Macbook 2.1 Crashing

    Hi! I bought a Macbook 2.1 second hand earlier this year, and pretty much since I've had it it's been having the same problem, but it has become more frequent, to the point where I'm not using it as my computer and I've gone back to a cheap old acer/

  • Singleton node and non singleton practical scenario

    Hi  Friends, Iam totally confused with singleton and non singleton node implementation please explain practical implementation on singleton and nonsingle ton node . In which scenario  non single ton node is used. Thanks in advance Prasad

  • Eps files 20 minutes for saving

    I've bought a new Windows Workstation in order to use my Adobe Illustrator CC. All works fine, i've only this sad problem, my eps files that I worked with my old Windows Workstation (WindowsXP) are very very slow in saving, about 20 min, the program