Date selection make fall the next Saturday

How can I make a date chosen to fall on next Saturday of the week?

This means that if a user selects today 24th on a date field, I want 30 Saturday to be displayed in the date field.

How can I script it?

Thank you.

Try this in the case of exit of the calendar in formcalc:

var originalDate = Date2Num ($.formattedValue, "DD/MM/YY")

var dayOfWeek = Num2Date (originalDate, "E")

var PROMOTIONDate = 7 - dayOfWeek

If (dayOfWeek< 7)="">

$ = Num2Date ((originalDate + newDate), "DD/MM/YY")

endif

just make sure that your model for the calendar is JJ/MM/AA (or adjust the code for what your model).

Tags: Adobe LiveCycle

Similar Questions

  • Get data from YEAR_WEEK for the next WEEKS 20

    Hi all

    I have a select query and when I run this query, that query is display data for all YEAR_WEEK of PROD_BACKLOG table. The YEAR_WEEK column in the PROD_BACKLOG table data in this format 2030-WK41.

    My select query is the following
    SELECT 
                  DC_UTIL.GEN_YEAR_WEEK(MSD) YEAR_WEEK,
                  ITEM_NUMBER,
                  BACKLOG_QUANTITY,
                  MSD
                  to_char(MSD, 'IW')
                  FROM prod_BACKLOG
                  where to_char(MSD, 'IW')>to_char(sysdate, 'IW');
    I would like to add a clause in this query should it search only for data for the next few weeks more 20.

    Thanks in adavnce

    Concerning

    Hello

    I think that you have given for more than a year, which is why queries of does not return the same number of lines:
    -For your TO_CHAR, you keep only the week number and don't care of the week, which means that the 29th week of 2011 is the same as the 29th week of 2012
    -With the TRUNK, you compare the first days of the week, which include information on the year

    Here is an example: you'll see Date1 is the same for 2 dates, but Date2 shows different results and take care of the year:

    with t as (
    select to_date ('20/07/2011','DD/MM/YY') MSD from dual union all
    select to_date ('20/07/2012','DD/MM/YY') MSD  from dual
    ) select to_char(MSD, 'IW') date1, trunc (MSD, 'IW') date2 from t;
    
    DATE1      DATE2
    ---------- ---------
    29         18-JUL-11
    29         16-JUL-12
    

    You must choose the trunc.

    Using< or=""><= in="" this="" part="" of="" the="" where="">

    and trunc(MSD, 'IW')<=trunc(sysdate+140, 'IW');
    

    won't change of data greater than the week or not, but will include or not data for the 20th week.

    Hope that is more clear.

    Kind regards
    Sylvie

  • Why firefox 15 displays the hex of size for the html data that make up the page?

    Windows 7, 32-bit
    Firefox 15.0.1 update Friday
    Java 1.7.0_07 Friday update

    Management forced a Java Update and restart on Friday. When Firefox started it auto-updated V15.0.1. He had problems immediately; the previous session tabs disappeared all and any page with Flash no longer worked (everything was OK before the two updates).

    In the recommendations, I created a new profile, copy only on bookmarks and files with name of user/authentication of the previous profile. When manually reopen the necessary tabs, pointed out that any Sonicwall firewall and Panasonic Netcam both display only a blank page with one or more hexadecimal numbers on it.

    Efforts to repair since included completely remove Firefox, the plugin Flash and current Java to run in safe mode, disabling all extensions/plugins, running in a completely default new profile with nothing carried over, try with and without hardware acceleration, etc. The behavior does not change. It does not matter if I go via http or https for devices that support both.

    JavaScript IS enabled, and the script _no_ blocking is in place; JavaScript works on other sites that use it.

    IE9 on the same PC works fine, so it's apparently not a system problem

    Looking at the page source shows that hexadecimal numbers are the length of the data in the row or the piece of HTML code, including the following javascript code. The Sonicwall sets up a larger number (2ea) on the line of the display source page that corresponds to the size in bytes of the code in the following lines.

    The Panasonic apparently sends the length of the data in each row if it provides a hexadecimal number for each line of HTML in the source display.

    What would make Firefox interpret the data incoming size as displayed, but only for certain pages or peripheral? I can visit other sites that have javascript and they work; a source of these pages view shows all the lines with just a hexadecimal number.

    view source example of Sonicwall (between the = lines); everything you see on the screen is the "2ea" in the upper left corner

    =

    2ea
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    	<meta name="SonicWALL Administrator" content="Copyright 2004 (c) SonicWALL, Inc. All rights reserved.">
    	<title>SonicWALL - Authentication</title>
    	<meta name="id" content="auth" >
    	<script type="text/JavaScript">
    	<!--
    	top.location.target="_top";
    	if (window.location.target != "_top") {
    		top.location.href=window.location.href;
    	}
    	var savedPwd = "";
    	function onPageUnload() {
    		window.name = "";
    	}
    	window.onunload=onPageUnload;
    	// -->
    	</script>
    </head>
    <frameset rows="*,1">
    	<frame src="auth1.html" name="authFrm" noresize scrolling="no">
    	<frame src="emptyView4.html" name="authTgtFrm" noresize scrolling="no">
    </frameset>
    </html>
    =====
    
    View source sample from the Panasonic; the blank lines are displayed as such in the view source screen.  All you see in the browser window is the series of hex numbers separated by a space on the same line.
    
    =====
    0
    
    3b
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
    
    8
    <HTML>
    
    7
    <HEAD>
    
    28
    <META HTTP-EQUIV="expires" CONTENT="0">
    
    2e
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    
    35
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
    
    24
    <META NAME="robots" CONTENT="none">
    
    30
    <META NAME="robots" CONTENT="noindex,nofollow">
    
    29
    <META NAME="robots" CONTENT="noarchive">
    
    15
    <TITLE>Start</TITLE>
    
    8
    </HEAD>
    
    3d
    <FRAMESET border=0 frameSpacing=0 rows=30,8,* frameBorder=0>
    
    4c
    <FRAME name=bar src="CgiTagMenu?page=Top&Language=0" scrolling=no NORESIZE>
    
    3c
    <FRAME name=hrbar src="BarFoot.html" scrolling=no NORESIZE>
    
    27
    <FRAME name=body src="Top?Language=0">
    
    c
    </FRAMESET>
    
    9
    </HTML>
    =====
    

    Try to start the computer in safe mode Windows with network support (on the startup screen, press F8) as a test to see if it works better.

  • APEX 4.2 - Dates of passage on the next page does not work. Bug?

    I'm working on upgrading applications 4.1.0.0.23 APEX to APEX 4.2.1 (Oracle 11 g).

    I have a page that is a select statement as follows:
    <-code
    Select TBL_ADMIN_COUNT. ADMIN_ID as ADMIN_ID,
    TBL_ADMIN_COUNT. ADMIN_EMPLOYEE as ADMIN_EMPLOYEE,
    TBL_ADMIN_COUNT. ADMIN_DATE as ADMIN_DATE,
    TBL_ADMIN_COUNT. ADMIN_GROUP as ADMIN_GROUP,
    : P1_SELECT_FROM as FROM_DATE: P2_SELECT_TO like TO_DATE
    of TBL_ADMIN_COUNT TBL_ADMIN_COUNT

    -end code >

    where the: P1_SELECT_FROM and: P1_SELECT_TO are the fields date (format MM/DD/YYYY) and the default value is: to_char (NEXT_DAY(sysdate,'MON')-7, ' MM/DD/YYYY')

    When the link that uses the FROM_DATE is generated, the URL ends up like this:
    ... f?p=75160:2:102604017305620::NO::P2_DATE_FROM,P2_DATE_TO:04%26#x2F;08/2013,.

    What is mess up the URL? This same code works fine on APEX 4.1

    It has been duplicated at apex.oracle.com:

    Workspace: CHECKDATES
    USER: GUESTUSER
    Password: datecheck

    Please notify.
    Thanks in advance for your help...

    You are dealing with the new security setting for your application. He escapes the URL for you...

    Under the app, change security attributes, browser security, set your HTML escaping mode Basic...

    Thank you

    Tony Miller
    Ruckersville, WILL

  • Derive date value expires with the next line next entry above - 1 day

    Hello

    Try as a way to get a new date (EXPIRE_DATE) in a SQL query, the data are classified by EFF_DATE, how derive you column EXPIRE_DATE...

    Sample data:

    ID_NO EFF_DATE EXPIRE_DATE
    Null 2004 02/03/2011
    3922 06/04/2010-01/03/2011
    4454 20/06/2009-05/04/2010
    4544 17/02/2008-19/06/2009
    4232 13/07/2006-16/02/2008

    Thank you
    Qwestion

    This gives a shot:

    SELECT id_no
         , eff_date
         , LAG(eff_date) OVER (ORDER BY eff_date DESC) - 1  AS expire_date
    FROM   table_x
    ORDER BY eff_date DESC
    
  • In FF 9.0.1 on Win7, options &gt; security, when I choose 'Remember password', the selection is cleared the next time a bookmark is selected or a new tab opens. Any ideas?

    The sqlite file is still there, and I can open the list of password in the Options > Security page.
    I also have Norton - this could interfere?

    Hi jonbrace,

    Have you looked at the Knowledge Base article How to fix preferences that will not save? There are a lot of useful information in there.

    Hope this helps!

  • PDF possessing blocks to fill in dates, how do you get in the next box?

    I have a pdf form that has separate blocks to enter the date. How do the next block?  I can type in the first, but it won't let me tab or click on the next block.

    The field type you describe is called a "Comb" field Prior to version 6, there was no option for the field that could take the entire string of data at once and then display them with each character in a box.

    Have you tried to enter the entire field data as a single string?

    Would it be possible that the designer does not properly create the form field.

    Can you provide a link to a sample of the form you are trying to fill?

  • Go to the next page a selection lov

    Hi I have a situation where I have to select the name of the Department as lov and click the button to navigate to the next page and display information of the selected one and the next page of jsff he am in jdeveloper 11.1.1.6.0 how can I do

    I posted an example for this case of use here: http://tompeez.wordpress.com/2013/02/09/jdeveloper-11-1-1-6-0-use-selection-in-lov-to-navigate-to-detail/

    Timo

  • ADF Table how to change the color Selected row in the array unfocuse.

    Hi all

    I have a requirment where I select the row of the table ADF and unfocuse on the table.

    According to the framework it gives me the light yellow color.

    How can I change this color with another color.

    Pls suggest.

    Thanks to Advans

    Barry Mucheli.

    Hello, Barry Mucheli.

    To change the color of the selected row when it loses focus, add the following code in your skin css file.

    AF | : the table-row data: selected: inactive af | : the column cell data

    {

    background-color: Green;

    }

    RFH.

  • HOW TO MAKE DATE VISIBLE CONSTANTLY TO THE POINT WHERE IN THE NOTIFICATION BAR?

    I know that the date appears when I hover over the time. And I noticed that if I develop the width of the notification bar, the date will appear. But I don't want to do the bar is wider. I want just the date to display next to the time. I also know that I can go into customize Notification icons. HOWEVER, there is no icon to select which corresponds to the date display. (In a screenshot of another list of users, I saw a globe-type icon corresponding to the date and time display, but is not on my list.)

    I'd like your help. :^)

    Peace,

    -Virginia
    http://www.IMDB.com/name/nm0403825/

    Hello

    You said in addition to the clock so I initially think not that you need it however, others have
    said it would be a good idea to show this method of date display. Also if you are moving
    the taskbar vertically then the date is also displayed.

    Always see the day, date and time in the taskbar
    http://freewindowsvistatutorials.com/meetWindowsVista/taskbarAndSystemTray/showDayDateAndTimeInTheClock.php

    You can increase the highest taskbar - right click it - uncheck lock the taskbar then High grad
    He and raise more high and the date which will be under the clock.

    --------------------------------------------------------------------

    I found a utility that makes T-clock - free - 3 references to it:

    Windows7 like clock on the system in Vista & XP tray
    http://www.tothepc.com/archives/Windows7-like-clock-on-system-tray-in-Vista-XP/

    TClock: See the Date Look like Windows 7 & time in the system tray in Windows XP and Vista
    http://www.askvg.com/tclock-show-Windows-7-look-like-date-time-in-system-tray-in-Windows-XP-and-Vista/

    T - Clock of the Stoic Joker
    http://www.greggdeselms.com/tclock.html

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • code or function to generate the next date of work for a given date

    Hello

    First lets see the struncture table and the data in the table.
    CREATE TABLE LT_CA_HOLIDAYS
    (
      HOLIDAY_DATE            DATE                  NOT NULL,
      IS_BANK_HOLIDAY         CHAR(1 BYTE)          NOT NULL,
      DISPLAY_NAME            VARCHAR2(35 BYTE)     NOT NULL
    )
    
    
    Insert into LT_CA_HOLIDAYS
       (HOLIDAY_DATE, IS_BANK_HOLIDAY, DISPLAY_NAME)
     Values
       (TO_DATE('12/25/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'Y', 'Christmas Day');
    Insert into LT_CA_HOLIDAYS
       (HOLIDAY_DATE, IS_BANK_HOLIDAY, DISPLAY_NAME)
     Values
       (TO_DATE('01/01/2011 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'Y', 'New Years Day');
    Insert into LT_CA_HOLIDAYS
       (HOLIDAY_DATE, IS_BANK_HOLIDAY, DISPLAY_NAME)
     Values
       (TO_DATE('01/17/2011 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'Y', 'Martin Luther King Jr');
    Insert into LT_CA_HOLIDAYS
       (HOLIDAY_DATE, IS_BANK_HOLIDAY, DISPLAY_NAME)
     Values
       (TO_DATE('02/21/2011 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'Y', 'Washington s B-Day');
    Insert into LT_CA_HOLIDAYS
       (HOLIDAY_DATE, IS_BANK_HOLIDAY, DISPLAY_NAME)
     Values
       (TO_DATE('05/30/2011 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'Y', 'Memorial');
    Insert into LT_CA_HOLIDAYS
       (HOLIDAY_DATE, IS_BANK_HOLIDAY, DISPLAY_NAME)
     Values
       (TO_DATE('07/04/2011 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'Y', 'Independence Day');
    Insert into LT_CA_HOLIDAYS
       (HOLIDAY_DATE, IS_BANK_HOLIDAY, DISPLAY_NAME)
     Values
       (TO_DATE('09/05/2011 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'Y', 'Labor Day');
    Insert into LT_CA_HOLIDAYS
       (HOLIDAY_DATE, IS_BANK_HOLIDAY, DISPLAY_NAME)
     Values
       (TO_DATE('10/10/2011 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'Y', 'Columbus Day');
    Insert into LT_CA_HOLIDAYS
       (HOLIDAY_DATE, IS_BANK_HOLIDAY, DISPLAY_NAME)
     Values
       (TO_DATE('11/11/2011 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'Y', 'Verterans Day');
    Insert into LT_CA_HOLIDAYS
       (HOLIDAY_DATE, IS_BANK_HOLIDAY, DISPLAY_NAME)
     Values
       (TO_DATE('11/24/2011 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'Y', 'Thanksgiving Day');
    Insert into LT_CA_HOLIDAYS
       (HOLIDAY_DATE, IS_BANK_HOLIDAY, DISPLAY_NAME)
     Values
       (TO_DATE('12/25/2011 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'Y', 'Christmas Day');
    Insert into LT_CA_HOLIDAYS
       (HOLIDAY_DATE, IS_BANK_HOLIDAY, DISPLAY_NAME)
     Values
       (TO_DATE('12/26/2011 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'Y', 'Bank Observed Christmas');
    Insert into LT_CA_HOLIDAYS
       (HOLIDAY_DATE, IS_BANK_HOLIDAY, DISPLAY_NAME)
     Values
       (TO_DATE('01/01/2012 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'Y', 'New Years Day');
    Insert into LT_CA_HOLIDAYS
       (HOLIDAY_DATE, IS_BANK_HOLIDAY, DISPLAY_NAME)
     Values
       (TO_DATE('01/02/2012 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'Y', 'Bank Observed New Years Day');
    COMMIT;
    .

    The requirement goes something like this:


    SATURDAY and SUNDAY weekend days ARE considered holidays.

    The list of public holidays are in LT_CA_HOLIDAYS.

    We will give a date as p_processdate.we need to check if the p_processdate is a holiday or a business day,
    If p_processdate is a holiday, so we need to generate the next business day.
    If p_processdate is a day's work, we have to check if p_processdate + 1 is a business day, IF p_processdate + 1 is a holiday then
    We must generate the day following close p_processdate + 1.

    Concerning

    Hi Bro I edited by forum...

    sending correct code

    DECLARE
    
    day_param date:=TO_DATE('07/01/2011','MM/DD/YYYY');
    n_yes number;
    BEGIN
         LOOP
              day_param:=day_param+1;
              select count(*) into n_yes from LT_CA_HOLIDAYS WHERE TO_CHAR(HOLIDAY_DATE,'MM/DD/YYYY')=TO_CHAR(day_param ,'MM/DD/YYYY') ANd IS_BANK_HOLIDAY='Y' ;
              IF(to_char (day_param,'DY') NOT IN ('SAT','SUN')) AND n_yes=0 THEN
                   EXIT;
              END IF;
    
         END LOOP;
         DBMS_output.put_line('output'||day_param);
    END;
    

    output05-JUL-11

  • How to store data in slot - VI for the next race

    Hello

    I read a file csv and data read from the file in the form of tables (about 170000 pieces).  I'm processing the data in a Subvi.  Several times, I call the Subvi main VI treatment.  Because it takes a lot of time to read the file each time.  I'm storing the berries in local variables and when I call the Subvi next time, I read the data in local variable instead of reading the file.  This reduced the manyfolds execution time.  Since the applocation doesn't face crisis of memory right now, I don't deal with any problem.  But I don't know what happens when the application is running on the system with less RAM.  Will be the local variable be deallocated (which makes it unusable applications), or he will throw all memory error?

    Is there an other way better to store data in slot - VI that can be used the next time when it is called (without all the main data VI)?

    Hi Laurent,.

    See the attached screenshot of LV help for the effectiveness of the memory of the different elements of pass-through of LV

  • request to get the next date which is not a public holiday

    Hello world

    I need help for a query.  consider the following data

    holiday

    -------------

    SELECT To_Date('12/28/2015','mm/dd/yyyy') double holiday

    UNION ALL

    SELECT To_Date('12/25/2015','mm/dd/yyyy') double holiday

    UNION ALL

    SELECT To_Date('08/31/2015','mm/dd/yyyy') double holiday

    UNION ALL

    SELECT To_Date('05/25/2015','mm/dd/yyyy') double holiday

    UNION ALL

    SELECT To_Date('05/04/2015','mm/dd/yyyy') double holiday

    curr_DATE

    -----------

    SELECT To_Date('12/25/2015','mm/dd/yyyy') double holiday

    UNION ALL

    SELECT To_Date('12/24/2015','mm/dd/yyyy') double holiday

    UNION ALL

    SELECT To_Date('12/23/2015','mm/dd/yyyy') double holiday

    data of curr_date are the main table.  given a date, I want to join the vacation and the date of the Curr so that the result will be a date that is not a holiday.  for example, what gives 28 Dec.  the next available in curr_date < 28 dec date is dec 25. However, dec25th is a holiday on the guest table if the output should be dec 24.

    Another example is the following: given dec 25 date, the previous date, unless that Dec. 25 is dec 24th dec 24 is not in the host table output should therefore be dec 24.

    Another example: I'll add another line to the curr_date table. If the data will look like this

    curr_DATE

    -----------

    SELECT To_Date('12/28/2015','mm/dd/yyyy') double holiday

    UNION ALL

    SELECT To_Date('12/25/2015','mm/dd/yyyy') double holiday

    UNION ALL

    SELECT To_Date('12/24/2015','mm/dd/yyyy') double holiday

    UNION ALL

    SELECT To_Date('12/23/2015','mm/dd/yyyy') double holiday

    given dec 29, the next available in curr_date date is less than 29 dec 28 dec. However, dec28th is holiday in the host table. the next available date is dec 25 in curr_date, but once again dec25 in the host table.  the next available date is 24, but this date is not in the host table output should therefore be 24/12/2015.

    So basically I want to do this in the query by joining the two tables.  can anyone help? pl/sql is ok if it cannot be done using quries.

    Hello

    If you want to use a join, here's one way:

    SELECT MAX (c.holiday) AS last_non_holiday

    OF curr_date c

    LEFT OUTER JOIN holiday h ON h.holiday = c.holiday

    WHERE c.holiday< to_date="" (:cutoff_date,="">

    AND h.holiday IS NULL

    ;

  • How can I make a button to be interactive so when its checked or clicked, the next tab fields become required field?

    I'm trying to create a form that contains a button to select a credit card or check.  When someone chooses the credit card, I need to become a required credit card information fields.  In the contrary case, it they select check, all the fields of credit card (number, exp. date, security code...) to be non-mandatory field.

    Why use a button. If you have a checkbox or a radio button, you can use the available actions for one of these fields to adjust the properties of the fields depending on what widget in the Group has been selected that can be to make the required, visible and required fields and then reset/clear the other group of fields, do so in read-only and disabled the requirement.

  • Advanced Action help - the user must select all before moving on to the next slide

    I need a tip action that will require the user to select a number of option buttons containing information until the next button appears. I don't know how to write it. I want the user to be able to select each button in any order that they choose. Can someone give me a step by step process? Your help is greatly appreciated!

    What version do you use? Why radio buttons? The behavior expected normal of radio buttons is that only one can be selected, you seem to ignore what is generally accepted. As having a next button appears only after several items have been selected, this has been explained many times in this forum and have many examples in my blog. They are free, maybe not considered worth nothing...

    You need a variable associated with each item. Click on an item to trigger a conditional action advanced or shared with two decisions. First decision is simulated standard action, rotate the variable from 0 to 1, then is a real condition that will make the next visible button if all variables have the value 1.

Maybe you are looking for