Reports - Passing checkbox values and conditional column visibility

Although I've been using Oracle databases for many years, I've to admit I'm rather new to APEX. I'm building a first prototype project to convince our project leaders and managers of the usefulness of the product for future projects (as for visual Database interfaces where the accent is on forms and reporting, it will often be faster and less expensive to build an APEX application instead of a full blown Java or C# webapp).
I'm however encountering some problems.
Let me start with a quick description. I've the following parent/child structures:
Provinces > Cities > Intersections > Loops > Loop Detections.
I basically want to make a report on the loop detections. Now, considering we'll have many thousands of detections a day, I made kind of a drilldown structure. You first choose your province, then the city, then the intersection and finally the loop. I didn't use lists to make the selection. Instead I made a (classic) report for each part as this allows me to give detailed information for each part. In each report, I made a link on the identifier. For example, when I select a province (by clicking on the link), I pass the province identifier to the cities report and use it in the query to limit my report to those cities for the given province. I repeat these step for the different parts, which in the end, gives me the loop detections for the selected loop. The good news is all this works fine. The person who'll be using this application however made a suggestion and asked if it would not be possible to select different loops and as such get the detections for several loops (the rest of the application stays the same). This however means I cannot use the column link anymore. Now, I was thinking in the direction of a checkbox. The column link is still there, but the user would also have the possibility to select several items in the report. I managad to add a checkbox to the report, linked to the loop identifier column. That's not exactly difficult. I cannot figure out however, how I can pass the selected identifiers to the next report (detections for the selected loops) and use it in the underlaying query of this report. The problem is, I don't know how to pass the checked values to the next page and how to use these values in the report query of that page. I suppose this must be possible, but I couldn't figure out how. I tried playing around with APEX_APPLICATION.G_Fxx and such. Remember I'm a newbie and this seems to fall under more advanced features.
I've uploaded images of the 2 concerning report pages for illustration:
http://img96.imageshack.us/img96/1497/apex01.jpg
http://img140.imageshack.us/img140/9868/apex02.jpg
A second point that's bothering me is the following. In the loop detection report I show a colum link (I picked an icon instead of the column value) for each row. I also have a column that shows the number of detections for the given loop (and day). Now, for some loops, there are no detections for that given day. As such, there's no point in selecting this loop, as the result will be an empty report. However, I still want to show the loop in the loop selection report, as it's still present (it's not as if it suddenly disappeared). Sure, no big problem and most users probably have sufficient intelligence to figure this out. However, it would be nice if I could make the icon (colum link) visible only for those loops that have detections, or in other words, for those records where number_of_detections (underlaying column COUNT) is greater than 0. I couldn't figure out a way to do this either. The Conditional Display option for a column didn't really offer me a solution here.
Before I forget, I'm using APEX 4.0.1 on an Oracle XE database.
Any tips or suggestions would be welcome! :)
Thanks.
Erwin

Hi,
You mean something like in this sample
https://apex.oracle.com/pls/otn/f?p=40323:55
You can store checked values to collection and use it then in another report where clause
See e.g. this post for how you can store checked rows to collection
Re: Need help with APEX_Collection
In sample DEPT report query is
SELECT
  CASE WHEN EXISTS(SELECT 1 FROM emp e WHERE e.deptno = d.deptno) THEN
    APEX_ITEM.CHECKBOX(1,c.c002,'onclick="saveDeptChk(this,'||c.seq_id||')"','true')
  END AS row_selector,
  c.c002 AS checked,
  d.DEPTNO,
  d.DNAME,
  d.LOC
FROM dept d,
  apex_collections c
WHERE c.collection_name = 'DEPT_CHK_COLLECTION'
  AND d.deptno = c.c001And EMP report
SELECT e.EMPNO,
  e.ENAME,
  e.JOB,
  e.MGR,
  e.HIREDATE,
  e.SAL,
  e.COMM,
  e.DEPTNO
FROM emp e,
  apex_collections c
WHERE c.collection_name = 'DEPT_CHK_COLLECTION'
  AND c.c002 = 'true'
  AND e.deptno = c.c001Regards,
Jari

Similar Messages

  • Help Creating A Link In An IR Report Passing The Value From A Different Col

    Version 4.0.2.00.07
    Hello,
    I have an Interactive Report with a column that I need to create a link on but I need to pass the value of another column.
    This report shows the Features of a particular Release. There is a select list for the Release that is selected and executes the report.
    There is a column that indicates whether the Feature has a Commitment attached to it. If there is have that a link to another report that shows all the Commitments for that Feature by passing the FEATURE_ID which is also a column on the Feature report.
    Query:
    SELECT
          ,CASE WHEN ft.feature_id IN (SELECT cc.feature_id
                                       FROM customer_commitments cc
                                       WHERE ft.feature_id = cc.feature_id
                                      ) THEN 'Yes' ELSE 'No'
           END "Commitment Exists"
              ,ft.feature_id
    FROM ....If "Commitment Exists" has a 'Yes', the 'Yes' is a link that will pass the FEATURE_ID to another report that will show the Commitments for that Feature. If the "Commitment Exists" has a 'No' then no link.
    I was also wondering if the Commitment report could open in a seperate window and make it modal?
    I hope this is clear and someone could help me.
    Please let me know if it's not clear or more information is needed.
    Thanks,
    Joe

    To accomplish this I would build the link as part of the value. So if Yes the Yes itself would be a link, if No is simply text as today.
    It would look something like this:
    SELECT
          ,CASE WHEN ft.feature_id IN (SELECT cc.feature_id
                                       FROM customer_commitments cc
                                       WHERE ft.feature_id = cc.feature_id
           THEN
            '<a href="f?p=&APP_ID.:NEW_PAGE:&SESSION.::::Pn_FEATURE_ID:' || ft.feature_id || '">Yes</a>'
           ELSE
            'No'
           END "Commitment Exists"
              ,ft.feature_id
    FROM ....One problem with this approach is when you export the report (as a CSV for example). There are a few ways to handle this, one is to simply duplicate the column with clear text yes and no and set this column to be included on export and only visible on export. The other column, with the link, set it to no export.
    The other option is to add another condition on the REQUEST value.
    SELECT
          ,CASE WHEN ft.feature_id IN (SELECT cc.feature_id
                                       FROM customer_commitments cc
                                       WHERE ft.feature_id = cc.feature_id
           THEN
                  decode(:REQUEST, 'CSV', 'Yes'
                , '<a href="f?p=&APP_ID.:NEW_PAGE:&SESSION.::::Pn_FEATURE_ID:' || ft.feature_id || '">Yes</a>'
           ELSE
            'No'
           END "Commitment Exists"
              ,ft.feature_id
    FROM ....It seems that the link itself is getting replaced with a #. The link would look something like this:
    'f?p=&APP_ID.:NEW_PAGE:&SESSION.::::Pn_FEATURE_ID:' || ft.feature_id
    Hope this helps.
    Oh and of course, in order for the link to display you need to change the Display Type to "Standard Report Column" otherwise the HTML will be escaped.
    Thanks
    -Jorge

  • While updating my ipad to ios7, I could not pass the terms and conditions screen where I had to agree or disagree. It just didn't move pass that screen. I can't do anything to go forward or back. It's just stuck there.

    While updating my ipad to ios7, I could not pass the terms and conditions screen where I had to agree or disagree. It just didn't move pass that screen. I can't do anything to go forward or back. It's just stuck there.

    Try to reset the device:
    Device Reset (won't affect settings/data/music/apps/etc)
    1. Press and hold (& continue to hold) BOTH the Sleep/Wake button & the Home button.
    2. Continue to hold BOTH (ignoring any other messages that may show) until you see the Apple logo on the screen.
    3. Release BOTH buttons when you see the Apple logo and allow the device to boot normally.

  • Display Report Level Filter value and Input Controls Value

    Hi,
    Please let me know how to display Report Level Filter value and Input COntrol values in the report.
    I have 2 tabs in the WebI Report. The first tab has the summary details about the other tabs like reprot desc, prompt values, reprot filter values,etc.
    In the 2nd tab I have the actual report which has input controls defined, prompt values and global level report filters.
    Can anyone please tell me how to display the Report level filter values and the Input Control values in the first tab report.
    For ex: Tab 2 has a Report level filter: Region = NA
    I need to display in Tab 1 in as Region: NA
    I used the function ReportFilterSummary but that is giving me other details, I want only the object name and the value.
    Also how to dispaly the Input Control values in the tab 1.
    Please let me know if you have any suggestions for this issue.
    Thanks

    did you try
    =ReportFilter([Year])
    if you are making report filter over the year, it will return the value of the filter
    by the way, the filter should be applied over all the report not to a specific block to be able to get the correct value
    the Input control also considered as report filter, only if you're applying them on the level of the report, if you applying an input contron over a specific block or chart, you will not get the values for ReportFilter
    good luck

  • HT4623 after updating my iphpne . I cant pass the terms and conditions screen

    after updating my iphone . I cant pass the terms and conditions screen also my button to turn off is not working what can i do? Im stuck there

    Me too!! Help!

  • Retrieving Checkbox Value and Displayong it in table column

    Hi Friends,
    It's an urgent query,please solve it asap
    I am having three colums which are having data(Country,State,City) and fourth column contains checkbox
    when i check the checkbox, i want all three values to be diplayed on th .jsp page in three different columns
    I will explain my problem further with the code
    In a .html page I am having a table with fields Country,State,City and Select
    Select colum contains checkbox
    my query is that when i click on submit button , all the values corresponding to the row on which checkbox has been clicked should to be diplayed in the jsp page
    in the .jsp page.i.e.in City.jsp i want in a table to be displayed,in first columni want State,in scond column,City selected from .html page
    I am enclosing the City.htm and City.jsp
    It will be more clear if u have a look at City.jsp
    I tried many ways but somehow i m not able to get Country and State in different Columns
    In Column 'County' I want India and in Column State', i want
    sate of the city that i select in City.htm
    How to achieve this
    You can copy pste the code i have written to view how the code works.
    Please reply asap,it's urgent
    Thanx
    //City.htm
    <html>
    <head><body><center>
    <form method="post" action="City.jsp">
    <table border=2><tr><td>Country</td><td>State</td><td>City</td><td>Select</td></tr>
    <tr><td>India</td><td>Karnataka</td><td>Bangalore</td><td><input type=checkbox name="city" value="Bangalore"></td></tr>
    <tr><td>India</td><td>Karnataka</td><td>Mysore</td><td><input type=checkbox name="city" value="Mysore"></td></tr>
    <tr><td>India</td><td>Karnataka</td><td>Belgaum</td><td><input type=checkbox name="city" value="Belgaum"></td></tr>
    <tr><td>India</td><td>Maharashtra</td><td>Mumbai</td><td><input type=checkbox name="city" value="Mumbai"></td></tr>
    <tr><td>India</td><td>Maharashtra</td><td>Pune</td><td><input type=checkbox name="city" value="Pune"></td></tr>
    <tr><td>India</td><td>Maharashtra</td><td>Nagpur</td><td><input type=checkbox name="city" value="Nagpur"></td></tr>
    <tr><td>India</td><td>Gujarat</td><td>Baroda</td><td><input type=checkbox name="city" value="Baroda"></td></tr>
    <tr><td>India</td><td>Gujarat</td><td>Ahmedabad</td><td><input type=checkbox name="city" value="Ahmedabad"></td></tr>
    <tr><input type=submit>
    </center></tr></table></form></html>
    //City.jsp
    <html>
    <head><body><center>
    <%@page import="java.util.*" %>
    <%
    out.println("<html><head><body><center><table border=1><tr><td><b>Country</b></td><td><b>State</b></td><td><b>City</b></td></tr>");
    Enumeration e=request.getParameterNames();
    while(e.hasMoreElements())
    String select=(String)e.nextElement();
    String value[]=request.getParameterValues(select);
    for(int i=0;i< value.length;i++)
    out.print("<tr><td><input type=text name=h1 size=5 maxlength=2></td>");
    out.print("<td><input type=text name=h2 size=5 maxlength=2></td>");
    out.print("<td>"+value+"</td></tr>");
    }out.println("<tr><input type=submit name=submit value=\"Save Changes\"></tr></table></form></center></body></head></html>");
    %>

    from the previous city.htm, code for checking all checkbox
    <html>
      <head>
        <title>City</title>
        <script language="javascript">
          function checkAll(){
            if(document.forms[0].cities.checked){
              for(var x = 0; x < 8; x++){
                document.forms[0].city[x].checked=true;
            }else{
              for(var x = 0; x < 8; x++){
                document.forms[0].city[x].checked=false;
        </script>
      </head>
      <body>
        <center>
          <form method="post" action="MyCities.jsp">
            <table border="2">
              <tr>
                <td>Country</td>
                <td>State</td>
                <td>City</td>
                <td>Select  <input type="checkbox" name="cities" onclick="checkAll()"/></td>
              </tr>
              <tr>
                <td>India</td>
                <td>Karnataka</td>
                <td>Bangalore</td>
                <td>
                  <input type="checkbox" name="city" value="India@Karnataka@Bangalore"/>
                </td>
              </tr>
              <tr>
                <td>India</td>
                <td>Karnataka</td>
                <td>Mysore</td>
                <td>
                  <input type="checkbox" name="city" value="India@Karnataka@Mysore"/>
                </td>
              </tr>
              <tr>
                <td>India</td>
                <td>Karnataka</td>
                <td>Belgaum</td>
                <td>
                  <input type="checkbox" name="city" value="India@Karnataka@Belgaum"/>
                </td>
              </tr>
              <tr>
                <td>India</td>
                <td>Maharashtra</td>
                <td>Mumbai</td>
                <td>
                  <input type="checkbox" name="city" value="India@Maharashtra@Mumbai"/>
                </td>
              </tr>
              <tr>
                <td>India</td>
                <td>Maharashtra</td>
                <td>Pune</td>
                <td>
                  <input type="checkbox" name="city" value="India@Maharashtra@Pune"/>
                </td>
              </tr>
              <tr>
                <td>India</td>
                <td>Maharashtra</td>
                <td>Nagpur</td>
                <td>
                  <input type="checkbox" name="city" value="India@Maharashtra@Nagpur"/>
                </td>
              </tr>
              <tr>
                <td>India</td>
                <td>Gujarat</td>
                <td>Baroda</td>
                <td>
                  <input type="checkbox" name="city" value="India@Gujarat@Baroda"/>
                </td>
              </tr>
              <tr>
                <td>India</td>
                <td>Gujarat</td>
                <td>Ahmedabad</td>
                <td>
                  <input type="checkbox" name="city" value="India@Gujarat@Ahmedabad"/>
                </td>
              </tr>
              <tr>
                <input type="submit"/>
              </tr>
            </table>
          </form>
        </center>
      </body>
    </html>

  • Pass filter value to a column

    Hi all,
    I am using oracle bi ee 11g. I am planning to create a report which contains two columns namely "ACTUAL" and "BUDGET"
    ACTUAL:
    FILTER("SUMMARY"."ACTUAL" USING (("SCENARIO"."SCENARIO_NAME" = F_ACT) AND ("CURRENCYH"."CURRENCY_CODE" = 'USD')))
    BUDGET:
    FILTER("SUMMARY"."ACTUAL" USING (("SCENARIO"."SCENARIO_NAME" =*F_BUD*) AND ("CURRENCYH"."CURRENCY_CODE" = 'USD')))
    In my database i have a field called scenario which has a actual and 5 budget values.
    I need to pass that actual value to F_ACT and that 5 budget values to that F_BUD(By using filter).
    Is it possible? If so please guide me? It is very urgent
    Thanks
    Maya

    Probably you may not have understanded my question properly i will explain it below
    name     number      type        count    person number
    james 45 Actual 3 1234
    above mentioned is the format of the report Person Number Column values contains a hyperlink to a another environment and if the user click on COUNT column it navigates to a seperate report and it should pass Person Number and type as filters i am able to pass type but not Person Number since it is in HTML format if we change that to general format the hyperlink doesn't work so i need to keep that in HTML format and i need pass that as filter to next report.

  • Passing checkbox values to popup window on page submit

    Hello,
    I'm using APEX 3.2.
    On one page I have a SQL report with checkboxes that are dynamically created using SQL: select apex_item.checkbox(1, bm_id) as "check", ...
    I now want to add a button to the page and when a user clicks on the button, the page should submit and a popup window should open with some extra fields to fill in. Now, in the popup window, I want to add a PL/SQL process and loop to all the values of the checked checkboxes in the parent page using the APEX_APPLICATION.G_F01() array. Can I do this? I tried it but the array always seems to be empty. Do I have to pass all checked values to the Javascript function which opens the popup window??
    Thanks,
    Matthias

    Matthias:
    The APEX_APPLICATION.G_F01() will have values only after the form has been submitted.
    So,your best bet is to use javascript to make the selected checkbox values available in the pop-up window.
    Varad

  • Linking reports passing prompt values to detail report ?

    Hi,
    I am building a linked report in webintelligence on SAP universe which has prompts coming from BI variables.In the master report i have created a hyperlink column so that if user can select the hyperlink for each row.now if i select the hyperlink it should take me to the detail report by passing the prompt values.i want to pass the values to the prompts build in BI varaible.
    eg: master report
    Country  Product  Rev  City
    now here i want to select city and open the detail report by passing city values. i need the formula for the hyperlink  city. City is just a prompt in master report it is not object in my report.
    Thanks,

    Hi Try this code
    ="<a href='http://l1280:8080/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?&sDocName=Account&sType=wid&iDocID=5311&lsSAccountType="+[Account Type]+"'>"+[Account Type]+"</a>"
    Regards
    Prashant

  • Passing Checkbox values

    Hello all!
    I have a WF which calls a Form with a table and two buttons. The first column of this table consists of checboxes.
    <Field name='accounts_table'>
                    <Display class='FormTable'>
                        <Property name='Columns'>
                            <list>
                                <s>col1</s>
                                <s>col2</s>
                                <s>col3</s>
                            </list>
                        </Property>
                    </Display>
                    <FieldLoop for='item' in=':variables.data[*]'>
                        <Field name='col1'>
                            <Display class="Checkbox">
                                <Property name="label">
                                    <get>
                                        <ref>item</ref>
                                        <i>0</i>                
                                    </get>
                                </Property>
                              </Display>
                        </Field>
    ...My buttons code:
    <Field name='submitCancelButtons'>
                    <Field name=':variables.submitButton' button='true'>
                        <Display class='Button'>
                            <Property name='label' value='Submit Request'/>
                            <Property name='value' value='Continue'/>
                            <Property name='command' value='Save'/>
                        </Display>
                    </Field>
                    <Field name=':variables.cancelButton' button='true'>
                        <Display class='Button'>
                            <Property name='label' value='Cancel'/>
                            <Property name='value' value='Cancel'/>
                            <Property name='command' value='SaveNoValidate'/>              
                        </Display>
                    </Field>
                </Field>For now, I wonna make an array of values checked in this table and pass it back to the WF. Any ideas how to do it would be vey helpful.
    Thanks in advance!!

    looks like I'm talking to myself. nevermind - maybe someone will find it helpfull.
    let's continue my story.
    I've managed to create indexed checkboxes and indexed values which are associated with this checboxes.
    <FieldLoop for='item' in=':variables.data[*]'>
                        <Field name='acc_$(index)'>                               
                            <Display class="Checkbox">
                                <Property name="label">
                                    <get>
                                        <ref>item</ref>
                                        <i>0</i>                
                                    </get>
                                </Property> 
                            </Display>
                            <Expansion>
                                <set name='index'>
                                    <add>
                                        <ref>index</ref>
                                        <i>1</i>
                                    </add>
                                </set>
                            </Expansion>
                        </Field>
                        <Field name='val_$(index)' hidden='true'>
                               <Default>
                                <get>
                                    <ref>item</ref>
                                    <i>0</i>                
                                </get>
                            </Default>I've also succeded in passing these values to WF which calls this form (I understand that this is not so hard).
    but I still have the most significant question. how can I find out which checkboxes are checked?
    does anyone has any ideas? I'll post additional info if needed.
    Thanks in advance.
    p.s. dukes guaranteed!

  • Error while passing checkbox value

    hi,
    i'm passing my checkbox value like this..
    first.jsp
    <%for (l=0;l < row;++l)
    {%>
    <tr>
    <td><input type="checkbox" name="delete<%=l%>" value="<%=tm.getValueAt(l,0)%>"></td>
    <%}%>
    second .jsp i call it as
    int number=Integer.parseInt(request.getParameter("num"));
    System.out.println("in vetcd no"+number);
    for(int i=0; i<number; i++)
    String equid = request.getParameter("delete"+i);
    System.out.println("delete"+i+"equid"+equid);
    but it always prints the value of equid to be null
    can anybody help

    I think maybe the method of your form was wrong.
    Anyway, here are two jsp files for your reference.
    =======1.jsp==========
    <h3>This is 1.jsp</h3>
    <form action="2.jsp" method="post">
    <table>
    <%for(int l=0;l <5;++l)
    {%>
    <tr><td><input type="checkbox" name="delete<%=l%>" value="<%=l%>">Checkbox <%=l%></td></tr>
    <%}%>
    </table>
    <input type="Submit" value="Submit">
    </form>
    ========2.jsp===========
    <h3>This is 2.jsp</h3>
    <%
    for(int i=0; i<5; i++)
    String equid = request.getParameter("delete"+i);
    out.write("delete"+i+", equid"+equid+"<br>");
    %>
    In 1.jsp, if I check on "checkbox2" and "checkbox3"
    I can get result in 2.jsp as
    This is 2.jsp
    delete0, equidnull
    delete1, equidnull
    delete2, equid2
    delete3, equid3
    delete4, equidnull
    Hope this solve your problem.
    Good luck
    Harv

  • How to pass a value and call SE38 program using SUBMIT statement

    Hello Friends
    I am trying to write a batch program in SE38, that calls other SE38 Programs.
    I don't want to use Parameter command to see the value on screen.
    All I want is to send a range of date (ToDate & FromDate) and generate different reports satisfying this date range condition.
    Can some one please help me with this. I would really appreciate it.
    I have tried the command SUBMIT with options of filling the input fields of the subsequent programs but I don't want to do this.
    I want all the sub programs to be called one after another and the reports generated using the date varialbles I send from the main program.
    I don't want to use se37 functions because of the client's request.
    Any help will be highly appreciated.
    Tks
    Ram

    Yes I am using SUBMIT command but I was not using the right options with the SUBMIT command and once I used the right options, it worked.
    Tks
    Ram

  • ChaRM Reporting - Transport Request, Tak and Owner columns not filled

    I am using ChaRM reporting functionalities (/TMWFLOW/REPORTING transaction). When I select "display header, project, task list and transport", transport request, task and owner columns are not filled with values.
    What is the problem?
    Thanks
    Antonello

    Hi,
    1. Is it configurd for ChaRM functionality in your systme landscape.
    2. If not, please do the ChaRM configuration using by tcode SPRO.
    Regards,
    Srini Nookala

  • Problem with checkbox value and app.settings.getSetting()

    Hello everyone.
    I`ve got a problem with getting saved settings for checkbox.
    Saved settings doesn`t apply on checkbox value.
    It`s strange, but it always "true".
    So here piece of code:
    checkMe = 11;    //any value for the first time running
    if (app.settings.haveSetting("savea", "chck")) {                           
                          checkMe = app.settings.getSetting("savea", "chck");  // get saved value, else 11
                          alert("checkMe = "+checkMe)
                        if(checkMe == 11){
                            checkMe= false;   //if there is no saved settings, checkbox value will be false/ unchecked
                            alert("You run this script first time, so manual value will be 'false'")
                            }else{
                                checkMe = app.settings.getSetting("savea", "chck");     // if saved settings exist, get true or false
         alert("Yes, checkMe will = "+checkMe)       
    win.checkPanel.chkOne.value = checkMe;  /// checkbox value will equal saved checkMe
    var fff = win.checkPanel.chkOne.value;  // string for alert
    alert("aha! but checkbox value is  = " +fff+ "\n Why so?")     // here we`ve got always "true"
    win.checkPanel.chkOne.onClick  = function () {
        var path11 = win.checkPanel.chkOne.value;  //  checkbox value to variable
        app.settings.saveSetting("savea", "chck", path11);  //saving checkbox value
        alert("Saved this value - " + app.settings.getSetting("savea", "chck"))
    win.checkPanel.chkOne.value is always true.
    Can someone exmplain why and how to get rid of this static value?
    P.S. just in case, here is full code:
    function mainFun()
        this.windowRef = null;
    mainFun.prototype.run = function()
        /*----- UI -----*/
              var retval = true;
              var win = new Window("palette", "Check option", [150, 150, 460, 455]);
              this.windowRef = win;
              win.checkPanel = win.add("panel", [25, 150, 285, 265], "Checkbox");
              win.checkPanel.chkOne = win.checkPanel.add("checkbox", [10, 15, 125, 35], "Checkbox One");
              //win.checkPanel.chkTxtOne = win.checkPanel.add('edittext', [140, 15, 230, 35], '');
         win.quitBtn = win.add("button", [110,275,200,295], "Close");
    checkMe = 11;    //any value for the first time running
    if (app.settings.haveSetting("savea", "chck")) {                           
                          checkMe = app.settings.getSetting("savea", "chck");  // get saved value, else 11
                          alert("checkMe = "+checkMe)
                        if(checkMe == 11){
                            checkMe= false;   //if there is no saved settings, checkbox value will be false/ unchecked
                            alert("You run this script first time, so manual value will be 'false'")
                            }else{
                                checkMe = app.settings.getSetting("savea", "chck");     // if saved settings exist, get true or false
         alert("Yes, checkMe will = "+checkMe)       
    win.checkPanel.chkOne.value = checkMe;  /// checkbox value will equal saved checkMe
    var fff = win.checkPanel.chkOne.value;  // string for alert
    alert("aha! but checkbox value is  = " +fff+ "\n Why so?")     // here we`ve got always "true"
    win.checkPanel.chkOne.onClick  = function () {
        var path11 = win.checkPanel.chkOne.value;  //  checkbox value to variable
        app.settings.saveSetting("savea", "chck", path11);  //saving checkbox value
        alert("Saved this value - " + app.settings.getSetting("savea", "chck"))
              win.quitBtn.onClick = function() {
                  win.close();
        win.center();
              win.show();
              return retval;
    if(typeof(mainFun_unitTest) == "undefined") {
        new mainFun().run();

    Played around with different values, combinations...
    Doesn`t work too:
    checkMe = 111;    //any value for the first time running
    if (app.settings.haveSetting("333", "check")) {                           
                          checkMe = app.settings.getSetting("333", "check");
    alert(checkMe);
                    if(checkMe == 111){
                             win.checkPanel.chkOne.value= false;
                            }else{
                                if (checkMe != false){
                                win.checkPanel.chkOne.value= true;
                                }else{
                                win.checkPanel.chkOne.value= false;
    win.checkPanel.chkOne.onClick  = function () {
        var path11 = win.checkPanel.chkOne.value;
        var path12 = path11.toString();
        app.settings.saveSetting("333", "check", path12);
        alert("Saved value - " + app.settings.getSetting("333", "check"))

  • Report with non aggregated and aggregated columns from different facts.

    Hi,
    We have got requirement as follows,
    1) We have two dimension tables, and two fact(Fact1 and Fact2) table in physical.
    2) In BMM we have made hierarchies for both dimensions, and are joins both logical fact table.
    3)In fact1, we are having three measures of which we have made two as aggregation sum, and one is non aggregated(It contains character).
    4)Fact2 have two measures, both are aggregation as sum.
    5)Now here the problem arises, we want to make a report with some columns from dim and non aggrgated column from fact1 and and aggregated column fact2
    How to resolve the above issue.
    Regards,
    Ankit

    As suggested you really want to move your none-aggregated fact attributes to a logical dimension (using the same physical table as the logical fact). Map this in the BMM layer as a snowflake, Place a hierarchy on this dimension with (at minimum) Total -> Detail levels, then on the other fact table you want to include in the report, set the content level on your other fact measures to the 'Total' level for your new logical Dim and it will allow them to be present in the same report.

Maybe you are looking for

  • IMac 27" 3.06GHz 240GB SSD / 2TB WD Black Caviar 16GB SUPER SLOW

    Hi Apple or other fellow Apple Users, I have the iMac 27" 3.06GHz and was on Snow Leopard. Was amazingly snappy and fast but I wanted more. Upgraded RAM to 16GB and soon the 1TB filled up and was slowing me down. I took out the optical drive and inst

  • Boris Title 3D Crashes FCP

    New Mac Pro, new Final Cut Studio. Did all the updates from Apple. Mac OS X 10.5.4. When I try to use Boris Title 3D over any piece of video it shuts FCP down. I can open Boris, I can type, change settings, etc. When I try to put it on the timeline w

  • Help with Business Catalyst Web forms and Adobe Muse.

    I created a websform to log into a secure zone using business catalyst. I pasted the webform's html into Adobe Muse. After publishing my site. The websform I created in business catalyst is deleted, but I can see all of the forms that I created using

  • Everything from ipad is going on my iphone

    New ipad set up using apple id now everything downloaded are going to my phone as well. How to ensure things downloaded on one do not go to the other

  • Gametrailers won't work well in Safari any more.

    I used to have no problems with running "gametrailers.com" before, but now there are some flash elements in the page that won't work. The flash based "log in" function is placed at the bottom in HTML design, the flash based news banner doesn't show a