Adaptive tag for date value - output in milliseconds?

I'm trying to add code to my presentation template, so when a page has multiple content items, I grab the most recent value of all 'last modified dates' for the content items on the page, so this would essentially display the page's last modified date. The approach I'm trying involves outputting the modified date for each content item into a format I can sort in a javascript function, then retrieve the most recent value to display at the bottom of the page's content. In this case, I figured the best manner to sort the items easily would be to display the date in milliseconds, then sort, and finally convert the most recent modified date into mmmm dd, yyyy hh:mm AM/PM format.
I see there is a method to obtain this date in millseconds (since January 1, 1970) format in javascript, however, is there a way to do this using the adaptive tag <pcs:value expr="modified" format="____________">?
If not, is there a better way to obtain dates for sorting in a javascript function, so can obtain the entire date, hours, and minutes? I did find one method that grabs the month, day, and year, but not the hours and minutes.
Thanks!

Hi Suman/Jeedesh,
As per Pco notification, it will trigger whenever any of the tag value changes in Agent instance subscription items.
For above issue, My suggestion
1. Create DB table name TAGLIST with 200 tags as rows in columns (Tagname, TagValue)
2. Based on notification trigger, create a transaction and update values w.r.t TagNames in above table
3. Next time, when notification trigger with fresh value for any of the tag, cross check with existing TagName with Value and update in DB table.
4. And in the mean time, send those Tag details vie mail trigger or as per requirement
Instead of creating 200 notification, above is a just alternate way suggestion to achieve dynamic tag value change notification.
Hope it might solve your problem
Regards,
Praveen Reddy

Similar Messages

  • CreateWithParams operation for Date value

    Hi,
    i want to use createwithparams for date value. I have drag and dropped the createwithparams operation and in the page def file and i have inserted NamedDate and in that i have entered NDName, NDType as "oracle.jbo.domain.Date" and NDValue. But its not working... Please help

    Which Jdev version. What error ? What value do you exactly pass ?

  • Struggling on h:inputText tag for date type property

    I am struggling to display a simple form which is attached to a bean having a Date type property.
    I get the following exception each time I try to access the form, even it does not display as a blank form for the first time access.
    Exception:
    [#|2008-01-04T14:39:13.500+0530|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.container.web|_ThreadID=12;_ThreadName=httpWorkerThread-3031-1;_RequestID=676ba2b1-9b5e-4a96-adb5-b1a792507b40;|StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    javax.faces.FacesException: Error performing conversion of value ' of type class java.lang.String to type class java.util.Date for managed bean userBean.
    javax.servlet.ServletException: Error performing conversion of value ' of type class java.lang.String to type class java.util.Date for managed bean userBean.The JSP page contains the following tag for the inputText
                <h:inputText value="#{userBean.dob}" id="dob" required="true">
                    <f:convertDateTime pattern="MM/dd/yyyy" />
                </h:inputText>
                <h:message for="dob" />I want to display a blank form with all the text fields blank.
    Any help will be much appreciated.

    You should be able to do
       <h:inputText value="#{bean.lastDate}"/>Where 'bean' is the managed bean name containing
    the method getLastDate().
    When the view is rendered, the getter (getLastDate())
    will be called to display whatever value is returned.

  • Adaptive tag for current community

    Is there a adaptive tag to get the current community data.

    You can display the current community name with the  tag:
    <pt:standard.realmname>
    The community ID is a little bit trickier. It can be extracted from the current community page URLs with the
    <pt:ptdata.currcommunitypagesdata pt:id=&#034;pages&#034;>
    tag. It returns a list with community page urls with the community id as the objid parameter. Something like this:
    <pt:logic.foreach pt:data=&#034;pages&#034; pt:var=&#034;curr&#034;>
      <pt:logic.variable pt:key=&#034;currcommid&#034; pt:value=&#034;$curr.objid&#034;/>
    </pt:logic.foreach>
    <pt:logic.value pt:value=&#034;$currcommid&#034;/>

  • Custom adaptive tags for 6.5 / 10gR3

    I'm going through an upgrade, and it seems that while some of the custom adaptive tags developed for 6.1 work in 10gR3, there are some that do not. Before I go about doing the work, I felt that I should ask..has anyone done this yet? I didn't see any .NET dll's in the alui toolbox...
    In particular, the tag that I need right now is the pt:standard.openerlink with the ability to display extra parameter(s).

    This is actually easier than I expected. I don't know why i was scared of creating new tags all these years. A few things that I found...
    With friendly urls, when the link is created (using standard.openerlink), the portal needs to look up the object to ensure that its valid (makes sense, otherwise, how would it put the name in the friendly url). I would imagine that this would have performance implications, right?

  • File Adapter problem for Fixed Length output file

    Hi There!,
    The following is my sample data format
    ABCD 2345 03Accounting Swissland
    ABCD 011234 1000Jack Gates 400000 03
    ABCD 021234 1001Bill Welch 400000 03
    In the first record has dept details:
    DummyText, Row identifier(not given in case of dept), Identifier, Deptno, Deptname, Location
    The second and third records are emp details:
    DummyText,Row identifier, Identifier,EmptNo,Emp Name, Manager, Salary, Deptno.
    Notice that the primary key is defined by the first three columns DummyText, Row identifier, Identifier.
    When I use Native Format Builder from File Adapter and scan the first three columns I get all three records (i.e dept and both employees). I deleted the second employee and proceeded to finish the configuration. But, the problem I face is that the key value shows as "ABCD% 011234" for both the employee records where as I would like it to show as "ABCD 011234" for the first record and "ABCD 021234" for the second record.
    How do I get around this problem?
    Moreover if I have a group or recurring records and not just one record recurring. I mean assuming I have the following:
    First row: Department
    Second row: Employee
    Thrid row: Manager
    Fourth row: Employee
    Fifth row: Manager
    How do I get this done?
    Does anyone have an idea where to find details of nxsd.
    Thanks in Advance.

    Hi Manoj
    Give the FCC parameter as
    RecordSet Structure = Header,,Detaillnes,,Detaillines2,*
    Header.endSeparator = 'nl'
    Header.fieldFixedLengths = field length
    Header.fieldFixedLengthType = char/byte
    Header.fieldNames = field1,field2,field3,.....
    Header.keyFieldValue = Header
    Detaillnes.endSeparator = 'nl'
    Detaillnes.fieldFixedLengths = field length
    Detaillnes.fieldFixedLengthType = char/byte
    Detaillnes.fieldNames = field1,field2,field3,.....
    Detaillnes.keyFieldValue = Detaillnes
    Detaillines2.endSeparator = 'nl'
    Detaillines2.fieldFixedLengths = field length
    Detaillines2.fieldFixedLengthType = char/byte
    Detaillines2.fieldNames = field1,field2,field3,.....
    Detaillines2.keyFieldValue = Detaillines2
    The keyFieldValue should be the Value which identifies your record either as Header/Detaillines/Detaillnes2.
    Regards
    Santhosh
    Message was edited by:
            Santhosh Kumar V

  • Pcs:if tag for date items

    Hi, experts,
    Our customer create publihser presentation template.
    they code to compare the date as follows, but does not work.
    <pcs:if expr='item.publish_date &ge; "2011/04/01 00:00"'>
    <pcs:value expr="item.subject"></pcs:value>
    </pcs:if>
    Could you give some comments, better for sample code.
    Regards
    Sai

    Hello Sai,
    There is a KB article that explains how one would compare dates in Publisher. In short, you can't hard-code a string in the presentation template to compare to a date property. It will never return true. The only way to compare is to use another date property.
    https://support.oracle.com/oip/faces/secure/km/DocumentDisplay.jspx?id=1338936.1
    -Mike Headley, WCI Developer Support

  • HTML tags for certain values in a report

    Hi, I have built a report with a list of patient visit to a doctor. This is roughly a custom calendar with the names of the patients at different predefined hours.
    I am now trying to display a canceled visit by adding a strike through line for the patient in question.
    The overall look will be list with patient's names and some of them will be strike through-ed if they canceled it.
    So I changed my select for the report to look like this:
    select '<del>' || patient || '</del>' where canceled = 1 ...
    But the report still looks the same - no lines through the names.
    I also tried with bold tag but it seems that the tags are just dropped off somewhere in the process of rendering.
    Could anyone help?

    For using tags in the calendar see this link:
    http://apex.oracle.com/pls/otn/f?p=31517:116
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Java.lang.NoSuchMethodError on my adf:inputrender tag for Date attribute

    Hello!
    Please help. I don't know how to fix this error:
    java.lang.NoSuchMethodError: oracle.adf.model.binding.DCUtil.findSpelObject(Ljava/lang/Object;Ljava/lang/String;Z)Ljava/lang/Object;     
    at oracle.jbo.html.jsp.datatags.DataTagBase.initializeUsingModelReference(DataTagBase.java:112)     
    at oracle.jbo.html.jsp.datatags.DataTagBase.initializeDataSource(DataTagBase.java:144)     
    at oracle.jbo.html.jsp.datatags.DataTagBase.internalInitialize(DataTagBase.java:274)     
    at oracle.jbo.html.jsp.datatags.InputTagBase.internalInitialize(InputTagBase.java:164)     
    at oracle.jbo.html.jsp.datatags.InputRenderTag.internalInitialize(InputRenderTag.java:77)     
    at oracle.jbo.html.jsp.datatags.InputTagBase.doStartTag(InputTagBase.java:235)
    I am using Jdev 10.1.2 and this error points to my adf:inputrender tag. I am rendering a Date attribute from my viewobject. Also this error only shows up in my deployed jsp (deployed to OAS 10.1.2). If I just run the web app in JDev 10.1.2 (using Standalone OC4J), there is no error.
    Please help!

    Hello,
    Anyone, please help me on this... by the way, I run my program without errors in JDev's OC4J, not the standalone OC4J. But when I deploy it to my server's OAS, it gets the error above whenever I load a jsp with an adf:inputrender on a Date attribute of my VO.

  • DbExecute tag for data access won't work

    On oc4j 1.0.2.2.1, I can update Oracle table by using dbExecute data-access tag. However, the same dbExecute tag won't make update on oc4j 9.0.2.1.
    Can anyone help?
    Thanks,

    It turns out dbExeute tag on newer oc4j need explicit COMMIT.

  • Prompt for Date Values in Query

    I have the following query but instead of setting the variables I would like to be prompted upon running. 
    I tried using the [%0] but couldn't get it to work.  Any suggestions would be appreciated.
    declare  @StartDate DateTime
    declare @EndDate DateTime
    set @StartDate = '20091101'
    set @EndDate = '20091130'
    select substring(rdr1.ITEMCODE,1,3) as BRAND, ROUND(sum(rdr1.linetotal),2) AS ORDERTOTAL, isnull(ROUND(sum(dln1.linetotal),2),0) AS SHIPTOTAL, isnull(ROUND(sum(rdr1.linetotal),2)  - ROUND(sum(dln1.linetotal),2),0) AS TOTALDIF, ROUND(sum(rdr1.grssprofit),2) AS ORDERGP, isnull(ROUND(sum(dln1.grssprofit),2),0) AS SHIPGP, isnull(ROUND(sum(rdr1.grssprofit),2) - ROUND(sum(dln1.grssprofit),2),0) AS GPDIF, isnull(ROUND((sum(dln1.linetotal) / sum(rdr1.linetotal)*100),2),0) AS FILLRATE
    from rdr1
    LEFT OUTER join dln1
    on (rdr1.docentry = dln1.baseentry and rdr1.itemcode = dln1.itemcode) join ordr on ordr.docentry = rdr1.docentry join oitm on oitm.itemcode = rdr1.itemcode
    where rdr1.linestatus = 'C' And ordr.canceled = 'N' And ordr.docstatus = 'C' And oitm.u_status = '01' And
    rdr1.docdate >= @StartDate And rdr1.docdate <= @EndDate
    GROUP BY substring(RDR1.ITEMCODE,1,3) ORDER BY substring(RDR1.ITEMCODE,1,3)

    Try this one:
    declare @StartDate DateTime
    declare @EndDate DateTime
    /* select * from rdr1 t where t.docdate between [%0] and  [%1]*/
    set  @StartDate =  [%0]
    set @EndDate = [%1]
    select substring(rdr1.ITEMCODE,1,3) as BRAND, ROUND(sum(rdr1.linetotal),2) AS ORDERTOTAL, isnull(ROUND(sum(dln1.linetotal),2),0) AS SHIPTOTAL, isnull(ROUND(sum(rdr1.linetotal),2) - ROUND(sum(dln1.linetotal),2),0) AS TOTALDIF, ROUND(sum(rdr1.grssprofit),2) AS ORDERGP, isnull(ROUND(sum(dln1.grssprofit),2),0) AS SHIPGP, isnull(ROUND(sum(rdr1.grssprofit),2) - ROUND(sum(dln1.grssprofit),2),0) AS GPDIF, isnull(ROUND((sum(dln1.linetotal) / sum(rdr1.linetotal)*100),2),0) AS FILLRATE
    from rdr1
    LEFT OUTER join dln1
    on (rdr1.docentry = dln1.baseentry and rdr1.itemcode = dln1.itemcode) join ordr on ordr.docentry = rdr1.docentry join oitm on oitm.itemcode = rdr1.itemcode
    where rdr1.linestatus = 'C' And ordr.canceled = 'N' And ordr.docstatus = 'C' And  oitm.u_status = '01' And
    rdr1.docdate >= @StartDate And rdr1.docdate <= @EndDate
    GROUP BY substring(RDR1.ITEMCODE,1,3) ORDER BY substring(RDR1.ITEMCODE,1,3)

  • Search help for date field in Editable ALV

    Hello Friends,
    I am using editable alv using 'reuse_* '.
    I have used date as input field. While creating fieldcatlog also i have  declared dat as a mkpf-budat.
    But i am not getting serach help for date in output.
    Is it possible with reuse or i have to go by object oriented ?

    Hi,
    Just pass the Edit option of the fieldcatalog for those specific fields...
    fcat-edit = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = sy-cprog
          i_callback_pf_status_set = 'PF_STATUS_SET'
          i_callback_user_command  = 'USER_COMMAND'    "<----  pass this
          i_callback_top_of_page   = 'TOP'
          is_layout                = it_layout
          it_fieldcat              = it_fcat
          i_default                = 'X'
          i_save                   = 'A'
          it_events                = it_event
        TABLES
          t_outtab                 = it_final
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
    *&      Form  USER_COMMAND
    *       text
    *      -->R_UCOMM      text
    *      -->RS_SELFIELD  text
    FORM user_command USING r_ucomm LIKE sy-ucomm
                            rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
        WHEN '&DATA_SAVE'.                "<-------check this
          PERFORM save_data.
      ENDCASE.
    ENDFORM.                    "USER_COMMAND

  • Cm:select content query for date

    Hi,
    does anyone know how to form the query in the cm:select tag for dates.
    i want to do something like this but it does not work that way:
    <cm:select query="type = 'news' && date > 05.10.2002" ...>
    thanks for any help.

    Please post this to the Portal newsgroup.
              ronald ploeger wrote:
              > Hi,
              >
              > does anyone know how to form the query in the cm:select tag for dates.
              >
              > i want to do something like this but it does not work that way: <cm:select query="type
              > = 'news' && date > 05.10.2002" ...>
              >
              > thanks for any help.
              Regards,
              Ann
              Developer Relations Engineer
              BEA Support
              

  • Report data ( value ... tag) missing in the Webi report retrieved through RestFul Webservice

    I am trying the below URL to get the WEBi report from SAP BO using the Rest Webservice support that is now available.
    http://{serverIP:serverPort}/biprws/raylight/v1/documents/{documentId}
    I am able to get the report but as I compare the same report response when using SAOP Webservice, there seems to be a mismatch in the response. Here is what I see in the SOAP response:
    </td><td c="1" ><cell  ref="1.E.4t" bid="14" h="26" w="231" pad="6,7" sid="-10"><ct >Some arbitrary value</ct><value type="xs:string">Some arbitrary value</value></cell>
    But when I run it through REST, I am missing the <value ..> tag:
    </td><td c="1" ><cell  ref="1.E.4t" bid="14" h="26" w="231" pad="6,7" bt="1" sid="-10"><ct >Some arbitrary value</ct></cell>
    Apart from this right at the start of the xml response, I see some property mismatch as well.
    SOAP has this property extra:
    <property name="output.format.xml.valuemode">yes</property>
    While REST has these property extra:
    <property name="output.format.xml.option.style">1</property>
    <property name="output.format.xml.styledict.fontplatform">html</property>
    <property name="output.format.xml.td.bandinfo">yes</property>
    <property name="source.selected">data</property>
    <property name="xelement.xml.object">yes</property>
    <property name="xelement.xml.object.usemap">yes</property>
    <property name="xelement.xml.object.usersupportedformat">image/png</property>
    I am not sure if:
    the <value ...> tag miss is because of these missing/extra properties or
    current REST support has some issues
    For my application the value tag is a must and I can't do without this, but with REST it seems no way to obtain that.
    Any help or pointer(s) in this regard is appreciated!

    Hello Milind,
    According to our Product Owner Sam Polichouk, the solution should be available for you in 4.1 SP3, which is currently scheduled for release by the end of March 2014 (subject to change).  The product team recommends that you get the raw, unformatted data values from within the Dataset specific call.  This data contains a type to tell the end user what kind of data it is, so you can format it or use it properly.
    The updated documentation for the SDK will be available at SAP BusinessObjects Business Intelligence platform 4.1 – SAP Help Portal Page once the Support Pack is publicly released.

  • In the Online Shop Layouts: Individual Product - Large, is there a tag for the Large Image value?

    I need a tag for the URL to the large image in order to use the Facebook Feed dialog (share).
    See example at https://aesgatorshack.worldsecuresystems.com/gator-shack/ladies/ladies-aes-pep-rally-repli ca-jersey.
    When you click the "Share on Facebook" link, it doesn't use a photo.  I can specify a photo to use; however, I need the URL to the image.
    Here's the Facebook code as is:
    <a href="#" class="social_button social_blue" onclick="window.open('https://www.facebook.com/dialog/feed?link={tag_itemurl_withhost}&amp;app_id=271818569626492&amp;redirect_uri={tag_itemurl_withhost}& amp;name={tag_name}&amp;display=popup','Sharing My AES Gator Shack Finds','width=640,height=320');">Share on Facebook</a>
    I can add the picture= parameter, but I need the URL to the image.

    There is no way to get the value of the large image tag like you can for image fields in webapps. In webapps, if you created a field called "image" then you can output the whole image markup with {tag_image} or just the URL to the image with {tag_image_value}.
    This isn't possible with the large product image.  I recently had to implement a Pin It Button on an eCommerce site on BC and had to use javascript to update the link that triggers the Pin It button with the URL of the image.  Here's what I suggest.  Instead of doing the whole code in the "onclick" attribute, you should use some jQuery and some data-* attributes and set the whole link up with that instead of inline javascript on the anchor element.
    Here's a fiddle that should work for you. It requires jQuery to be loaded before you include this script on your page and requires you to update your markup to the markup shown in my example.  Should be an easy cut and paste:
    http://jsfiddle.net/thetrickster/KQmdd/

Maybe you are looking for

  • Twitter Profile Photo header bar is #F1F1F1 instead of dark gray in Firefox and Seamonkey on Win764

    Twitter Profile Photo header bar is #F1F1F1 instead of dark gray in Firefox 26 and Seamonkey 2.22 on Win764bit. Here's a picture. https://pbs.twimg.com/media/BeNSUt5CIAAZihR.png It displays correctly in Chrome and Internet Explorer. It's like this on

  • Advice please on laptop or tablet purchase

    I've never owned a laptop or tablet but it's time to purchase.  I will be using mostly for writing documents so storage is not an issue (I have a massive external hard drive anyway)  I might use to stream movies online using home wifi, but picture qu

  • How to judge the data is numric

    hi everyone, I set a parameter in the selection screen, which has type char(6), standing for year and month, YYYYMM. How to check this parameter has numric value? Any suggestion is appreciated. Julian

  • Qosmio G30: How to install Qosmio player on Win XP?

    I bought a new G30 with Vista Ultimate inside. Many applications and devices not run on Vista and I decide to do a migration to XP PRO. Windows working excellent but....... how to install Qosmioplayer on XP PRO (working TV and rest buttons ) . I have

  • A very tough question ... can someone answer?

    I need to display a portlet (or remote code, I don't care) in a plumtree top nav view. I know how to get the HTML for the portlet and have that display, but it does me no good because the c# codebehind (ASP.NET) never gets processed. All I get is the