5 Replies Latest reply: Jun 26, 2013 5:48 PM by Guddu1223 RSS

    How Can i Get the URL Argument Value in fatware ?

    user8416017

      Hi All,

       

      Since I am new to Oracle webcenter Site. I am posting this question over here. I have URL like below

       

      http://localhost:8180/cs/Satellite?c=Page&childpagename=342983%2FPage%2FHinduNews&cid=1336168729191&packedargs=dfhd&assetID=1336168728736

       

       

      I want to render and get the value of Cid and AssetID in my Page. How can i get this ? Is there any way we can take like we have in PHP $_REQUEST['CID'] ? Of if any other way to get the URL value Please help me to solve this issue..

       

      Thanks,

      Balaji K

        • 1. Re: How Can i Get the URL Argument Value in fatware ?
          67809bcd-96d9-4818-8a91-4f30a1cdda28

          Hi Balaji,

           

          use <%=ics.GetVar("cid") %> inside the template/element

          • 2. Re: How Can i Get the URL Argument Value in fatware ?
            user8416017

            Thank you.. I have tried with the same. Buts return as null.. for both cid and assetId.. what could be the issue ?

            • 3. Re: How Can i Get the URL Argument Value in fatware ?
              67809bcd-96d9-4818-8a91-4f30a1cdda28

              request.getParameter("assetID") try this. Could you please copy the elements here?

              • 4. Re: How Can i Get the URL Argument Value in fatware ?
                user8416017

                thanks

                 

                This is the code for generating the URL

                <ics:listget fieldname="id" listname="ContentList" output="theID"/>

                <render:gettemplateurl
                                                    outstr="aUrl"
                                                    c="Page"
                                                    cid="1336168729191"
                                                    tname="/Page/HinduNews"
                                                    wrapperpage="HinduSE" >
                                                <render:argument name="assetID" value='<%=ics.GetVar("theID")%>'/>
                </render:gettemplateurl>

                <a href='<%=ics.GetVar("aUrl")%>'><img src='<%= ics.GetVar("ProPicLink") %>' width="70" height="70"/></a>

                 

                 

                We are trying to get the assetID value which we are passing in aURL, but it is returning NULL for both ics.GetVar() and request.getParameter()

                 

                ====><%=request.getParameter("assetID")%>
                <assetset:setasset name="breakingnews" type="TheHindu_C" id=' <%=request.getParameter("assetID")%>'/>
                <assetset:getattributevalues name="breakingnews" attribute="Image" listvarname="ImageList" typename="TheHindu_A" />
                <ics:listloop listname="ImageList">
                                            <ics:listget fieldname="value" listname="ImageList" output="prostring"/>
                                            <blobservice:getidcolumn varname="Imageid"/>
                                            <blobservice:gettablename varname="ImageTableName"/>
                                            <blobservice:geturlcolumn varname="ImageURLName"/>
                                            <render:getbloburl
                                                outstr="ProPicLink"
                                                blobwhere='<%=ics.GetVar("prostring") %>'
                                                blobtable='<%=ics.GetVar("ImageTableName") %>'
                                                blobcol='<%=ics.GetVar("ImageURLName") %>'
                                                blobkey='<%=ics.GetVar("Imageid") %>'>
                                            </render:getbloburl>
                </ics:listloop>

                • 5. Re: How Can i Get the URL Argument Value in fatware ?
                  Guddu1223

                  Hi,

                   

                  Add "assetID" variable in cache criteria of the called template.