Dynamically populated schedule w/calculations

The above image is from an excel spreadsheet that I need to replicate into an HTML table.  The data is pulled from a SQL Server 2005 database, and I'm using CFMX7.
Essentially, the table above shows that there are 2 employees, and 1 is available to be used elsewhere, if both employees are there.  However, if one is out on vacation/off (for 2 or more days in a row), then that particular week is depleted by 1 (meaning they can't afford to send anyone out).
So, in the first series of columns, William Mays is on vacation for 2 or more days; therefore, for that week (4/5 - 4/11), they are depleted 1, so a 0 is shown below.
In the 2nd week, Mike Jackson is OFF 2 or more days and William is on vacation 2 or more days. This would deplete the week by 2, but there can't be a negative number showing, so it just shows 0.  If, for example the Available was 3, then the number below would show 1, as 3 - 2 = 1.
In the last week, nobody is off, so the number below is 1.
This data is in SQL and is mapped out dynamically for the whole year, so I'll have to put the calculations in a loop.  Also, how could I dynamically put a colspan (like it shows in the image above) in for 7 days at a time, from Sun thru Sat?
Thanks!

Here is something from one of my pages that does something similar.  It might give you some ideas.
<!--- Length of stay --->
<tr>
<th align="left" colspan="1">Mean Length of Stay</th><td colspan="#numberofmonths#"> </td>
</tr>
<cfloop list="7B,7C,7D" index="unit">
<cfquery name="ThisRow" dbtype="query">
select year_month, meanlos
from LOSUnit
where unit_code = <cfqueryparam cfsqltype="cf_sql_char" value="#unit#">
order by year_month
</cfquery>
<tr <cfif ListFind("7B,7D", unit, ",") gt 0>bgcolor="#server.lightgray#"</cfif>>
<td align="left">#unit#</td>
<cfloop query="thisrow">
<td align="right">#meanlos#</td>
</cfloop>
</tr>
</cfloop>  <!--- generate rows --->
<td>Entire Cluster</td>
<cfloop query="loscluster"><td align="right">#meanlos#</td></cfloop>
</tr>
<tr><td colspan="#TotalColumns#"><hr /></td></tr>

Similar Messages

  • Dynamically populating form -

    I need to make a dynamically populating form - I cannot find the instruction - is there a video on adobe tv? Please help me - I am desperate. Thanks a lot! K_S_

    Hi..
    I think you can do it with ADF .When you click field1 in your form get the value to bean using serverListner.And create method in AMImpl to filter records from TableB by passing your field1 value.make sure to add client interface to this filter method(clientInterface in yourAM.xml) and add it to page using bindings to as methodAction.Then you can show filtered TableB using popoup.

  • Dynamically populated parameter clears previously entered parameters

    Software: Crystal Reports XI with MS SQL Server 2008
    I've created a report that asks for three parameters, 2 dates, and a string which is dynamically populated. The report has two tables added in the database expert.
    The first table is a command object which passes the two date parameters to a stored procedure:
    exec sp_MyStoredProcedure {?startdate},{?enddate}
    The second table is a stored procedure object used to populate the string parameter {?_users}. The criteria for the string parameter are:
    Prompt with Description only: False
    Allow multiple values: True
    Allow discrete values: True
    Allow range values: False
    This stored procedure object requires no parameters, and was originally a view in the database, but it the same problem occurs whether i dynamically populate the string parameter options from either a view or a stored procedure. I'd like to go back to using a view, as i do not need to pass any kind of parameters to the stored procedure
    The string parameter is used for defining the record selection formula:
    IF {Command.user_name} in {?_users} THEN true ELSE false.
    The two tables are not linked in the database expert, but linking them does not seem to solve the problem I am having with this report, the problem being this:
    No matter which order I set the  parameters, it always first displays a form showing only the prompts for the date values. After entering these, it then shows a form prompting for the date values again (the previously selected date information now cleared), along with the list of users from which to select. On this 2nd form, the parameters are displayed in the order I set using the field explorer option presented when I right click on the Paramter Fields heading. After entering the date parameter values a 2nd time, and selecting the users from the  dynamically generated list, the report performs as intended.
    Edited by: Duraplex on Nov 12, 2010 6:26 PM
    Edited by: Duraplex on Nov 12, 2010 6:57 PM - After contacting the tech dept of my employer, they are applying a service pack update to my installation, I am hoping this resolves the issue. Will post an update as soon as I know more.
    Edited by: Duraplex on Nov 12, 2010 7:35 PM - After applying SP4 to my installation, the problem persists. I did note however that removing the string parameter and record selection formula, and then recreating them, does somewhat solve the issue temporarily - i still am presented with two forms, but the second form doesn't clear the previously entered date parameters. However,  once i save the report, and reload it, the problem manifests again and the date parameters are cleared when presented on the 2nd form. Has anyone else encountered a similar problem?
    Edited by: Duraplex on Nov 15, 2010 8:38 PM - Problem resolved by upgrading from Release 1 to Release 2.

    Hi,
    Once record status gets change for block you can not populate/repopulate the list item. Keep those list items as non-database item with different names and create different items as database orignal items. Than assign the values in WHEN-LIST-CHANGE trigger to the actual database items.
    -Ammad

  • Adding an override to enable a monitor for a dynamically populated group has no impact?

    Hello all,
    I have a monitor that I only want to target to a single computer group. The group is dynamically populated.
    My basic approach is that the monitor is disabled by default but enabled with an override for that group. However, the monitor does not appear to be running on those servers (or anywhere else). I was able to confirm this based on the results of running the
    "Show Running Rules and Monitors for this Health Service" task--the overridden monitor does not appear at all in the list of monitors running on the servers in that group.
    I have checked the Operations Manager event log on both the SCOM host and the machines in the group, and have not seen any errors. The monitor being overridden is a PowerShell script monitor, where for script logic issues I have seen that the event log will
    contain information on the error. Nothing appears anywhere to show that the monitor has been enabled for these servers.
    Is there a better way to determine why the monitors would not be running on the servers in the group?
    Thanks!

    Hey Gleb,
    I have validated that the group is being populated and that the monitor's target class matches the class of the group members.
    Checking today, it appears that the monitor has begun running on the members of the group... not sure why there was such a large delay before the monitor began executing on the servers. I still have the dreaded green circles in the health explorer, but have
    narrowed that down to a possible condition in my monitor's PowerShell script where the condition properties are not added to the PropertyBag before the script ends.
    Thanks!

  • Saving dynamically populated pdf forms

    We have forms developed in Live Cycle that are dynamically populated.
    We have extended these forms in Acrobat so that users may save them with the pre-populated data.
    Our issue is that the user must manipulate the form in some manner, such as changing a field, in order for it to be saved with the pre-populated data.
    Is there a way we can enable the user to simply open the form that has been dynamically populated and save it with this data simply by doing a "Save As"?
    Thanks in advance for any help offered~
    ~Chris

    > So, it appears that a server product is necessary to utilize and activate Reader Rights for users... Is this correct?
    No. Acrobat Pro 8 and 9 can activate certain rights, such as saving, which is what you said you did in your original post.
    Like I said earlier, the problem you're experiencing is odd, and may be related to the way the form was created in LiveCycle Designer or the way in which you are populating the form with data. If I were you, I would pose this question in a Designer-related forum. Include the details related to how the form is being dynamically populated. It would also be helpful to be able to look at a document in question.
    George

  • Dynamically populating List box

    Hello Everyone:
    I need to create a JSP with two combo boxes and submit button.
    Where the first combo box will be updated from database - which is simple.
    but depending on the selection of the first box the second box should be populated and should be able to make multiple selections in it.
    and in the same jsp page should be able to display the results, of what I added by submiting the previous form.
    Please can somebody help me witha sample.
    Thanks
    ASB

    Dear user,
    If you get any response for the asked question on Dynamically populating List box from anybody please forward the reply to the following e-mail id.
    [email protected]
    --SUBIR                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Dynamically populating more than one field using xml data binding

    Hi All,<br /><br />I have the following code that works fine to dynaically populate a<br />second drop-down list2 from a choice in drop-down list1 using xml data<br />biding.<br /><br />var tempString = "xfa.record." + this.boundItem(xfa.event.newText);<br />var oItems = xfa.resolveNode(tempString);<br />var nItemsLength = oItems.nodes.length;<br /><br />myinfo.page1.state.clearItems();<br />myinfo.page1.state.rawValue = null;<br /><br />for (var nItemCount = 0; nItemCount < nItemsLength; nItemCount++)<br />{<br />myinfo.page1.state.addItem(oItems.nodes.item(nItemCount).value);<br />}<br /><br />Here is my xml file<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><myinfo><br /><country/><br /><countries><br /><item uiname="United States" token="US"/><br /><item uiname="South Africa" token="SA"/><br /><item uiname="Australia" token="AU"/><br /></countries><br /><state/><br /><AU><br /><item>Australian Capital Territory</item><br /><item>New South Wales</item><br /><item>Northern Territory</item><br /><item>Queensland</item><br /><item>South Australia</item><br /><item>Tasmania</item><br /><item>Victoria</item><br /><item>Western Australia</item><br /></AU><br /><US><br /><item>California</item><br /><item>New York</item><br /><item>Texas</item><br /><item>Michigan</item><br /><item>North Carolina</item><br /><item>South Carolina</item><br /></US><br /><SA><br /><item>Eastern Cape</item><br /><item>Free State</item><br /><item>Gauteng</item><br /><item>KwaZulu-Natal</item><br /><item>Limpopo</item><br /><item>Mpumalanga</item><br /><item>Northern Cape</item><br /><item>North-West</item><br /><item>Western Cape</item><br /></SA><br /></myinfo><br /><br />I have two questions:<br /><br />1) I want to be able to structure my xml in a way that I can populate<br />a third drop-down list3 from a choice in list2. I need to know how to<br />to include the different capital cities of the states in my xml data<br />so that they can get populated in list3 from a selection in list2;<br /><br />2) And be able to script the third list3 to get dynamically populated<br />from a choice in list2.<br /><br />Thanks in advance for your help.

    I would like to ask someone for help.
    I have an XML file a result of the XSLT transformation. A schema was created based on this XML and this schema is bound to a form as a data source.  When I preview my form using a Preview tab with transformed XML as a Data File in LiveCycle Designer 8.1, I can see only the first form data across 3 Text fields on the form. The rest of the forms are not getting displayed. What am I doing wrong?
    Here is the part of the XML file Im trying to display on the form:
        FORM 1
        FORM 1 DESCRIPTION
        $5000
        FORM 2
        FORM 2 DESCRIPTION
        $7000
        FORM 3
        FORM 3 DESCRIPTION
        $4000
    Part of the schema that was created based on the XML file from above:
    Thank you.

  • Date parameter values cleared when dynamically populating string parameter

    Software: Crystal Reports XI Release 1 with SP4, with MS SQL Server 2008
    I've created a report that asks for three parameters, 2 dates, and a string which is dynamically populated. The report has two tables added in the database expert.
    The first table in the database expert is a command object which passes the two date parameters to a stored procedure:
    exec sp_MyStoredProcedure {?startdate},{?enddate}
    The second table in the database expert is a stored procedure object used to populate the string parameter {?_users}. The criteria for the string parameter are:
    Prompt with Description only: False
    Allow multiple values: True
    Allow discrete values: True
    Allow range values: False
    This stored procedure object requires nothing to be passed, it was originally a view in the database, but the same problem occurs whether i dynamically populate the string parameter options from either a view or a stored procedure.
    The string parameter is used for defining the record selection formula:
    IF {Command.user_name} in {?_users} THEN true ELSE false.
    The two table objects are not linked in the database expert, but linking them does not seem to solve the problem I am having with this report, the problem being this:
    No matter which order I set the parameters, it always first displays a form showing only the prompts for the date values. After entering these, it then shows a form prompting for the date values again (the previously selected date information now cleared), along with the list of users from which to select. On this 2nd form, the parameters are displayed in the order I set using the field explorer option presented when I right click on the Paramter Fields heading. After entering the date parameter values a 2nd time, and selecting the users from the dynamically generated list, the report performs as intended. After subsequently running the report  (prompting for new parameter values by pressing F5),  it does not clear the date parameters on the 2nd form's appearance.
    What I need is to be able to enter in these values the first time around, without having the date parameters cleared. Am i going about this incorrectly, or is this a bug?

    What you are experiencing is not a bug... Passing a multi-valued parameter to a Command or SP is not supported in any version of CR prior to CR 2008.
    Your options are #1) Upgrade to CR 2008 or #2) Jump through the necessary hoops to make it work in CR XI
    Check out this link...[SQL Command Parameter - Multiple Value|Re: SQL Command Parameter - Multiple Value]
    It has some good examples a good step by step.
    HTH,
    Jason

  • Paper form barcodes dynamically  populated

    The form has been Reader Enabled using LC RE,so how to dynamically populated by adobe reader?
    thanks.

    My code to access the firstName is here:
    public String selectCustomer() {
            logger.debug("Inside selectCustomer ()");
            FacesContext context = FacesContext.getCurrentInstance();
            CustomerProfileBean cpBean = customerProfileBean();
            String firstName = cpBean.getFirstName(); //First name is null here
            return "success";
        protected CustomerProfileBean customerProfileBean() {
            FacesContext context = FacesContext.getCurrentInstance();
            ValueBinding vb = context.getApplication().createValueBinding("#{CustomerProfileBean}");
            return (CustomerProfileBean) vb.getValue(context);
        }Scope is request...My question is - does h:outputLabel actually post back to the action?
    In the mean time, as a temporary ugly solution, I have done this:
    <h:outputLabel id="FirstNM"></h:outputLabel>
    <h:inputHidden id="FirstNMHidden" value="#{CustomerProfileBean.firstName}"></h:inputHidden>I populate both FirstNM and FirstNMHidden with javascript, where the first is used to display to the page and the second posts the value...Seems ugly?
    Thanks for your help.

  • Dynamically populated dropdown values are missing when instances are added

    HI Team
    I have a subform which is repeatable have  a drop down  as one of the field which is dynamically populated from the web service call(short lived process) from the DB.On initialize event of the subform the data connection is executed .Dropown is populated with the values but when an instance of subform is added the dropdown values are missing.
    Only in the first instance of a subform  dropdown values are showing up , when instances of subform is added the drop down values are missing.
    Please let me how can i solve this issue,
    Thanks in Advance
    Bharathi

    I've tried this option by adding some value (hard-coded) during initialize event of the subform and all values are populated in the newly added instances as well.
    Not sure why it's not working for you.. Can you try adding some sample values without calling web service and confirm if it's working?

  • Dynamically populating an XMLList

    How would i go about dynamically populating a specific node section with database values? See code below that is static. I'd like for example the Groups node to be populated with the names of groups in my database. I use Coldfusion as the server side language so I understand dataproviders but I cannot add a dataprovider in the node tag:
        <mx:XMLListCollection id="treeData">
            <mx:source>
          <mx:XMLList>
                  <node label="Items">
                      <node label="Open"/>
                      <node label="In Progress"/>
                      <node label="More Info"/>
                      <node label="Closed"/>
                  </node>
                  <node label="Categories">
                      <node label="Category 1"/>
                      <node label="Category 2"/>
                  </node>
                  <node label="Groups">
                      <node label="Group 1"/>
                      <node label="Group 2"/>
                      <node label="Group 3"/>
                  </node>           
                  <node label="Help"/>
          </mx:XMLList>
            </mx:source>
        </mx:XMLListCollection>

    oh, I'm really sorry for mistype, it should be like this:
    var groupsNode:XML = tree.descendants().(hasOwnProperty('@label') && @label == 'Groups')[0];

  • How to get values from dynamically populated field symbol

    Hi all,
    I am having a field symbol <fs_table> type standard table, which is getting populated dynamically.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = i_fieldcat[]
        IMPORTING
          ep_table        = is_eptab.
      ASSIGN is_eptab->* TO <fs_table> .
    After the ALV display i am making some changes in the ALV and getting a new internal table <fst_table>,which is having changed values.
    Now the problem is that i am not able to get the changed values from <fst_table>  as it is not of any structure type and cant associate it with any field like we do in normal internal table and work areas like, wa-fieldname.
    All the fields are dynamic.
    Regards,
    Anant

    Hello Anant
    You have to access to access the fields of your dynamic outtab dynamically as well.
    DATA: ls_fcat   TYPE lvc_s_fcat.
    FIELD-SYMBOLS:
      <ls_struc>   TYPE any,
      <ld_fld>       TYPE any.
    LOOP AT <fs_table> ASSIGNING <ls_struc>.
      LOOP AT i_fieldcat INTO ls_fcat.
        ASSIGN COMPONENT ls_fcat-fieldname OF STRUCTURE <ls_struc> TO <ld_fld>.
        ...  " do processing
      ENDLOOP.
    ENDLOOP.
    Regards
      Uwe

  • Process Order operation scheduling duration calculation

    Hi
    We have following formula has been maintained for processing time calculation in resource.
    Machine * ( Operation quantity / Base quantity / Operation splits ) + Setup + Change-over
    As per above formula for following procee order qty and time, SAP caulates time.
    Opeartion qty - 100,
    Base qty - 100,
    Op split - 1
    Machine - 0.5 hrs (30 Mins)
    Processing time calculated as 30 mins (.5hrs)
    When I schedule the process order with same resource for same qty and machine time, processing time is calculated as 33 mins. We dont have maintained any floats in scheduling margin key in material master. We dont have any wait times also.
    Can you please let us know why process order operation is having 3 mins tolerance? Any idea where such settings has been maintained?
    Any pointers will be helpful.
    Edited by: nilesh sankpal on Dec 8, 2011 5:47 AM

    Hi Mangalraj,
    Thanks for your reply.
    We have not maintained ay reduction levels in OPUZ for plant and order type combination.
    In resource, we have 2 hrs break time and total operating time is 18.50 hrs.
    I got following SAP help link for calculation of duration for processing time.
    http://help.sap.com/saphelp_46c/helpdata/en/b1/c04387439a11d189410000e829fbbd/content.htm
    Is processing time is calculated based on following formula.
    Processing time u2013 Calculated Processing time * (1+ (Length of break / Operating time)
    Can you please correct my understanding here?
    Thanks in advance.
    Nilesh

  • How to build dynamic input schedule from version

    Hi experts,
    I want to create an input schedule based on my category selection which will allow users to enter data to budget part but changing the actual part is prohibited.
    For example I have category member which is 2010-09-1. This means I am working on 2010 Budget which has 9 periods of actual and 3 periods of forecast and 2011 Budget. In my input schedule I would have 24 months from 01.2010 to 12.2011 and I will copy actual to budget for the first 9 months but I do not want users to change first 9 months actual data from input schedule.
    What solution can you propose for this in BPC NW ?
    Regards,
    ergin

    Hi Ergin,
    From the description you have provided, I guess you will have the TIME dimension in the Column. The CATEGORY would be set to 2010-09-1, lets suppose. In this case, the first 9 columns should be locked for any changes. For this, you need to use the Data Validation technique, which is native to Excel.
    select an empty cell, lets say D1. in this cell, you should fetch the value "2010-09" from the version "2010-09-1". If the version is changed to "2010-10-1", the cell D1 will be automatically updated and will show "2010-10". In the column, in the row just above the Time dimension, write a formula to fetch the year and monthnum property of the Time member. Lets say, the time dimension members are displayed in the cells E4 to AB4 (24 columns for 24 months). In the cell E2, you can write the formula, =EVPRO("application name",E$4,"YEAR")&"-"&EVPRO("application Name",E$4,"MonthNum"). This will return 2010-01 in the cell E2 for the member 2010.JAN. Similarly, for 2010.FEB, the cell should display "2010-02". We will keep the formula in E2 only. After the expansion, the formula also will be expanded for the other cells.
    Select the first data cell of the EVDRE report. Open Data Validation. In the Settings Tab, in the Formula field, write =D1>E$2. Then go to the error alert tab and choose the style as stop and give some title and message. This would typically mean that if value of D1 (in this case 2010-09) is not greater than E2 (in this case 2010-01), then the error message will be displayed, when we try to enter values in these cells. And it will not allow to enter any value.
    Once the EVDRE is expanded, this data validation will be copied into all the other data cells. So, in this way, the enter input schedule can be kept dynamic.
    Hope this helps.

  • Dynamically populating values in 2 dependent select in jsp

    hello users
    i am confronted with a probelm.
    i am having 2 select fields that are dependant on each other. i.e. select one and in the other select, values are automatically populated..
    the only problem here is that it has to be dynamically done
    i dunno javascript can do it dynamic ally but by hardquoting values, it can be done.(which obviously i dont want)
    i can't solve it by using arraylist or vector either. it may be i'm not using the correct method. but aneways, plz reply me asap
    thanks a lot in advance
    Rajeev

    hello sure
    thanx for taking the time to reply...i can email u my files there are 2 jsp files and 1 bean file ...u'll have to arrange them in a package (bean) under the folder WEB-INF if you are using tomcat..
    give me ur email id , i'll mail u the code in a zip format
    thanks once again
    Rajeev

Maybe you are looking for

  • How can I restore sliced image from web page?

    http://www.jimmyrea.com This website was created several years back with Fireworks and Dreamweaver.  The client wants to have some changes done, but wants to keep it pretty much as it is and they don't have much of a budget to work with.  Is there an

  • Syncing tones to iphone makes me erase my phone.

    So I've followed this https://discussions.apple.com/docs/DOC-3792, and when i go to sync my tones, I get a message saying "This phone is already synced with another itunes library, do you want to erase this iPhone and sync with this itunes library?"

  • Multiple Genres lists on ipod

    I like to listen to my music by genre. In my library I have assigned each song a specific genre. However when I purchased music from itunes, it created a duplicate genre list on my ipod. For example, I have two lists for children's music. One has my

  • MacBook pro dead pixel

    Boring one dead pixel ,as an apple fan I can't understand!

  • TS3376 my i pad is found. now how do i open it???

    I have found my I pad by using "find my i pad" on my i phone. Now my i pad is frozen (locked). It displays the message " find my i pad alert". When I touch OK nothing happens. How do I unlock my I pad????