Percent calculation

I have a form where I need to add the dollar amounts for projected small business spend and large business spend. (which is entered by the user) Then, actual cumulative smal and large spend is also entered by the user.
I need to know how to write the script for calculating the percentage of cumulative spend in relation to projected spend.
cumulative spend = % of projected spend
Projected spend = 200.00
50.00 is what % of 200.00
Here is the code I tried:
if(TotalCurrent ne 0) then
(SmallActual / TotalCurrent) * 100
else
null
endif
Here is the error:
Script failed (language is formcalc; context is
xfa[0].form[0].topmostSubform[0].Page1[0].SmallActual[0])
script=endif
Error: syntax error near token 'endif' on line1, column 5.
Any help is appreciated. I am new to this program.

Hi, Lony,
Whenever you have a problem, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say what version of Oracle you're using.
Are you saying you now ahave a query that produces that output, except for the percent column?
It looks like the total of all percents is about 18. How did you get that number, and not 100?
RATIO_TO_REPORT compares a number to the total in the query, giving you a number between 0 and 1. Just multiply it by 100 to get a number between 0 and 100.

Similar Messages

  • Rounding of a total with a percent calculation

    Post Author: jdomkus
    CA Forum: Formula
    I have a sales field that is taking .10 of the total and placing that total into a new field. This figure is then being used in a total calculation with other values.  My problem is the calculation is not being handled correctly  due to the percent field total (This is complex to explain but easy to show in a example.
    total sales = .25 (Cents)  This total is being multiplied by .10 to figure out 10% of the total sales = .03 (This calculation is correct)
    Then when I go to subtract .25 - .03 = .23 (Which is not correct, rounding is set to 0.01 on the field)
    I have this report in 8.5 with all the patches and I have also download crystal report 11 with the same result, Any help would be appreciated

    Post Author: SKodidine
    CA Forum: Formula
    For Total Sales, try
    round(0.25 * 0.10,2)
    Then when you subtract it from 0.25 it should give you 0.22 instead of 0.23.

  • Trouble with Accumulation and percent calculation

    I'm fairly new to programming so please be gentle guys because I know this may seem like a stupid question. In this simple polling program I have written, I can not seem to get my number of votes to accumulate nor the percent to calculate and display correctly.
    Could some one please tell me what I'm doing wrong and possibly lend me some tips for future programs. 
       static void Main(string[] args)
                string[] candidates = new string[5] { "Hillary Clinton", "Barack Obama", "John McCain", "Ralph Nader", "None of these are my favorite" };
                double totalVote = 0,
                votePercent = 0;
                int choice1 = 0,
                    choice2 = 0,
                    choice3 = 0,
                    choice4 = 0,
                    choice5 = 0, numOfVotes = 0, VoteSelect = 0;
                char altPoll;
                do
                    Console.WriteLine("Opinion Poll with Functions\n\n");
                    Console.WriteLine("***********OPINION POLL***********");
                    for (int i = 0; i < 5; i++)
                        Console.WriteLine(candidates[i]);
                    Console.Write("\nPlease choose your favorite candidate based on its corresponding number=> ");
                    VoteSelect = (Convert.ToInt32(Console.ReadLine()));
                    Console.WriteLine("\nQuestion....\n");
                    Console.Write("Would you like to do this again (y/n): ");
                    altPoll = (Convert.ToChar(Console.ReadLine()));
                while (altPoll == 'y' || altPoll == 'Y');
                if (altPoll == 'n' || altPoll == 'N')
                    if (VoteSelect == 1)
                        numOfVotes += choice1++;
                    if (VoteSelect == 2)
                        numOfVotes += choice2++;
                    if (VoteSelect == 3)
                        numOfVotes += choice3++;
                    if (VoteSelect == 4)
                        numOfVotes += choice4++;
                    if (VoteSelect == 5)
                        numOfVotes += choice5++;
                    totalVote += numOfVotes;
                    votePercent = VoteSelect/ totalVote;
                Console.WriteLine("\nCANDIDATE\t\tVOTES\t\tPERCENTAGE");
                Console.WriteLine("____________________________________________________");
                Console.WriteLine("Hilary Clinton \t\t  {0} \t\t{1:P}",choice1,votePercent);
                Console.WriteLine("Barack Obama   \t\t  {0} \t\t{1:P}",choice2,votePercent);
                Console.WriteLine("John McCain    \t\t  {0} \t\t{1:P}",choice3,votePercent);
                Console.WriteLine("Ralph Nader    \t\t  {0} \t\t{1:P}",choice4,votePercent);
                Console.WriteLine("Not Offered    \t\t  {0} \t\t{1:P}",choice5,votePercent);

    Hi Billy,
    What you're doing wrong is that in the do/while loop, you're not calculating anything. You do the calculations once the user has said they're done, but you're only capturing one choice in your do/while loop, consequently, their last choice is the only one
    used in your calculations.
    You should put some of the calculations in a separate method, and call it from within your do/while loop. Also, use a switch/case:
    static void SumSelections()
    totalVote++;
    switch (VoteSelect)
    case 1:
    choice1++;
    break;
    case 2:
    choice2++;
    break;
    case 3:
    choice3++;
    break;
    case 4:
    choice4++;
    break;
    case 5:
    choice5++;
    break;
    default:
    totalVote--;
    break;
    Then, your do/while becomes this:
    do
    Console.WriteLine("Opinion Poll with Functions\n\n");
    Console.WriteLine("***********OPINION POLL***********");
    for (int i = 0; i < 5; i++)
    Console.WriteLine(candidates[i]);
    Console.Write("\nPlease choose your favorite candidate based on its corresponding number=> ");
    VoteSelect = (Convert.ToInt32(Console.ReadLine()));
    SumSelections(); // I added this
    Console.WriteLine("\nQuestion....\n");
    Console.Write("Would you like to do this again (y/n): ");
    altPoll = (Convert.ToChar(Console.ReadLine()));
    while (altPoll == 'y' || altPoll == 'Y');
    And after the do/while (you won't need to check for 'n' or 'N'), just do this:
    Console.WriteLine("\nCANDIDATE\t\tVOTES\t\tPERCENTAGE");
    Console.WriteLine("____________________________________________________");
    Console.WriteLine("Hilary Clinton \t\t {0} \t\t{1:P}",choice1, (double)(choice1/totalVote));
    Console.WriteLine("Barack Obama \t\t {0} \t\t{1:P}",choice2, (double)(choice2/totalVote));
    Console.WriteLine("John McCain \t\t {0} \t\t{1:P}",choice3, (double)(choice3/totalVote));
    Console.WriteLine("Ralph Nader \t\t {0} \t\t{1:P}",choice4, (double)(choice4/totalVote));
    Console.WriteLine("Not Offered \t\t {0} \t\t{1:P}",choice5, (double)(choice5/totalVote));
    UPDATE: I've got the double cast wrong, Magnus has it correct (cast each to double before dividing).
    ~~Bonnie DeWitt [C# MVP]
    http://geek-goddess-bonnie.blogspot.com

  • How to do percent calculations based on a value

    Hello,
    I'm trying to figure out how to send workflow notifications to only 40% of a selected group..
    For example - We have a survey that is sent out once a user completes our Infopath form - right now the survey goes out to 100% of the users..
    In the future, we would like the survey to ONLY be sent to 1 in 4 users that complete the form - so 40% of all the users that complete will be sent the survey upon completion..
    I know I need to use calculated fields but not sure which formula will work and how to incorporate within our current workflow.
    Any suggestions or how-to's would be appreciated since I'm pretty new to workflows.
    Thanks
    -Andrew

    Hi Andrew,
    You cannot determine 40% of total people who completed the survey randomly.
    If you are using SPD workflow, then this looks tough to do as you have to first find out the total number of Completions (assume 100). (SPDW does not have a way to count the number of items in list. If you can create custom workflow in VS then you can
    use SharePoint API with the list ID and get the count:   myList.Items.Count). Then divide that number by 4 (assume 40). If this is decimal then round it up.  Find the names of top 40 or bottom 40 responses. You cannot randomize 40
    items from the list.
    In my opinion, you need to have fixed algorithm to create workflow out of this. Hope other's can pitch in and provide some inputs.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • Succession Planning: Suitability Percent Calculation

    Hi Experts,
    How is Suitability Percentage calculated in Succession planning in Personnel Development Module?
    Please guide..
    Thanks and Regards,
    Neetha

    Hi,
    in SAP Standard this processes can only be maintained in the backend with code hrtmc_ppom. There definitely no frontend component for succession planning available. Therefor NAKISA STVN can be used, but with additional license costs....
    Some customers developed own WDA Apps for some of theses processes. Maybe this is an option for you.
    best regards
    Martin Hastik

  • Percent Calculations fail in Scheduled and Excel exports

    We have a order report that calculates a simple Percentage Filled calculation (i.e. -
    units_shipped/units_ordered).
    Units_Shipped = 120 and Units_order = 185, you would expect an answer of 64.86%
    When we schedule this report, the answer is 3800.00%.
    Also when we export the answer from scheduled reports the answer in Excel is 3800.00%.
    When we run the report live, the answer is correct.
    Database Software: v9.2.0.5
    Operating System: HP/UX
    Application Server Version:      10.1.2.0.2 (10gR2)
    Discoverer Version: 10.1.2.48.18
    Thanks for any help,
    Bob

    Hi Bob
    No I'm afraid not. This issue was mentioned to be in passing by someone from within Oracle several months ago. After that the trail went cold and I just kept a note in case someone started reporting issues.
    You might want to raise an SR with support and quote what I have said to see if one of the myriad of patches that have come out over the past year could have fixed it. You might also want to ask whether the newer 10.1.2.2 fixes it.
    Best wishes
    Michael

  • Percent Calculation Assistance Needed

    What would be the best way, performance wise, to set a calculation that returns the percentage of a budget that is spent, even if the budget is set to 0?
    Using just spend/budget as a custom item doesn't work, since sometimes the budget is 0.
    As info, the spend is a summation of several invoices but the budget is not a summation. Should I be using the calculation of SUM(Spend), instead of using the default aggregate of SUM?
    Budget is setup with a default aggregate of detail. Should that be changed?

    Actually, you have two separate issues to deal with (ignoring the performance for now... we'll work on that later if necessary ;-):
    1) two measures to compare, with different levels of aggregations and
    2) divide by zero problem.
    Savest way to solve 1) is to create a calculation with something like SUM(spend) OVER (PARTITION BY ... data-items-you-want-to-aggretate-on i.e. month, department ORDER BY same-items).
    This makes sure that 'spend' always aggregates to the level you want. Disadvantage is that the calculation needs to be adjusted if you want another level of detail.
    Now 2), you have to include an explicit "work around" for this. For example: CASE WHEN budget IS NOT NULL (or <> 0 - depends on contents of column budget) THEN (budget/sum(spend) - calculation you just created)/100 ELSE xxx. You decide how to handle the case where budget is zero, what should be after the ELSE. Should variance (result) be shown as 100% or 0% or ...?
    Succes!

  • Percent calculation overflowing

    Dear SD gurus,
    Please guide me through this question:
    1.  when we run a contract detail report with number .172889100., system times out. The Net price is considered
         for 1000 units and cost is considered at 1 unit and percentage calculation is overflowing.
    Thank you!
    Raji

    I think there's still some confusion about how calculations are actually being processed with regards to execution precedence.
    Check this analysis here: http://slc02ojq.oracle.com:7780/analytics/saw.dll?PortalGo&Action=prompt&path=%2Fshared%2FYour%20Custom%20Public%20Content%2FExecutionPrecedence

  • Summarizing Percent Calculation in Answers

    Hi,
    I have been working on a report. The format of report is like this
    Division (Attribute) | M1(Measure1) | M2 (Measure2) | (M1/M2) * 100
    I am getting the correct resuts in all the rows except "Summary Row" or "Grand Total Row" in pivot table.
    I am getting wrong result in last column (M1/M2) * 100, which is meant to calulate percentage values.
    Any suggestions how to correct it.

    HI Mike,
    I am Durgaprasad from Pune-INDIA, working as a OBIEE developer, I have one query which I mentioned below can you please go threw it. I gone threw your document that’s why I am requesting you.
    I have done migration Discoverer Admin EUL Layer into OBIEE repository using below methodology.
    Navigate to the <installdrive>\OracleBI\server\Bin directory. There are two important files in this directory: the migration assistant executable file named MigrateEUL.exe and a properties configuration file named MigrationConfig.properties.
    Could you please help me how to migrate discoverer plus workbooks and worksheets into OBIEE Answers?
    This is very great full help to me …
    Advance thanks for your suggestions .
    Regards
    Duraga Prasad.

  • Reg : PF Calculation for Layoff Emp

    Hi My client have a Scenario
    The requirement is as follows
    The client has concept of Retainer ie Off Season Layoff Employees , They will be laid off with no work and will be paid some % of amount based on their Grade.
    For them when layoff action is run automatically additional Wagetypes will be generated
    Normal                                                                 Layoff
    1000 – Basic Pay                                  1006 – Retainery Basic Provision
    1010 – FDA                                          1016 – Retainery FDA Provision
    1020 – VDA                                          1026 – Retainery VDA Provision
    Total of 1006+1016+1026 is stored in 1340 RETAINERY Wage Type
    For them PF Related Wage types are
    3PER – Employer PF Contribution
    3PPE – Employer Pension Contribution
    3PPF – Employee PF Contribution
    Now 3PPF = 1340*12%   -  some XXXX amount
             3PPE = if emp age is more than 58 no calc
                    If less less then 1340*8.33%  -  some YYYY amount.
    Till here iam getting correct  now I need to calc 3PER
    3PER = if Emp age is above 58 then 1340*12%   this is also getting correct
    But when age is less than 58
    3PER = 3PPF -3PPE    this is not calculation and getting error
    i have written the PCR as
    XY17 Provision PF calculation
        3
          1340 RETAINARY
            CPAGE 58N  Comp.age/employee
              <
                AMT=S 1340 Set
                AMT%12     Percent calculation
                ROUNDGK100 Round AMT to next
                AMT- 3PPE  Subtraction
                ADDWT 3PER OT   Output table
    iam getting error as
    This error message is currently only display in the old log.
    Please choose 'Old Log' and go to the end to display the error message
    and in  the OLD LOG showing
    ungültiges Feld $ in Zeile: 3PPE
    XY1731340<         AMT=S 1340 AMT%12     ROUNDGK100 AMT- 3PPE  ADDWT 3PER
    please suggest on this

    Hi Narendra,
    For You query
    3PER = if Emp age is above 58 then 1340*12%   this is also getting correct
    But when age is less than 58
    3PER = 3PPF -3PPE    this is not calculation and getting error
    you can try this logic
              ADDWT *
      1340
              CPAGE 58N
                                       AMT=1340
                                       AMT*12%
                                       ADDWT3PER
                                <
                                      AMT=3PPF
                                      ADDWT& 3PPF
                                      AMT=3PPE
                                      AMT+& 3PPF
                                      ADDWT 3PER
    Hope this will help you
    Thanks & Regards
    Saroj Hial

  • Calculation based on totals in Crosstab

    Hi,
    I have the following crosstab.
    Vendor 1234
         Dc Nbr 1     2     4     
    Sum Invoice Amt      1387.04     300.82     327.29     2015.15
    Sum Cost 44.86 57.43     25.54     127.83
    Sum Advanced Cost     102.44     0     0     102.44
    Sum Consolidation Cost     30.37     0      0     30.37
    Sum Allowance Amt     27.74     6.02     6.54     40.30
    Net Freight Cost     149.93 51.41     19     220.34
    Freight Percent     10.81     17.09     5.81     ****
    The last column are Row totals for those fields.
    What I need is how to get the **** to be 10.93 which is the Freight Percent calculation value based on the Total Column fields. The
    Frieght Percent field is calculated as follows for the rows.
    ( NVL(Sum Cost,0)+NVL(Sum Advanced Cost,0)+NVL(Sum Consolidation Cost,0)-NVL(Sum Allowance Amt,0) )/NVL(Sum Invoice Amt,0)*100                         
    I have tried to do the Row Total with Average, Sum, etc, but not getting the answer we need.
    Table structure is 3 rows per vendor with 1 row per dc nbr.
    Any help would be greatly appreciated.
    Thanks
    Edited by: clifford_d on Dec 4, 2008 9:46 AM

    See if this explains it better for my crosstab with page items of Vendor Number 1234.
    Vendor 1234
    Dc Nbr 1 2 4 AAAA
    Sum Invoice Amt 1387.04 300.82 327.29 2015.15
    Sum Cost 44.86 57.43 25.54 127.83
    Sum Advanced Cost 102.44 0 0 102.44
    Sum Consolidation Cost 30.37 0 0 30.37
    Sum Allowance Amt 27.74 6.02 6.54 40.30
    Net Freight Cost 149.93 51.41 19 220.34
    Freight Percent 10.81 17.09 5.81 ****
    As stated before, Frieght Percent is a calculation I created in Discoverer that looks like this :
    ( NVL(Sum Cost,0)+NVL(Sum Advanced Cost,0)+NVL(Sum Consolidation Cost,0)-NVL(Sum Allowance Amt,0) )/NVL(Sum Invoice Amt,0)*100
    Column AAAA was created in Discoverer using Sum of field and show to the right.
    What I need is for the **** to be the correct calculation for the totals in column AAAA. If I use do a total for Freight Percent using the Cell Sum I get 33.70., what I want is it to be 10.93, which is (127.83 + 102.44 + 30.37 - 40.30)/2015.15*100.
    If I use an Average Total row for Freight Percent, I get 11.24 which is 33.70 / 3 (the 3 would be the # of dc nbr's)
    I did start with using the detail level data to create this crosstab. Then I made a new version and used the SUM data. I seem to get the same results but am still having issues with the one **** value.
    Hopefully this explains it better.
    Thanks for the ideas so far.

  • Sum of calculated key figures in a report

    Hi,
    i have the following report :
    Country      percent
    FR                0%
    SP               100%
    GE               100%
    UK               100%
    I want to display at end a line with : sum percent / number of country
    The result should be : 300/4 = 75%
    but my result is 60 / 4 = 15%
    ( value 60 corresponding at percent calculated for all the country
    - formul to calculate percent for one country is applicated for all the country in global).
    Version 3.1
    Any suggestion is highly appreciated.
    Thanks in advance.
    JC.

    Hello JCA,
    Create a Formula or CKF like this (FR + SP + GE + UK) / 4. This will give you the average of these four keyfigures.
    In the Column it will be like this
    FR
    SP
    GE
    UK
    CKF/Formula containing the above
    Thanks
    Chandran

  • SQL Questions (New to Cisco)

    Hello. I work for Clarian Health in Indianapolis and am trying to learn as much as possible about the SQL databases, both AWDB and HDS so that I can handle the reporting for our Revenue Cycle Customer Service.
    I am currently working my way through the Database Schema Handbook for Cisco Unified ICM /Contact Center Enterprise & Hosted. I’m also reviewing the explanation pages that are available for the reports on WebView. During my reviews, I have noticed a few things that confuse me.
    My questions are:
    1. Why do a majority of the tables on our SQL Server start with “t_”?
    2. Why do some of the tables have data on the AWDB server but not on the HDS server, and vice versa? (Examples: t_Agent and t_Agent_Team and t_Agent_Team_Member and t_Person are blank on the HDS database but not blank on the AWDB database; but the t_Agent_Logout is blank on the AWDB database and not blank on the HDS database)
    3. When data is moved to the HDS server every 30 minutes, is it also removed from the corresponding AWDB table?
    4. In review of the agent26: Agent Consolidated Daily Report syntax info located on the WebView, 1 of the calculations uses the LoggedOnTimeToHalf from the Agent_Half_Hour table while the remaining calculations uses the same field from the Agent_Skill_Group_Half_Hour table. Can you please tell me why this is? Why would all of the percent calculations not use the data from the same table? (The % of time Agent paused and/or put a task on hold uses the Agent_Half_Hour Table. All other % calculations uses the same field from the Agent_Skill_Group_Half_Hour Table.)
    5. Also in reviewing the agent26: Agent Consolidated Daily Report syntax info, I noticed that it contains the Skill_Group table, the Agent_Half_Hour table and the Media_Routing_Domain table. Both the Skill Group table and the Agen_Half_Hour table contain links to the Media_Routing_Domain table. Which relationship/join is actually utilized for this report?
    6. Why doesn't the LoggedOnTimeToHalf field on both the Agent_Half_Hour table and the Agent_Skill_Group_Half_Hour table have the same value in them?
    7. On the agent_26: Agent Consolidated Daily Report syntax explanation page, the Agent State Times: Log on Duration says that it is derived using the Agent_Half_Hour.LoggedOnTimeToHalf field, but when i convert this field to HH:MM:SS, it does not match the actual WebView report. But, when I use the Agent_Skill_Group_Half_Hour.LoggedOnTimeToHalfHour, it does match. Which one is correct?
    8. On the agent_26: Agent Consolidated Daily Report, why does the Completed Tasks: Transfer Out contain both the TransferredOutCallsToHalf and the NetTransferredOutCallsToHalf fields? What's the difference between the two? What Transfer out data writes to each field?
    Thank you.
    Angie Combest
    Clarian Health
    [email protected]

    You need to be careful when looking at the three databases - Logger, AW, HDS - which use the same schema. But many of what appear to be tables in the AW are really views into the t_ tables in the HDS - the data is not there in the AW DB. You are right to look at the schema - but check with SQL Enterprise to understand a bit more.
    In essence, the AW DB is for configuration data and real-time data. The HDS is for historical data. You can query the AW DB for (say) Call_Type_Half_Hour data and join with the Call_Type table to resolve the call type ID into its name - but the data is really in the HDS through the view.
    The DB design is quite complex and sophisticated - many things are not obvious.
    Keep up your research.
    Regards,
    Geoff

  • Overall Result column disapears when dragging in free characteristic

    Hello All,
    I have a headcount report which has % colleague key figure.  At the top of the report there is an 'Overall result'.  The issue I am having is when someone drags in a free characteristic the 'Overal result' column disapears and instead and percent calculations are being calculated by the value in the top column instead of by the overall result.
    Any ideas on how to resolve this?
    Thanks,
    Nick.

    Hi,
    I'm not selecting the node of the hierarchy.In selection criteria I select the entire hierarchy .
    Thanks & Regards
    Anita

  • Formula assistance in crystal reports

    Hello,
    I have a report that has 2 groups, first is by category and second is by code and the report displays Quantity which is sum in group footer 1 and 2
    I want to create a column ' %', how do I pull in the sum of quantity in group footer 1 in the formula to calculate % column?
    Header 1
    CODE
    QUANTITY
    GROUP 1 CATEGORY
    GROUP 2 CODE
    DETAILS SUPPRESSED
    GROUP 2 FOOTER ( note any rows with quantity 0 are suppressed)
    1111
    6
    (6/18)*100 = 33.33%
    GROUP 2 FOOTER  ( note any rows with quantity 0 are suppressed)
    2222
    3
    16.66%
    GROUP 2 FOOTER  ( note any rows with quantity 0 are suppressed)
    3333
    1
    5.55%
    GROUP 2 FOOTER  ( note any rows with quantity 0 are suppressed)
    4444
    8
    44.44%
    GROUP 1 FOOTER
    18
    Thanks

    Try using a formula like this:
    if Sum({quantity field}, {category group field}) > 0  then //prevent divide by 0 error
      Sum({quantity field}, {code group field}) % Sum({quantity field}, {category group field})
    else 0
    Note that the "%" operator will automatically do the percent calculation for you.
    -Dell

Maybe you are looking for

  • Remote Mgr Console java not working 64bit

    Is anyone else having issues using the java based console screen in Remote Manager (I assume this what people call "NoRM"?) on a 64 bit Windows 7 machine? We just upgraded our workstations, these are brand new Dell Precisions, and now I can't manage

  • Transfer Case Animation Question Regarding if Logic.

    I am using the following code in a transfer case animation and for the life of me, I can't figure out what I'm doing wrong.  The "if (neutralSequence ==0)" part works great, but the "}else if (neutralSequence == 14){" part doesn't. I am using traces

  • In need of some SURROUND 5.1 help...

    Hello all. Still on Logic 7. Haven't made the jump. Wanting to write and monitor in 5.1 for television. Have never done this in Logic. We use Motu 24 i/o boxes. Want to set the digital outs as my 5.1 outs going into Pro Tools on another machine, then

  • Safari 8.0.3 not loading images. Fix?

    Is anyone else experiencing missing images on major web pages that are simply not loading in the latest version of Safari? I'm seeing blue boxes with white question marks pretty regularly on sites like smh.com.au as per below: If there's a preference

  • SQL Query in Javascript

    Hi All, I have an SQL query which needs to be invoked when ever javscript function is called. Is it possible in Oracle Apex to embed a SQL query in the javascript function...If so, Please can anyone provide me with a right syntax ??? Regards, Sandeep