Creating survey then processing to show results

I'm trying to create a survey and then process the results for display on my iPad.
I have 10 categories with 10 questions in each category. The survey participant provides a score of 1 (less like them) - to - 10 (more like them) and secondly ranks the relevance of the question to their situation: Irrelevant - Somewhat Irrelevant - Somewhat Relevant - Relevant to weight the score's importance to the participant.
With Excel I've been using a basic spreadsheet for inputting the data and then on a following Sheet showing the results in a Radar Chart which has been really effective in showing the results (A) by category charting, (B) then show breakdown of indiviual questions charted within each category.
Well of course Excel does not work on the iPad except through third-party apps and Numbers doesn't do Radar Charts.
I'm hoping someone out there might have a suggestion on how to get this to work on my iPad or to provide an effective alternative.
Example:
Category
Question:     Input ____     Relevance ____
Question:     Input ____     Relevance ____
Question:     Input ____     Relevance ____
Category
Question:     Input ____     Relevance ____
Question:     Input ____     Relevance ____
Question:     Input ____     Relevance ____
Category
Question:     Input ____     Relevance ____
Question:     Input ____     Relevance ____
Question:     Input ____     Relevance ____

Hi Josh,
I'm having a little difficuluty understanding what should be included in my restricted key figures.
The time characteristics that I have available to use are:
0FISCPER3 (posting period)
0FISCYEAR (fiscal year), currently using SAP EXIT to default current fiscal year.
0FISCVARNT (fiscal year variant).
In addition, I have the following characteristics available to be used in the columns:
Value type (10)
version (currently I'm using variable for it)
Currency type (020)
Currency (USD).
Can you explain what my restricted key figure should be based on and how it should look.
I tried to create a restircted key figure using 0AMOUNT, and 0FISCPER3. For 0FISCPER3  I created a range from 1 to previous period (using SAP EXIT that supplied previous period).I also had value type, version, currency type, and currency included in that restricted key figure.Then when I tried to drag 0FISCPER3 under the restricted key figure once again, it wouldn't let me, probably because I've already used 0FISCPER3 in the restricted key figure.
Please let me know if my explanation is not clear.
Your step by step help would be great.
Thanks
Edited by: Ehab Mansour on Sep 23, 2008 2:40 PM

Similar Messages

  • How to show result from process in popup page?

    <br>We want to use one popup page for many information in application. So we want to make the following thing.
    <br>We want to execute process and show result in popup page (through hidden parameter-"P2_MESSAGE").
    <br>We also assign title of region on that popup page through "P2_TITLE".
    <br>What I do not know is how to show popup after process-branch problem.
    <br>Process is executed from one button. Button is located on page "28" and popup page is "2"
    <br>Code for javascript should be like:
    <br>
    javascript:popupURL('f?p=&APP_ID.:2:&APP_SESSION.::::P2_TITLE,P2_MESSAGE:'+'status '+','+'&P28_X.')<br>THX

    I have found in one thread:
    <br>
    <br>1) create an application item APP_ONLOAD (of course you can choose your own name)
    <br>2) create an application level before footer computation on APP_ONLOAD to clear the item after the page is generated.
    <br>3) place &APP_ONLOAD. (dot also) in the on load property of the page.
    <br>4) fill the APP_ONLOAD using :APP_ONLOAD := 'onload="your own javascript to call a popup window;"' in the plsql of an after On Submit - After Computations and Validations process (type PL/SQL anonymous block)
    Fill the when button pressed property of the process with the button you want to use to show the popup.
    <br>5) create a branch to branch to the current page (or a other if you wish)
    <br>
    Looks OK but when I create in PL/SQL js with "&" signe, which I use for filling some hidden values in popup page I get error.
    begin
      is_test_ok (1, :P28_X);
      :APP_ONLOAD := 'onload="javascript:popupHeightURL(''f?p=&APP_ID.:2:&APP_SESSION.::::P2_TITLE,P2_MESSAGE:''+''statusu testova''+'','+''&P28_X.'')"';
    end;<br>Should I use ASCII codes for that or what? Any example please!
    <br>THX

  • SAP hana Visualize Plan show Create Temp Index and it shows Unsupported Operator Order.  Why the hana build temp index and how to get rid of it ?

    When I see the Visualize Plan for SQLScript it show Create Temp Index at many Places.
    It also shows unsupported operator order CS_JOIN over CS_AGGREGATION.
    Why does hana create Temp Index and how to get rid of it.

    Just browsing for some more information on this operation, and it just happened that my favorite VizPlan expert has chimed in here
    I have a scenario where I am using a nested SQLScript based calc view. One view (child view) retrieves a relatively small data set, then the main CV takes that and joins with a bunch of other data from another schema.
    When I started out, just the nested portion of (child calc view), takes roughly 800ms to return it's resultset, for which I was pleased. Now, when I added some other joins onto that dataset in the main CV, I am seeing my runtime spike to approximately 16 seconds, with 15 seconds being spent on a "Create Temp Index" process that only results in 12 rows (from what I can see).
    Now the question becomes - since I have identified where 95+% of my runtime is being generated, how can I really pinpoint what operation is causing this? I was thinking the ID column (shown in the details) may offer some clues if one knew how to locate the details in a system table somewhere?
    Otherwise, all I can see in the VizPlan is that YES there is a long running component, but I have no idea what it might be, therefore can't do anything about it
    Regards,
    Justin

  • Create Role using SPRO_ADMIN has access to more t-codes then what it shows.

    In SPRO_ADMIN I created a Customizing Project and gave it a scope of:
    - SAP NetWeaver
    - Enterprise Structure
    - Cross-Application Components
    - SAP xApp Resource and Portfolio Management (SAP xRPM)
    - Strategic Enterprise Management/Business Analytics
    - Integration with Other mySAP.com Components
    When I added the customizing authorizations from this project to the role it displayed that 3500 t-codes were added.
    I checked SUIM under "Roles by Role name" and clicked on the Transaction assignment button and 3500 t-codes were displayed.
    I then checked SUIM under "Transactions --> Executable for Roles" and it says there are 95,972!
    How is this possible?
    When I added the role to users they were able to get to t-codes that I couldn't find in the menu.
    I have tried deleting the role and re-adding the customizing auth to a role with a different name.  I have tried deleting the
    customizing project in SPRO_ADMIN and re-creating that then adding it to a different role.  I have tried taking a list of all
    the t-codes that are in this role, creating a new role and adding them through the text file import. All of these examples have
    the same result given above.
    Any ideas on how to create this role so that it only has access to the 3500 t-codes it is supposed to have?
    Thank you in advance for your help!
    Neil

    > There is an entry that has 0 for low and ZZZZZZZZZZZZZZZZZZZZ for high.  How would this have gotten added?  I tried to go into PFCG and remove this line under s_tcode and it will only allow me to view. 
    Then you are experiencing the same as PIQAGR_CUST, but with other consequences and a different source. An S_TCODE, S_RFC and S_SERVICE authorization which is display only is either in the menu or pulled in from SU24.
    To find the offending transaction, go to table USOBT_C field HIGH and search for Z* to find it and remove it from SU24. Also check SU22 to see whether it was added there... There might be more than one and other roles will be impacted when they are opened in expert mode!
    Then go to USOBT_CD and find the change document for that transaction code for field HIGH = ZZZZZZZZ... and the user name and date of the change.
    Find that person, and show them this thread...
    You might want to check all other roles which have this transaction in the menu... as that will probably be the origin of the problem and give you an insight into their frustration (and this "workaround" solution).
    What you are doing is a hard day's work and for SPRO related roles this solution (or manual authorizations and profiles) is not uncommon to observe.
    If the quality of the SU22 data were better then it would be less of a hassle and problem. In SU24 you can tune it and remove such things, but ideally the original system should do this. With each support package SAP improves this data, but there is still a lot of standard junk in there as well.
    Retrofitting security is always the most expensive option....
    Cheers,
    Julius
    Edited by: Julius Bussche on Jan 14, 2010 11:00 PM

  • Itouch goes through restore process then will not show home screen

    itouch goes through restore process then will not show home screen. Only apple logo shows and flashes periodically.

    - Try:
    iOS: Not responding or does not turn on
    - If not successful and you can't turn the iPod fully off, let the battery fully drain. After charging for at least an hour try the article again.
    - If still problem that indicates a hardware problem and an appointment at the genius Bar of an Apple store is in order.

  • TS3694 after updating i lost alll settings in phone. nw showing recovery mode, then i try to recover it but after some process its showing error 1015 what to do?

    after updating i lost alll settings in phone. nw showing recovery mode, then i try to recover it but after some process its showing error 1015 what to do?

    What OS prior to update? Jailbroken?

  • A php search engine that only shows results that match entire serch string

    I have set up a dreamweaver search engine through php and a fulltext search (WHERE MATCH (....) AGAINST (...). However, when someone inputs more than one word into the search form, the search engine churns out results that only have one of those words. How do I get it to only show results that have all the search string words inside? (or, at least, how do I get those results to show up at the top?)
    I have seen some advice (here) that uses php code to process the search query, divide up the words, and place a BOOLEAN '+' between each of the words. By doing this, the search engine will only show results that fully match all the terms.
    My problem is that I do not know how to put this code into my Dreamweaver-created code.
    My dreamweaver created code:
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $form_rsSearch = "-1";
    if (isset($_get['search'])) {
      $form_rsSearch = $_get['search'];
    mysql_select_db($database_dataConnect, $dataConnect);
    $query_rsSearch = sprintf("SELECT title, content FROM encyclopedia WHERE MATCH (title, content) AGAINST (%s)", GetSQLValueString($form_rsSearch, "text"));
    $rsSearch = mysql_query($query_rsSearch, $dataConnect) or die(mysql_error());
    $row_rsSearch = mysql_fetch_assoc($rsSearch);
    $totalRows_rsSearch = mysql_num_rows($rsSearch);
    $input_rsSearchResults = "-1";
    if (isset($_GET['search'])) {
      $input_rsSearchResults = $_GET['search'];
    mysql_select_db($database_EMdataConnect, $dataConnect);
    $query_rsSearchResults = sprintf("SELECT title, content FROM encyclopedia WHERE MATCH(title, content) AGAINST(%s)", GetSQLValueString($input_rsSearchResults, "text"));
    $rsSearchResults = mysql_query($query_rsSearchResults, $dataConnect) or die(mysql_error());
    $row_rsSearchResults = mysql_fetch_assoc($rsSearchResults);
    ?>
    and the code the website (link above) gives is:
    function search(String $search_string) {
         //strip Boolean search characters out of search string
         $search_string = string_replace($search_string,"+","");
         $search_string = string_replace($search_string,"-","");
         $search_string = string_replace($search_string,"*","");
         //split the search string up into an array of words
         Array $tokenized_search = split($search_string, " ");
         //init an empty final search string
         String $processed_search = "";
         //for each word in the search, wrap it
         //with an + and * character and then append
         //it to the processed_search variable
         foreach($tokenized_search as $token) {
              $processed_search+="+"+$token+"* ";
         //build the sql for the query and query the DB
         String $db_query = "select id, description
              from product_descriptions
              where MATCH(description)
              AGAINST ('"+$processed_search+"' IN BOOLEAN MODE)";
         Array results = execute_database_query($db_query);
         return results;
    If anyone can instruct me on the correct way to go about this, I would be very much obliged.
    Thank you,
    YWSW

    Don't use the Search bar, type the address in the Location bar.

  • 15" i7 Macbook Pro from early 2011.takes the mac laptop two or three tries to boot successfully. It would turn on, show gray screen, shut down, turn on again, show gray screen, shutdown, and then turn on, show gray screen, before it can finally get

    Hello All,
    I have a 15" i7 Macbook Pro from early 2011. The past few weeks, it has been getting increasingly difficult to get on my computer. It takes the mac laptop two or three tries to boot successfully. It would turn on, show gray screen, shut down, turn on again, show gray screen, shutdown, and then turn on, show gray screen, before it can finally get to the dark gray log-in screen. Even when I finally get logged in to start working, thinking it would be okay now, it shuts down randomly.
    I've ruled out the possibility of a software problem because I've just done a clean re-install of Mac OS X Mavericks on my computer just yesterday.
    I did upgrade the RAM recently, about a month and a half ago, from 4GB to 16GB, I went to the apple store four days after that upgrade to have them do a hardware test, and clean the inside of my laptop, which helped with previous heat issues. When they did the hardware test, the hardware was all registered as fine from their system.
    I've tried resetting the SMC, PRAM, and doing the internet recovery hardware test, but to no avail. I thought I could at least find out what parts needed to be replaced from the hardware test but it seems that when the hardware test is almost finished, the computer just shuts down, So I am unable to see the results.
    My computer is also having battery issues, under battery condition, it says "replace now," parts have been ordered, waiting for arrival. But if the battery health is low, it should still boot up fine, it would just hold a significantly less charge.
    Could this be a hard drive issue?
    Has anyone had similar symptoms and how was it resolved?
    Does anyone know what I can do to alleviate this issue?
    I haven't had time to take it to Apple because I'm currently taking a 21 credit semester academically. I'm an art and design student so my computer is basically the bane of my existence. Help! Any constructive advice is welcomed!
    Thank you so much for your input!
    -Christina C.

    Problem description:
    The Hard Disk is failing.
    EtreCheck version: 2.0.11 (98)
    Report generated November 4, 2014 at 7:59:28 AM EST
    Hardware Information: ℹ️
      MacBook Pro (15-inch, Early 2011) (Verified)
      MacBook Pro - model: MacBookPro8,2
      1 2.2 GHz Intel Core i7 CPU: 4-core
      16 GB RAM Upgradeable
      BANK 0/DIMM0
      8 GB DDR3 1600 MHz ok
      BANK 1/DIMM0
      8 GB DDR3 1600 MHz ok
      Bluetooth: Old - Handoff/Airdrop2 not supported
      Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
      Intel HD Graphics 3000 - VRAM: 512 MB
      Color LCD 1440 x 900
      AMD Radeon HD 6750M - VRAM: 1024 MB
    System Software: ℹ️
      OS X 10.9.5 (13F34) - Uptime: 0:3:43
    Disk Information: ℹ️
      TOSHIBA MK7559GSXF disk0 : (750.16 GB)
      S.M.A.R.T. Status: Verified
      EFI (disk0s1) <not mounted> : 210 MB
      HDV4 (disk0s2) /  [Startup]: 749.30 GB (712.10 GB free)
      Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
      MATSHITADVD-R   UJ-898 
    USB Information: ℹ️
      Apple Inc. FaceTime HD Camera (Built-in)
      Apple Inc. BRCM2070 Hub
      Apple Inc. Bluetooth USB Host Controller
      Apple Inc. Apple Internal Keyboard / Trackpad
      Apple Computer, Inc. IR Receiver
    Thunderbolt Information: ℹ️
      Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
      Mac App Store and identified developers
    Kernel Extensions: ℹ️
      /Library/Application Support/Avast/components/fileshield/unsigned
      [loaded] com.avast.AvastFileShield (2.1.0 - SDK 10.9) Support
      /Library/Application Support/Avast/components/proxy/unsigned
      [loaded] com.avast.PacketForwarder (1.4 - SDK 10.9) Support
    Launch Agents: ℹ️
      [not loaded] com.adobe.AAM.Updater-1.0.plist Support
      [loaded] com.avast.userinit.plist Support
    Launch Daemons: ℹ️
      [invalid?] com.adobe.SwitchBoard.plist Support
      [loaded] com.avast.init.plist Support
      [loaded] com.avast.uninstall.plist Support
      [loaded] com.avast.update.plist Support
      [invalid?] com.perion.searchprotectd.plist Support
    User Launch Agents: ℹ️
      [invalid?] com.avast.home.userinit.plist Support
      [loaded] com.google.keystone.agent.plist Support
      [invalid?] com.jdibackup.ZipCloud.autostart.plist Support
    User Login Items: ℹ️
      None
    Internet Plug-ins: ℹ️
      AdobePDFViewer: Version: 10.1.1 Support
      QuickTime Plugin: Version: 7.7.3
      JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Check version
      Default Browser: Version: 537 - SDK 10.9
    User Internet Plug-ins: ℹ️
      TroviNPAPIPlugin: Version: 1.0 - SDK 10.9 Support
      Google Earth Web Plug-in: Version: Unknown
    Safari Extensions: ℹ️
      Avast Online Security
      Trovi Search for Safari
    3rd Party Preference Panes: ℹ️
      None
    Time Machine: ℹ️
      Time Machine not configured!
    Top Processes by CPU: ℹ️
          16% mds
          7% WindowServer
          1% loginwindow
          1% fontd
          1% com.avast.daemon
    Top Processes by Memory: ℹ️
      120 MB com.avast.daemon
      86 MB Google Chrome
      52 MB Finder
      52 MB WindowServer
      41 MB Google Chrome Helper
    Virtual Memory Information: ℹ️
      13.45 GB Free RAM
      1.34 GB Active RAM
      944 MB Inactive RAM
      1.43 GB Wired RAM
      1.11 GB Page-ins
      0 B Page-outs

  • Problem with store ResultSet and show result in table

    Hi, I'm kind of new in ADF, I need to store ResultSet and show result in table-component. I have two problems:
    1) I get my ResultSet by calling callStoredProcedure(...) and this returns actually ref_cursor as ResultSet.
    When I try to println() contains of this result set in this method - it works OK (commented part),
    but when I want to println() somewhere else (eg. in retrieveRefCursor() method) it doesn't work.
    The problem is that the scrollability of the ResultSet is lost - it becomes a TYPE_FORWARD_ONLY ResultSet.
    Is there any way to store data from ref_cursor for a long time?
    2) My second problem is "store any result set and show this data in table". I have tried use method storeNewResultSet() but
    without result (table contains only "No rows yet" and everything seems to be OK - no exception, no warning, no error...).
    I have tried to call this method with ResultSet from select on dbs (without resultSet as ref_cursor ) - no result with createRowFromResultSet(),
    storeNewResultSet(), setUserDataForCollection()...
    I've tried a lot of ways to do this, but it doesn't work. I really don't know how to make it so it can work.
    Thanks for your help.
    ADF BC, JDev 11.1.1.0
    This is my code from ViewObjectImpl
    package tp.model ;
    import com.sun.jmx.mbeanserver.MetaData ;
    import java.sql.CallableStatement ;
    import java.sql.Connection ;
    import java.sql.PreparedStatement ;
    import java.sql.ResultSet ;
    import java.sql.ResultSetMetaData ;
    import java.sql.SQLException ;
    import java.sql.Statement ;
    import java.sql.Types ;
    import oracle.jbo.JboException ;
    import oracle.jbo.server.SQLBuilder ;
    import oracle.jbo.server.ViewObjectImpl ;
    import oracle.jbo.server.ViewRowImpl ;
    import oracle.jbo.server.ViewRowSetImpl ;
    import oracle.jdbc.OracleCallableStatement ;
    import oracle.jdbc.OracleConnection ;
    import oracle.jdbc.OracleTypes ;
    public class Profiles1ViewImpl extends ViewObjectImpl {
        private static final String SQL_STM = "begin Pkg_profile.get_profile_list(?,?,?,?);end;" ;
        public Profiles1ViewImpl () {
        /* 0. */
        protected void create () {
            getViewDef ().setQuery ( null ) ;
            getViewDef ().setSelectClause ( null ) ;
            setQuery ( null ) ;
        public Connection getCurrentConnection () throws SQLException {
            // Note that we never execute this statement, so no commit really happens
            Connection conn = null ;
            PreparedStatement st = getDBTransaction ().createPreparedStatement ( "commit" , 1 ) ;
            conn = st.getConnection () ;
            st.close () ;
            return conn ;
        /* 1. */
        protected void executeQueryForCollection ( Object qc , Object[] params , int numUserParams ) {
            storeNewResultSet ( qc , retrieveRefCursor ( qc , params ) ) ;
            // callStoredProcedure ( qc , SQL_STM ) ;
            super.executeQueryForCollection ( qc , params , numUserParams ) ;
        /* 2. */
        private ResultSet retrieveRefCursor ( Object qc , Object[] params ) {
            ResultSet rs = null ;
            rs = callStoredProcedure ( qc , SQL_STM ) ;
            return rs ;
        /* 3. */
        public ResultSet callStoredProcedure ( Object qc , String stmt ) {
            CallableStatement st = null ;
            ResultSet refCurResultSet = null ;
            try {
                st = getDBTransaction ().createCallableStatement ( stmt , 0 ) ; // call 
                st.setObject ( 1 , 571 ) ; //set id of my record to 571
                st.registerOutParameter ( 2 , OracleTypes.CURSOR ) ; // my ref_cursor
                st.registerOutParameter ( 3 , Types.NUMERIC ) ;
                st.registerOutParameter ( 4 , Types.VARCHAR ) ;
                st.execute () ; //executeUpdate
                System.out.println ( "Numeric " + st.getObject ( 3 ) ) ;
                System.out.println ( "Varchar " + st.getObject ( 4 ) ) ;
                refCurResultSet = ( ResultSet ) st.getObject ( 2 ) ; //set Cursoru to ResultSet
                //   setUserDataForCollection(qc, refCurResultSet); //don't work
                //   createRowFromResultSet ( qc , refCurResultSet ) ; //don't work
                /* this works but only one-time call - so my resultSet(cursor) really have a data
                while ( refCurResultSet.next () ) {
                    String nameProfile = refCurResultSet.getString ( 2 ) ;
                    System.out.println ( "Name profile: " + nameProfile ) ;
                return refCurResultSet ;
            } catch ( SQLException e ) {
                System.out.println ( "sql ex " + e ) ;
                throw new JboException ( e ) ;
            } finally {
                if ( st != null ) {
                    try {
                        st.close () ; // 7. Close the statement
                    } catch ( SQLException e ) {
                        System.out.println ( "sql exx2 " + e ) ;
        /* 4. Store a new result set in the query-collection-private user-data context */
        private void storeNewResultSet ( Object qc , ResultSet rs ) {
            ResultSet existingRs = getResultSet ( qc ) ;
            // If this query collection is getting reused, close out any previous rowset
            if ( existingRs != null ) {
                try {
                   existingRs.close () ;
                } catch ( SQLException s ) {
                    System.out.println ( "sql err " + s ) ;
            setUserDataForCollection ( qc , rs ) ; //should store my result set
            hasNextForCollection ( qc ) ; // Prime the pump with the first row.
        /*  5. Retrieve the result set wrapper from the query-collection user-data      */
        private ResultSet getResultSet ( Object qc ) {
            return ( ResultSet ) getUserDataForCollection ( qc ) ;
        // createRowFromResultSet - overridden for custom java data source support - also doesn't work
       protected ViewRowImpl createRowFromResultSet ( Object qc , ResultSet resultSet ) {
            ViewRowImpl value = super.createRowFromResultSet ( qc , resultSet ) ;
            return value ;
    }

    Hi I have the same problem like you ...
    My SQL Definition:
    CREATE OR REPLACE TYPE RMSPRD.NB_TAB_STOREDATA is table of NB_STOREDATA_REC
    CREATE OR REPLACE TYPE RMSPRD.NB_STOREDATA_REC AS OBJECT (
       v_title            VARCHAR2(100),
       v_store            VARCHAR2(50),
       v_sales            NUMBER(20,4),
       v_cost             NUMBER(20,4),
       v_units            NUMBER(12,4),
       v_margin           NUMBER(6,2),
       v_ly_sales         NUMBER(20,4),
       v_ly_cost          NUMBER(20,4),
       v_ly_units         NUMBER(12,4),
       v_ly_margin        NUMBER(6,2),
       v_sales_variance   NUMBER(6,2)
    CREATE OR REPLACE PACKAGE RMSPRD.NB_SALES_DATA
    AS
    v_sales_format_tab   nb_tab_storedata;
    FUNCTION sales_data_by_format_gen (
          key_value         IN       VARCHAR2,
          l_to_date         IN       DATE DEFAULT SYSDATE-1,
          l_from_date       IN       DATE DEFAULT TRUNC (SYSDATE, 'YYYY')
          RETURN nb_tab_storedata;
    I have a PLSQL function .. that will return table ..
    when i use this in sql developer it is working fine....
    select * from table (NB_SALES_DATA.sales_data_by_format_gen('TSC',
                                        '05-Aug-2012',
                                        '01-Aug-2012') )
    it returning table format record.
    I am not able to call from VO object. ...
    Hope you can help me .. please tell me step by step process...
    protected Object callStoredFunction(int sqlReturnType, String stmt,
    Object[] bindVars) {
    System.out.println("--> 1");
    CallableStatement st = null;
    try {
    st = getDBTransaction().createCallableStatement("begin ? := " +"NB_SALES_DATA.sales_data_by_format_gen('TSC','05-Aug-2012','01-Aug-2012') ; end;", 0);
    System.out.println("--> 2");
    st.executeUpdate();
    System.out.println("--> 3");
    return st.getObject(1);
    catch (SQLException e) {
    e.printStackTrace();
    throw new JboException(e);

  • How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?

    How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?
    I currently run OS X 10.10.1
    Now i have been trying to work on this for a while now and what i want to do should be simple but its apparently not.
    Here is an example of what i want to happen.
    I will have 2 tabs: Contact | Sales
    Now Contacts will have the list of names and various information about a customer, While Sales will have one drop-down box for each Cell Row that will show the names of the person in tab contacts
    for what i am wanting to do i cant use the data format pop-up menu because the list is edited everyday several times a day.
    Now how do i do this, Excel can do this so how can numbers do it?

    Hi Shegra,
    Paste this into a applescript editor window and run it from there. In the script you may need to adjust the four properties to agree with your spreadsheet. Let me know if you have any questions.
    quinn
    Script starts:
    -- This script converts column A in one table into an alphabetized list of popups. It copies the last cell in that column. Then reverts the column to text. It then refreshes popups in column A of a data table starting with a user defined row.
    property DataEntrySheet : "Sheet 1" --name of sheet with popups to be refreshed
    property DataEntryTable : "Sales" --name of table with popups to be refreshed
    set copyRange to {}
    property PopValueSheet : "Sheet 1" --name of sheet with popup values table
    property PopValueTable : "Contacts" --name of table with popup values
    set PopStartRow to {}
    tell application "Numbers"
      set d to front document
      set ps to d's sheet PopValueSheet
      set pt to ps's table PopValueTable
      set s to d's sheet DataEntrySheet
      set t to s's table DataEntryTable
      set tf to t's filtered --this records filter setting on data Entry Table
      display dialog "Start from row #..." default answer "" with icon 1 -- with icon file "Path:to:my.icon.icns" --a Week # row
      set PopStartRow to {text returned of result}
      tell pt --convert list to alphabetized popups
      set ptRows to count rows
      set copyRange to ("A2:" & name of cell ptRows of column "A")
      set selection range to range copyRange
      set selection range's format to text
      sort by column 1 direction ascending
      set selection range's format to pop up menu
      -- popupsmade
      set selection range to cell ptRows of column 1 of pt
      set v to value of cell ptRows of pt
      end tell
      activate application "Numbers"
      tell application "System Events" to keystroke "c" using command down
      tell pt
      set selection range to range copyRange
      set selection range's format to text
      end tell
      tell t
      set filtered to false
      set tRows to count rows
      set pasteRange to ((name of cell PopStartRow of column "A") & ":" & (name of cell tRows of column "A"))
      set selection range to range pasteRange
      tell application "System Events" to keystroke "v" using command down
      set filtered to tf
      end tell
    end tell

  • When adding ringtones (created by ringtone app) they show in music tab nor tones. the file type in 'get info' is 'ringtone'. Why is this?

    When adding ringtones (created by ringtone app) they show in music tab nor tones. the file type in 'get info' is 'ringtone'. Why dont they display in the 'tones' tab in itunes?  How can I get them to display under 'tones' not 'music'.

    Well, I tried rebuilding the Launch services with the command listed but still no luck. After having no luck with that and deleting caches, etc....I also, went to my home (user) directory and in Preferences, I deleted the com.apple.launchservices.plist file. I restarted and checked and still the same result.
    Also, I want to emphasize again that the file type I am discussing DOES actually launch with the correct application. (Cubase files in my example).
    But it is just annoying that ALL of my Cubase files display the Pro Tools application icon, and in Get Info they are listed to open with Pro Tools. But they actually do launch Cubase if double clicked.
    And one other VITAL note....if I open Get Info for one of these files, and change the Open With from Pro Tools to Cubase....then that choice DOES "stick" and retain. (if I "don't" also click Change All)
    It's only when I click "Change All" that it DOESN'T stick and the list selection jumps back to Pro Tools. I hope that may offer some clarity.
    Thanks for the tips but I am still back at square one.
    Wade

  • Function/Procedure help - just want to build simple query and show results

    I'd like a simple "histogram" function - perhaps there is one built-in I'm not aware of. I just want to count discrete values of a column. So I'm constantly writing queries of the form:
    select column_name, count(*)
    from table_name
    group by column_name
    order by column_name;
    and I'm trying to write a function that will allow me to just type:
    execute whatever(column_name, table_name)
    or select whatever(column_name, table_name) from ?
    and get the equivalent results from the query above.
    How do you, or can you, write a procedure to take column/table names as inputs, substitue them into a query, execute the query and just display the results of that query? As I'm trying to figure out how to do this via google search, I keep going down rabbit holes of creating temporary tables/data types/records/refcursors etc. and I can't get any of it to compile. I'm not a DBA or SQL expert, so I'm hoping there's a simple way to accomplish this (without having to store and then process the "results" one row at a time)

    If I understand the requirement correctly, a simple pipelined function will do it:
    Dynamic
    GROUP_VALUE                    NUM_RECS
    10                                    1
    20                                    2
    30                                    6
    40                                    1
    50                                   45
    60                                    5
    70                                    1
    80                                   34
    90                                    3
    100                                   6
    110                                   2
                                          1
    12 rows selected.
      1  SELECT *
      2* FROM TABLE (Gen_Counts.Group_Count ('EMPLOYEES', 'DEPARTMENT_ID'))
    Static
    DEPARTMENT_ID   COUNT(*)
               10          1
               20          2
               30          6
               40          1
               50         45
               60          5
               70          1
               80         34
               90          3
              100          6
              110          2
                           1
    12 rows selected.
      1  SELECT department_id, Count(*)
      2    FROM employees
      3   GROUP BY department_id
      4*  ORDER BY 1The types and package code is:
    CREATE OR REPLACE TYPE group_count_type IS OBJECT
        (group_value VARCHAR2(4000), num_recs NUMBER);
    CREATE OR REPLACE TYPE group_count_list_type IS TABLE OF group_count_type;
    CREATE OR REPLACE PACKAGE Gen_Counts IS
    FUNCTION Group_Count (p_tab_name VARCHAR2, p_col_name VARCHAR2) RETURN group_count_list_type PIPELINED;
    END Gen_Counts;
    CREATE OR REPLACE PACKAGE BODY Gen_Counts IS
    FUNCTION Group_Count (p_tab_name VARCHAR2, p_col_name VARCHAR2) RETURN group_count_list_type PIPELINED IS
      l_cur             SYS_REFCURSOR;
      l_rec_list    group_count_list_type;
      l_cur_str     VARCHAR2(1000) := 'SELECT group_count_type (' || p_col_name || ', Count(*)) FROM ' || p_tab_name ||
        ' GROUP BY ' || p_col_name || ' ORDER BY ' || p_col_name;
    BEGIN
      OPEN l_cur FOR l_cur_str;
      DBMS_Output.Put_Line (l_cur_str);
      LOOP
        FETCH l_cur BULK COLLECT
         INTO l_rec_list LIMIT 1000;
        EXIT WHEN l_rec_list.COUNT = 0;
        FOR i IN 1..l_rec_list.COUNT LOOP
          PIPE ROW (group_count_type (l_rec_list(i).group_value, l_rec_list(i).num_recs));
        END LOOP;
      END LOOP;
    END Group_Count;
    END Gen_Counts;
    /Edited by: BrendanP on 06-Sep-2012 07:18
    Just to be clear - I'm not saying it's a great idea to do that, just that's a way of doing it technically. I'd just use the static way myself.

  • Survey Suite process steps

    Hi
    Can you post the process steps involved in configuring survey suite.
    Thx

    Hi ,
    The below are the steps for the Survey Suite process .
    > Open transaction CRM_SURVEY_SUITE
    > Left side you get to see the Application Areas like Leads , Opportuities , Activities , Marketing , Contract , Examples etc.... Click on the Application that you would like to create the Survey .
    > You get to see the Popup displayed on your screen . Enter the name of your Survey .
        Then you get the Popup saying 'Survey does not exist new Templete will be created ' .
        The control will be taken to new screen .
    > Left side of the screen the first option you see is the 'Title of the Survey ' . Right hand side screen you can type the Survey Title and Save it .
    > The option you find ' Maintain Text and Attributes ' . Right Click on this and select ' Insert Question ' .
    > Right hand side you need to fill the ' Attributes for the Question '  like
      Question Text and the Rating Factor .
    > Right Click on the ' Question ' and select the ' Insert Answer ' option . And Right hand side you get the different Answer types and select accordingly and also enter the Rating Factor .
    This is the procedure to create the Survey Questionnire . And based on the Rating Factor qualification of the Survey depends .
    Hope it helps you in the Survey Creation process .
    Regards,
    Nagaraju D

  • Now how to create a tsql to get best result.

    Hi all
    I have a table that called   voucheritem
    This table has 6 fields
    And my standard value is:
    Rows
    Rules
    Subsidiary
    1ad
    2ad
    3ad
    4ad
    5ad
    1
    Rule 1
    2050  
    103
    207
    396
    452
    509
    2
    Rule 2
    2050
    107
    210
    354
    431
    580
    Row 1 : I want to compare rule1 and the table values (voucheritem), when the values are opposite of each other then show the values
    Row2 : I want to compare rule2 and the table values (voucheritem), when the values are opposite of each other then show the values
    I run this code:
    Select * from
    voucheritem
    Result is
    Rows
    Subsidiary
    1ad
    2ad
    3ad
    4ad
    5ad
    1
    2050  
    103
    208
    396
    452
    509
    2
    2050
    107
    210
    354
    435
    580
    3
    2050
    110
    210
    300
    430
    590
    4
    2050
    100
    207
    396
    452
    510
    5
    2050
    107
    210
    360
    431
    580
    6
    2050
    103
    207
    396
    452
    509
    7
    2050
    107
    210
    354
    431
    580
    see row 1 :
    2ad has 208 value its not equal by rule 1
    row 2: 4ad has  435 value . its not equal by rule 2
     Now how to create a tsql to  get best result.
    Name of Allah, Most Gracious, Most Merciful and He created the human

    Does this do what you were looking for?
    DECLARE @rules TABLE (ruleID INT, subsidiary INT, ad1 INT, ad2 INT, ad3 INT, ad4 INT, ad5 INT)
    INSERT INTO @rules (ruleID, subsidiary, ad1, ad2, ad3, ad4, ad5)
    values
    (1,2050,103,207,396,452,509),
    (2,2050,107,210,354,431,580)
    DECLARE @voucheritem TABLE (voucherID INT, subsidiary INT, ad1 INT, ad2 INT, ad3 INT, ad4 INT, ad5 INT)
    INSERT INTO @voucheritem (voucherID, subsidiary, ad1, ad2, ad3, ad4, ad5)
    values
    (1, 2050, 103, 208, 396, 452, 509),
    (2, 2050, 107, 210, 354, 435, 580),
    (3, 2050, 110, 210, 300, 430, 590),
    (4, 2050, 100, 207, 396, 452, 510),
    (5, 2050, 107, 210, 360, 431, 580),
    (6, 2050, 103, 207, 396, 452, 509),
    (7, 2050, 107, 210, 354, 431, 580)
    SELECT v.*,
    CASE WHEN v.ad1 NOT IN (SELECT ad1 FROM @rules) THEN 'E' ELSE NULL END AS ad1Error,
    CASE WHEN v.ad2 NOT IN (SELECT ad2 FROM @rules) THEN 'E' ELSE NULL END AS ad2Error,
    CASE WHEN v.ad3 NOT IN (SELECT ad3 FROM @rules) THEN 'E' ELSE NULL END AS ad3Error,
    CASE WHEN v.ad4 NOT IN (SELECT ad4 FROM @rules) THEN 'E' ELSE NULL END AS ad4Error,
    CASE WHEN v.ad5 NOT IN (SELECT ad5 FROM @rules) THEN 'E' ELSE NULL END AS ad5Error
    FROM @voucheritem v
    LEFT OUTER JOIN @rules r
    ON v.ad1 = r.ad1
    AND v.ad2 = r.ad2
    AND v.ad3 = r.ad3
    AND v.ad4 = r.ad4
    AND v.ad5 = r.ad5
    WHERE r.ruleID IS null

  • Suddenly my Nikon Coolpix will not upload onto my 09 iphoto it takes for ever then it just shows blank squares no pics and a message that states it cannot read the JPEG files. Can anyone help me, please.

    Suddenly my Nikon Coolpix will not upload on to my 09 iphoto it takes for ever then it just shows blank squares no pics and a message that states it cannot read the JPEG files. Can anyone help me, please. I have never had this problem before.

    As a Test:
    Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?
    You could also try reformat the Card with your camera
    Regards
    TD

Maybe you are looking for

  • Want to buy a Photoshop CS3 Classroom in a book e-book

    Hi! I'm deseperatly searching a version of Photoshop CS3 Classroom in a book e-book I could buy but... IN FRENCH. Is there a way? Please, if you know where I could find it, it really would be a blessing for me! I'm looking over and over since 2 days

  • Downloaded a basketball game but doesnt work

    hi i downloaded a basketball game and its a avi. and when i open it with quicktime i see a white screen and the sound plays and i can hear the game playing but no picture. It tells me i need some software update but i dont know which one. Heres what

  • Non stock po report

    Hi Gurus, Is there a report that shows all non-stock purchase orders that were created that did not have a requisition associated with them.  We dont need to see any POs that have a requisition associated with it. The search criteria should be date r

  • Node size zero then display date

    HI Experts If the node size is zero then i need to display current date in input field.Can any one send me the code. Thanks in Advance Kumar Edited by: kiran kumar on Dec 8, 2008 10:47 AM

  • Flashing Text

    I wanted to know if there is somewhere in Dreamweaver that allows you to make text flash. I am in the process of doing a webpage and don't know how to do that. Also are there special codes that I would have to use?