Hide portlet in between some date of the month

Hi all,
I have a requirement to hide a perticular portlet in between some dates in a month.
Say I want to show portlet from 1st of month to 15th o the month and hide portlet
for rest of the month.
How can I achive this.
Can I do it through portal admin if yes how?
Or i will have to do it programatically?
Any help on this will be highly appreciated
Thanks in advance
Manish

Right now, I don't think the entitlements support this type of
day-of-month checking functionality directly. However, you can use a
role and entitlement as part of a solution. You could have a servlet
filter or your portal's skin's jsp or the portlet's backing file
initialize a request attribute called DayOfMonth to the numeric day of
the month from a java.util.Calendar. e,g.:
request.setAttribute("DayOfMonth",
new Integer(Calendar.getInstance().get(Calendar.DAY_OF_MONTH)));
Then, in workshop, create a Request Property Set in data/request. Add a
single-value, unrestricted Numeric property called DayOfMonth. Save the
Request Property Set. In the admin portal, create a role whose condition
checks the request's DayOfMonth property to be greater than or equal to
1 and less than or equal to 15. Entitle the portlet to that role.
Greg
Manish wrote:
Hi all,
I have a requirement to hide a perticular portlet in between some dates in a month.
Say I want to show portlet from 1st of month to 15th o the month and hide portlet
for rest of the month.
How can I achive this.
Can I do it through portal admin if yes how?
Or i will have to do it programatically?
Any help on this will be highly appreciated
Thanks in advance
Manish

Similar Messages

  • How to export some data from the tables of an owner with integrity?

    Hi to all,
    How to export some data from the tables of an owner with integrity?
    I want to bring some data from all tables in a single owner of the production database for development environment.
    My initial requirements are: seeking information on company code (emp), contract status (status) and / or effective date of contract settlement (dt_liq_efetiva) - a small amount of data to developers.
    These three fields are present in the main system table (the table of contracts). Then I thought about ...
    - create a temporary table from the query results table to contract;
    - and then use this temporary table as a reference to fetch the data in other tables of the owner while maintaining integrity. But how? I have not found the answer, because: what to do when not there is the possibility of a join between the contract and any other table?
    I am considering the possibility of consulting the names of tables, foreign keys and columns above, and create dynamic SQL. Conceptually, something like:
    select r.constraint_name "FK name",
    r.table_name "FK table",
    r.column_name "FK column",
    up.constraint_name "Referencing name",
    up.table_name "Referencing table",
    up.column_name "Referencing column"
    from all_cons_columns up
    join all_cons_columns r
    using (owner, position), (select r.owner,
    r.constraint_name fk,
    r.table_name table_fk,
    r.r_constraint_name r,
    up.table_name table_r
    from all_constraints up, all_constraints r
    where r.r_owner = up.owner
    and r.r_constraint_name = up.constraint_name
    and up.constraint_type in ('P', 'U')
    and r.constraint_type = 'R'
    and r.owner = 'OWNERNAME') aux
    where r.constraint_name = aux.fk
    and r.table_name = aux.table_fk
    and up.constraint_name = aux.r
    and up.table_name = aux.table_r;
    -- + Dynamic SQL
    If anyone has any suggestions and / or reuse code to me thank you very much!
    After resolving this standoff intend to mount the inserts in utl_file by a table and create another program to read and play in the development environment.
    Thinking...
    Let's Share!
    My thanks in advance,
    Philips

    Thanks, Peter.
    Well, I am working with release 9.2.0.8.0. But the planning is migrate to 10g this year. So my questions are:
    With Data Pump can export data just from tables owned for me (SCHEMAS = MYOWNER) parameterizing the volume of data (SAMPLE) and filters to table (QUERY), right? But parameterizing a contract table QUERY = "WHERE status NOT IN (2,6) ORDER BY contract ":
    1º- the Data Pump automatically searches for related data in other tables in the owner? ex. parcel table has X records related (fk) with Y contracts not in (2,6): X * SAMPLE records will be randomly exported?
    2º- for the tables without relation (fk) and which are within the owner (MYOWNER) the data is exported only based on the parameter SAMPLE?
    Once again, thank you,
    Philips
    Reading Oracle Docs...

  • Hi guys, an empty folder is stuck in my trash & I get this message: "The Finder can't complete the operation because some data in the folder can't be read or written. (Error code -36). It won't shift no matter how I try to Secure Empty trash. Any ideas?

    Hi guys, an empty folder is stuck in my trash & I get this message: "The Finder can’t complete the operation because some data in the folder can’t be read or written. (Error code -36). It won't shift no matter how I try to Secure Empty trash. Any ideas?

    The Time Machines Backup is formated as Mac OS Extended (Case Sensitive, Journaled), my mac is formated as Mac OS Extended (Journaled).
    The names on the file are all Uppercase
    When I try to copy the Aperture file, it copies about 70% of the file (it's about 33GB in size), and halfway through I get this error.
    I'm able to copy 99.99% of all of the images if I open the Aperture Folder using the "show package contents" under the backups using finder (Time Machine Backups>Backups.backupdb>CQ Macbook Air>2012-04-30-070933>HD.....>Pictures>Aperture Library). The only file I can't copy is that picture, which I'm totally ok with deleting, but Finder won't delete it for me. If nothing else works, I could copy the individual masters and re-create the folders, however I'd hate to do this as I would have to go through 10,000+ pics

  • How can get difference between 2 dates in the form of days

    how can get difference between 2 dates in the form of days

    Hi,
    Check the following program:
    REPORT ZDATEDIFF.
    DATA: EDAYS   LIKE VTBBEWE-ATAGE,
          EMONTHS LIKE VTBBEWE-ATAGE,
          EYEARS  LIKE VTBBEWE-ATAGE.
    PARAMETERS: FROMDATE LIKE VTBBEWE-DBERVON,
                TODATE   LIKE VTBBEWE-DBERBIS DEFAULT SY-DATUM.
    call function 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
      exporting
        i_date_from          = FROMDATE
        i_date_to            = TODATE
      I_FLG_SEPARATE       = ' '
      IMPORTING
        E_DAYS               = EDAYS
        E_MONTHS             = EMONTHS
        E_YEARS              = EYEARS.
    WRITE:/ 'Difference in Days   ', EDAYS.
    WRITE:/ 'Difference in Months ', EMONTHS.
    WRITE:/ 'Difference in Years  ', EYEARS.
    INITIALIZATION.
    FROMDATE = SY-DATUM - 60.
    Regards,
    Bhaskar

  • Goto: How to export some data from the tables of an owner with integrity?

    Hi to all,
    Help please: How to export some data from the tables of an owner with integrity?
    My thanks in advance,
    Philips

    Thanks, Peter.
    Well, I am working with release 9.2.0.8.0. But the planning is migrate to 10g this year. So my questions are:
    With Data Pump can export data just from tables owned for me (SCHEMAS = MYOWNER) parameterizing the volume of data (SAMPLE) and filters to table (QUERY), right? But parameterizing a contract table QUERY = "WHERE status NOT IN (2,6) ORDER BY contract ":
    1º- the Data Pump automatically searches for related data in other tables in the owner? ex. parcel table has X records related (fk) with Y contracts not in (2,6): X * SAMPLE records will be randomly exported?
    2º- for the tables without relation (fk) and which are within the owner (MYOWNER) the data is exported only based on the parameter SAMPLE?
    Once again, thank you,
    Philips
    Reading Oracle Docs...

  • Put some data form the databse of SQL Server into SAP and auto general PR?

    Dear all,
            Can you tell me how I can put some data from the databse of SQL Server into SAP and auto general PR?
    Best regards,
    Merryzhang
    Edited by: merry zhang on Feb 4, 2009 9:10 AM

    Hi Zhang,
    If i have understood your question properly, I guess you wanted to create Purchase Requistion automatically right?
    Then you have lots of option simpilest one would be create a couple of Z table with all the fields that you require for header and Item.
    create a Program and use BAPI function module to create the PR by reading the values from those Z tables. after creation delete the contents from the table. Schedule this program in Background periodically like everyday or weekly once however you would like it to be. So once the table has contents in it and when the program runs it will create the PR's (Purchase Requisition).
    You can also use a workflow with the Z table. Once the Z table is filled you can trigger a workflow based on the Table change. I'm not sure like how to do it but I nkow that this process can also be used.
    Hope this might have thrown some light upon.
    Thanks,
    Prashanth

  • Want last date of the month as default basic finish date for the Proc order

    For forward scheduling type in process order, irrespective of the start date i want last date of the month as my  basic finish date.
    Ex start date can be 01/10/2009 or 15/10/2009, but the basic finish date should be 31/10/2009.

    Hi Sam,
    sorry to say , its not possible in standard SAP.
    1) If, on order creation, a planned order exists for the production order/ process order, the basic dates are copied from the planned order.
    2)If no planned order exists on order creation, you must specify at least one basic date.
    The scheduling type determines the basic dates that you must specify. and it useses timings from routings for scheduling.
    so may be you need some work around.
    explain your requirement why do you want to fix it for the last day of month and other constraints, may be we can find some way.
    Regards
    Ritesh

  • Terms of Payment to determine due date as last date of the month

    Hi Experts,
    Does any one know how to configure a Terms of Payment to determine due date as last date of the month ?
    I tried by puting fixed date as 31 in the Terms of Payment in FI but when I am creating in FI-CA it gives me an error "_Term of payment Z003 is inconsistent/not planned_"
    Please advice.
    Thanks & Regards
    Satyajeet

    Hi Satyajeet,
    It seems the settings that you have maintained in FI are correct.
    When you are assigning the payment terms in FI-CA, you need to assign a factory calendar as well to the payment terms in the following config-
    IMG->Financial Accounting ->Contract Accounts Receivable and Payable->Postings and Documents->Document->Maintain Payment Terms
    If you have already assigned the factory calendar and still the problem persists, can you give the message ID and the message number of the error that you are getting?
    Thanks,
    Amlan

  • TO FIND START DATE AND END DATE OF THE MONTH

    HAI ALL,
               I want to find the start of the date for the month and end of the date for the month, for given date.
    Ex. if input is : 08-06-2007,
                                           I want to get the first and last date for this month.
    . Is there any FM .
    thanks in advance,
    senthil kumar

    Hi,
    Use the Function modue RE_LAST_DAY_OF_MONTH to get the last day
    For first day..
    DATA: V_DATE TYPE D.
    V_DATE = SY-DATUM.
    V_DATE+6(2) = '01'.
    WRITE: / 'First day is ', v_date.
    Thanks,
    Naren

  • To display Last Date of the Month in Financial Reporting studio 9

    Hi
    I want to display last date of the month in header in Financial Reporting studio 9 . Is there any function which displays the last date of the month as per user selection .
    for example
    If user select month of Jan it should display Jan 31st, 2009
    If user select month of Feb it should display Feb 28th 2009
    Thanks

    Unless you name your Months like that you cannot do it. A large team from a major consulting firm told me for a year that it was not possible and convinced management that financial statements don't need dates.
    Management decided that we do need dates (because all financials need dates, look at any text book). I figured out a pretty sweet solution that is simple and easy to use and maintain. The users love it. Management loves it.
    I'm not giving it away though.

  • Anyone else getting a message that they have almost used all of their data for the month?

    We just got a message saying that we have used 90% of our data for the month and we are only 10 days into the billing cycle. I looked at our account on line and it says that we aren't even close to using our total data for the month. When does all of the stupid stuff stop? When I switched to Verizon 10 years ago, they were great. Great customer service, great plans, etc. Now that has gone away. The 4G service is an absolute joke. Where I used to have great service, there literally is none, and the phone won't even switch to 3G if it is in a bad area. I travel through a major city every day and I am amazed at how crappy the service is.
    Now I'm getting messages that aren't even correct??? I have a lot of lines on my account and I don't want to go elsewhere, especially since I live in the country and Verizon is the only way to get decent internet service, but this is getting rediculous. I guess listening to the customers doesn't matter anymore as long as they get their money.

        Hi GeoffPrice
    I'm sorry to hear your getting alerts that are incorrect. Let's get to the bottom of this. What zip code are you in? Are any other devices having the same issue on your account?
    JoeL_VZW
    Follow us on Twitter @VZWSupport

  • First date of the month

    How to calculate the first date of the month on basis of YYYYMM month format ?
    Sanjay

    Hi User,
    If you try using
    SELECT TO_DATE ('201211' || '01', 'ÝYYYMMDD')
      FROM DUAL;We get error as
    >ORA-01821: date format not recognized
    Just Try doing this,
    Convert to CHAR format and Use the Date Function to convert to Date.
    SELECT TO_DATE (TO_CHAR (:STRING || '01'), 'YYYYMMDD')
      FROM DUAL;Input :
    String - 201112
    Output :
    Date
    12/1/2011
    Thanks,
    Shankar

  • Please help.........how can i get the last date of the month?????

    Hello....
    I want to get the last date of the month.
    For example, the last date of Jan is 31.
    How can I get the last date of the particular month and year ????
    Thanks for help.
    Gloria

    Hi Gloria
    1. How can I compare the date???date1.compareTo(date2)
    where date1 and date2 is a java.util.Date Object
    will return 0 if it is the same date
    or
    date1.after(date2)
    where date1 and date2 is a java.util.Date Object
    will return true if date1 is after date2
    (the same for date1.before)
    2. How can I change the date format into yyyymmdd format???? I just want the year, month and date.try the java.text.SimpleDateFormat Object
    new SimpleDateFormat("yyyymmdd").format(yourdate)
    Hope this help.
    Please also have a look at a calendar I wrote, (maybe it help)
    demo & source :
    http://www.geocities.com/globe_software/java/components/
    globe_sa

  • Last date of the month

    Hi All,
    Can anyone tell me the logic to get the last date of the month for vbrk-fkdat. The date format is dd/mm/yyyy. i need the output on the same format.
    for ex: if vbrk-fkdat = 17/12/2007 the output should be 31/12/2007.
    Thanks,
    Madhu

    actually the FM only takes date like sy-datum. but my variable is
    i had made the changes like -
    data: gv_date(10) TYPE c,
            gv_date1(10) TYPE c.
    CONCATENATE wa_vbrk-fkdat6(2) wa_vbrk-fkdat4(2) wa_vbrk-fkdat+0(4) INTO gv_date SEPARATED BY '/'.
      REPLACE ALL OCCURRENCES OF '/' IN gv_date WITH '.'.
          CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
            EXPORTING
              day_in            = gv_date
            IMPORTING
              last_day_of_month = gv_date1.
    REPLACE ALL OCCURRENCES OF '.' IN gv_date1 WITH '/'.
    but its showing the error as the variable declaration is different as it is in FM, i.e FM contains date type sy-datum.
    please reply ASAP.
    Thanks,
    madhu

  • Performing Exchange Server patching & service pack for mailbox server without losing some data during the rollback ?

    People,
    I'd like to know how can I safely apply the Exchange Server service pack or cumulative update to the Mailbox Server role (no DAG) without losing some email during the downtime and rolling back the snapshot ?
    Can I do the following:
    1. Stop all of the Exchange Server services.
    2. Disconnect the vNIC in Mailbox server
    3. Take VM snapshot
    4. Apply the Exchange Server service Pack / Cumulative Update or Windows Update
    5. Reboot
    6. Reconnect the vNIC, if the server back online again with no issue, commit / delete the snapshot, if not, then disconnect the vNIC followed by roll back.
    would that be make sense or supported from both Vmware and Microsoft http://www.vmware.com/files/pdf/exchange-2010-on-vmware-support-and-licensing-guide.pdf ?
    If yu have any other suggestion, please let me know here.
    Thanks in advance.

    Hey AlbertWT,
    I'll start off by saying that I wouldn't do it.  Microsoft is explicit that snapshots are not supported with Exchange when virtualized.  See below (from Exchange 2013 virtualization: Exchange 2013 Help):
    Some hypervisors include features for taking snapshots of virtual machines. Virtual machine snapshots capture the state of a virtual machine while it's running. This feature enables you to take multiple snapshots of a virtual machine and then revert the virtual machine to any of the previous states by applying a snapshot to the virtual machine. However, virtual machine snapshots aren't application aware, and using them can have unintended and unexpected consequences for a server application that maintains state data, such as Exchange. As a result, making virtual machine snapshots of an Exchange guest virtual machine isn't supported.
    Even if we ignore the support statement on snapshots this is still not a good idea.  Here are some things to consider.
    1) Cumulative updates for Exchange make changes to the Active Directory Schema.  Rolling back the snapshot on the Mailbox server will not roll back the changes to AD, which could cause functional and supportability issues.  See this link to give you an idea of how there are AD schema updates in every Exchange CU and service pack: Exchange 2013 Active Directory schema changes: Exchange 2013 Help
    2) It is possible for email to come in during the time that you're testing the update, and if you need to roll back you would need a plan to get that email back.  Third party services could work, or you could prevent email from coming into your environment completely during that time, but those are not ideal solutions.
    A far better solution would be to create a lab environment that is isolated from production.  You could either take clones of your Exchange and AD VMs and put them into a network fenced environment, or create a lab and import your AD structure so it matches production.  I think this is a far better way to test than trying to rely on snapshots in production.
    Hope that helps!
    Matt

Maybe you are looking for