Unable To Pass Input Page Parameter Using PageDef File.

Dear All,
I am currently exploring task flows as I dont have that much knowledge in it.
Here's my use case
1. I setup a taskflow which has a Method Call and a View Activity in it.
2. The method call is a default activity which just calls a web service.
3. After execution, I just wanted to display the result of the method.
I used input page parameters to pass data between the method call and the view activity.
     (I passed the data by accessing the pagedef file directly. I know I can do it using pageflowscope..but this is
     my self exercise so that I could understand ADF fully );)
<?xml version="1.0" encoding="windows-1252" ?>
<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
  <task-flow-definition id="ManageEmployeeTaskflow">
    <view id="viewEmployee">
      <page>/viewEmployee.jsff</page>
      <input-page-parameter>
        <from-value>#{data.com_test_ManageEmpFlow_methodPageDef.empInfoIterator.currentRow.dataProvider.name}</from-value>
        <to-value>#{data.com_test_viewEmployeePageDef.name.inputValue}</to-value>
      </input-page-parameter>
    </view>
    <method-call id="EmployeeSetup">
      <method>#{bindings.EmployeeSetup.execute}</method>
      <outcome id="__12">
        <fixed-outcome>viewEmployee</fixed-outcome>
      </outcome>
    </method-call>
    <use-page-fragments/>
  </task-flow-definition>
</adfc-config>Problem is, when I display the data. Nothing is being displayed.
<af:inputText value="#{bindings.name.inputValue}"
                  label="#{'Name'}"/>          I debug the taskflow and the <from-value> really has a value, but I am not sure why it cant be passed to next pagedef.
Any idea please?
Edited by: Marky on May 15, 2011 11:25 PM

Hi,
I've been thinking... Is this way of passing parameters not possible?
      <input-page-parameter>
        <from-value>#{data.com_test_ManageEmpFlow_methodPageDef.empInfoIterator.currentRow.dataProvider.name}</from-value>
        <to-value>#{data.com_test_viewEmployeePageDef.name.inputValue}</to-value>
      </input-page-parameter>Thanks.

Similar Messages

  • Passing inputs not possible using JRA

    I am running SP14.
    I am unable pass input values to my remotely-callable function module using JRA.  However, I can invoke a different RFM successfully and its retrieve exports--IF it doesn't require inputs.  So it seems that only passing inputs is not possible.
    I have tried passing a simple field, as well as passing a structure.  Neither way works for me.
    <u>1. Here is how I tried to pass a simple field:</u>
    MappedRecord input =
    recordFactory.createMappedRecord
    ("Z_GET_EMPLOYEE");
    input.put("USERID", userid);
    MappedRecord output = (MappedRecord) ix.execute(null, request);
    The error I recieve on this is
    <b>The RFM is invoked, but only a blank parameter is passed.</b>
    <u>2.  Here is how I tried to pass a field in a structure:</u>
    MappedRecord request =
    recordFactory.createMappedRecord
    ("Z_GET_EMPLOYEE");
    MappedRecord importstruct =
    (MappedRecord) request.get("RFCINPUT");
    importstruct.put("USERID", userid);
    MappedRecord output = (MappedRecord) ix.execute(null, request);
    The error I recieve on this is
    <b>Field RFCINPUT not a member of Z_GET_EMPLOYEE</b>
    Any thoughts would be very much appreciated.
    Kevin

    Here is another piece of the puzzle.
    I found some coding examples and tried a few more things.
    Using the same JRA technique that I have been using,<b> I can run an existing sap-delivered rfm (STFC_STRUCTURE) successfully and pass in input parameters successfully</b> using its structure (IMPORTSTRUCT)!
    However, I added IMPORTSTRUCT to my new RFM, and I get the same error as before.
    Why can't I pass in parameters to my RFM?
    Kevin

  • Set and read page parameter using a java portlet

    I created a portlet that takes a parameter. I wantt his parameter to be set by the admin in the page parameter section. The portlet that I crated has a parameter. In the providers it has the following:
    <inputParameter class="oracle.portal.provider.v2.DefaultParameterDefinition">
    <name>param</name>
    <displayName>displayParam</displayName>
    </inputParameter>
    However, when I go to the page propertie/parameter, I can "bind" a parameter. How can I do that?
    Thanks,
    Marcelo

    Marcelo,
    This was what I've given you above...
    From 7.1.3 Passing Parameters and Submitting Events jump to Section 2.12, "Public Portlet Parameters Support".
    Public portlet parameters:
    You can use a public portlet parameter to pass a value to a portlet. Using portlet parameters, the information that is displayed in a portlet can be specific to a particular page or a user. Portlet parameters are created by the portlet developer and are exposed to the page designer, through the user interface. After adding a portlet to a page, page designers can assign values to the public portlet parameters to make the information displayed in the portlet specific to the page.
    Page designers can assign values to public portlet parameters by providing a specific value (constant), a system variable (for example, the portal user name), or a page parameter. At run time, the portlet receives the values from the sources specified. In this way, page designers have complete control over the source of the parameter, whereas you have complete control over how the data is used after it is transmitted to the portlet.
    ...and in 7.1.3 Passing Parameters and Submitting Events as assumption is "You have followed through and understood Section 6.3.2, "Building PDK-Java Portlets".
    This why I've said to read it carefully... I hope this helps you further...
    Cheers,
    Pedro.

  • How to pass SQL command parameter using OpenDocument

    Hi !
    I have a dynamic List of values configured in Business View manager, used across multiple reports.
    The data source for this LOV is a SQL Command which accepts a static parameter named stringParam. I need to pass this static parameter in the URL using OpenDocument command. How can I do this?
    I tried
    http://bobjdev/businessobjects/enterprise115/InfoView/scripts/opendocument.aspx?spath=[ReportFolder]&sDocName=WebReport.rpt&stype=rpt&lsSstringParam=ABC
    but it still prompts me to select the parameter. I need to avoid this prompt.
    Any help, please.

    Hi,
    I would recommend to take a look at the documentation in order to identify the correct syntax for your URL
    [http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf]
    Regards,
    Shweta

  • Unable to read space page parameter value throug EL

    Hi All,
    I have been stuck in a big problem, I have to use dynamic page template in web center space means Different template for different pages.
    For this I added a new page parameter in page properties but I am not able to read any Page Parameter Properties through EL.
    Now my question is how can I get Page Parameter value through EL?
    I appreciate your quick response.
    Thanks :)

    you can check it out the below mentioned links-
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/taskflows_parameters.htm#CHDIAIJJ
    http://www.exampledepot.com/egs/javax.servlet.jsp.jstl.core/getparam.html
    http://blogs.oracle.com/shay/entry/passing_parameters_to_an_adf_p
    http://www.orastudy.com/oradoc/selfstu/fusion/web.1111/b31974/web_adv.htm#CACFGEBH

  • How to set a page parameter using javascript ?

    Hi:
    i'd like to set page parameter with a value taken from a textbox when clicking a button using javascript code.
    i mean, i have a textbox and a button using javascript and i want to take the value from the textbox and when onClick event happens set that value to the page parameter. How can i do this????
    Thanks.
    Best regards. Urko.

    Hi,
    Can you please elaborate your requirement. May be some better ways can be suggested. Also please mention which component you are using.
    Thanks,
    Sharmila

  • Page Element within PageDef Files for Nested Pages

    Hello all,
    I have found in the help file of the JDeveloper, information about the <page> element which can be added in a page's definition (xml file) for referencing a nested page definition, but it does not work, I do not know, perhaps I use it wrongly.
    Please any ideas or recommendations?

    Hi,
    nested bindings are not supported in 10.1.3.x. In Jdeveloper 11 the templating mechanism uses pageDef references
    Frank

  • Unable to deploy a simple servlet using WAR file on Oracle9iAS v9.0.3

    Hi All,
    I am facing problem while deploying a simple servlet using WAR file on Oracle 9i App Server.
    I have installed Oracle9iAS J2EE and Web Cache v9.0.3 on Windows 2000 server.
    It includes:
         - Oracle HTTP Server
         - Oracle9iAS Containers for J2EE
         - Oracle9iAS Web Cache
         - Oracle Enterprise Manager
    The release of installed Oracle9iAS is Release 2 (9.0.3)      
    I referred following link to Deploy Applications Using WAR file:
         http://otn.oracle.com/products/ias/daily/sept12.html
    As mentioned in this documentation I have followed following steps to deploy WAR file:
    1] I have created a war file by name SimpleServlet.war. In SimpleServlet.war, there is a servlet by name Simple which prints time at which servlet was accessed.
    2] I have modified <ora9ias_home>\j2ee\home\config\application.xml and added following web module entry:
         <web-module id="SimpleServlet" path="../../home/applications/SimpleServlet.war" />
    3] To make this module accessible from over the web, I have modified file
         <ora9ias_home>\j2ee\home\config\default-web-site.xml and added following entry:
         <web-app application="SimpleServlet" name="SimpleServlet" root="/SimpleServlet"/>
    4] I saved both the files and started Oracle HTTP Server and accessed page as below:
              http://<server>:7777/SimpleServlet/Simple
    where Simple is servlet in SimpleServlet.war file.          
    In the browser, The page cannot be found is shown to user. I have verified that SimpleServlet.war is extracted to SimpleServlet folder under <ora9ias_home>\j2ee\home\applications folder. I found that Simple.class is stored under WEB-INF/classes folder and web.xml contains correct entry for url pattern for servlet Simple.
    What else could be the problem? Am I placing the war file in wrong place or modifying application.xml or default-web-site.xml in a wrong directory?
    This is very urgent. Please help me with your valuable comments on this.
    Thanks in advance.
    Regards,
    Sandesh

    Hi All,
    I am facing problem while deploying a simple servlet
    using WAR file on Oracle 9i App Server.
    I have installed Oracle9iAS J2EE and Web Cache v9.0.3
    on Windows 2000 server.
    It includes:
         - Oracle HTTP Server
         - Oracle9iAS Containers for J2EE
         - Oracle9iAS Web Cache
         - Oracle Enterprise Manager
    The release of installed Oracle9iAS is Release 2
    (9.0.3)      
    I referred following link to Deploy Applications
    Using WAR file:
         http://otn.oracle.com/products/ias/daily/sept12.html
    As mentioned in this documentation I have followed
    following steps to deploy WAR file:
    1] I have created a war file by name
    SimpleServlet.war. In SimpleServlet.war, there is a
    servlet by name Simple which prints time at which
    servlet was accessed.
    2] I have modified
    <ora9ias_home>\j2ee\home\config\application.xml and
    added following web module entry:
    <web-module id="SimpleServlet"
    path="../../home/applications/SimpleServlet.war" />
    3] To make this module accessible from over the web,
    I have modified file
    <ora9ias_home>\j2ee\home\config\default-web-site.xml
    and added following entry:
    <web-app application="SimpleServlet"
    name="SimpleServlet" root="/SimpleServlet"/>
    4] I saved both the files and started Oracle HTTP
    Server and accessed page as below:
              http://<server>:7777/SimpleServlet/Simple
    where Simple is servlet in SimpleServlet.war file.          
    In the browser, The page cannot be found is shown to
    user. I have verified that SimpleServlet.war is
    extracted to SimpleServlet folder under
    <ora9ias_home>\j2ee\home\applications folder. I found
    that Simple.class is stored under WEB-INF/classes
    folder and web.xml contains correct entry for url
    pattern for servlet Simple.
    What else could be the problem? Am I placing the war
    file in wrong place or modifying application.xml or
    default-web-site.xml in a wrong directory?
    This is very urgent. Please help me with your
    valuable comments on this.
    Thanks in advance.
    Regards,
    SandeshHave you restarted you http server and then tried to load it again? Are you using the right port; maybe you have to use port 7778? Check you server settings in the http server instance. Also check your url binding of you application at Farm > Application Server: infrastructurehost > OC4J_instance > Application: appname > Web Module: modulename
    Good luck!
    rgds Thomas

  • Unable to deploy a simple servlet using WAR file

    Hi All,
    I am facing problem while deploying a simple servlet using WAR file on Oracle 9i App Server.
    I have installed Oracle 9i App Server. I referred following link to Deploy Applications Using WAR file:
         http://otn.oracle.com/products/ias/daily/sept12.html
    As mentioned in this documentation I have followed following steps to deploy WAR file:
    1] I have created a war file by name SimpleServlet.war. In SimpleServlet.war, there is a servlet by name Simple which prints time at which servlet was accessed.
    2] I have modified <ora9ias_home>\j2ee\home\config\application.xml and added following web module entry:
         <web-module id="SimpleServlet" path="../../home/applications/SimpleServlet.war" />
    3] To make this module accessible from over the web, I have modified file
         <ora9ias_home>\j2ee\home\config\default-web-site.xml and added following entry:
         <web-app application="SimpleServlet" name="SimpleServlet" root="/SimpleServlet"/>
    4] I saved both the files and started Oracle HTTP Server and accessed page as below:
              http://<server>:7777/SimpleServlet/Simple
    where Simple is servlet in SimpleServlet.war file.          
    In the browser, The page cannot be found is shown to user. I have verified that SimpleServlet.war is extracted to SimpleServlet folder under <ora9ias_home>\j2ee\home\applications folder. I found that Simple.class is stored under WEB-INF/classes folder and web.xml contains correct entry for url pattern for servlet Simple.
    What else could be the problem? Am I placing the war file in wrong place or modfiying application.xml or default-web-site.xml in a wrong directory?
    This is very urgent. Please help me with your valuable comments on this.
    Thanks in advance.
    Regards,
    Sandesh

    Hi Juliana,
    Thanks a lot for your suggestion.
    I am sorry if I have posted this message to a wrong forum. This is first time I am posting a message to OTN. I will resend message to J2EE forum as per you suggestion.
    Meanwhile, please note information you asked for is as below:
    I installed Oracle9iAS J2EE and Web Cache v9.0.3 on Windows 2000 server.
    It includes:
         - Oracle HTTP Server
         - Oracle9iAS Containers for J2EE
         - Oracle9iAS Web Cache
         - Oracle Enterprise Manager
    The release of installed Oracle9iAS is Release 2 (9.0.3)      
    Please do reply at the earliest.
    Once again thanks and look forward to hear from you.
    Regards,
    Sandesh

  • Problem updating pages that use .dwt file

    So i have 45 files that all use the same .dwt file.  Usually when I make a change to the template and go file > save it asks me if i want to update all pages that use that specific .dwf file.  For some reason it doesn't show the pages that do.  Although if I go to the specific page for example contact.html and do a Modify > Templates > Apply template to page, it applys the changes, and then once i make a change to the .dwt file and do the File > Save, contact.html now appears in the section of files to be updated.  I do not want to go thru every page and manually apply the template does anyone have any information that could help me out? thanks
    G8ofH8

    I do not want to go thru every page and manually apply the template does anyone have any information that could help me out?
    However, that would work.
    It sounds like your site cache has become corrupted.  Try the following -
    1.  Open DW's Site manager, select the site name, and click on EXPORT (make sure you opt to export the FULL site defintion including FTP info)
    2.  Export the site definition to a KNOWN location on your hard drive
    3.  With the site name still selected in Site manager, click REMOVE to remove that site from your list of definitions
    4.  Import the site definition you just exported - that should solve the updating problem
    Does this heal things for you?

  • Passing View accessor parameter using a bean.

    Hi i am working on LOV's I am passing parameter value as mentioned by this article Decompiling ADF Binaries: Initializing the bind variables used for an LOV query
    I tried this.. when i am testing using application module tester, it is working fine...but when running the app ,i am getting this error.
    and in middle i am getting this error.
    <ViewHandlerImpl> <_checkTimestamp> Apache Trinidad is running with time-stamp checking enabled. This should not be used in a production environment. See the org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml
    <GlobalConfiguratorImpl> <_startConfiguratorServiceRequest>
    weblogic.utils.NestedRuntimeException: Cannot parse POST parameters of request: '/Application5-ViewController-context-root/faces/untitled1.jspx'
      at weblogic.servlet.internal.ServletRequestImpl$RequestParameters.mergePostParams(ServletRequestImpl.java:2144)
      at weblogic.servlet.internal.ServletRequestImpl$RequestParameters.parseQueryParams(ServletRequestImpl.java:2024)
      at weblogic.servlet.internal.ServletRequestImpl$RequestParameters.getQueryParams(ServletRequestImpl.java:1918)
      at weblogic.servlet.internal.ServletRequestImpl$RequestParameters.getParameter(ServletRequestImpl.java:1995)
      at weblogic.servlet.internal.ServletRequestImpl$RequestParameters.access$800(ServletRequestImpl.java:1817)
      at weblogic.servlet.internal.ServletRequestImpl.getParameter(ServletRequestImpl.java:804)
      at javax.servlet.ServletRequestWrapper.getParameter(ServletRequestWrapper.java:169)
      at org.apache.myfaces.trinidadinternal.context.external.ServletRequestParameterMap.getAttribute(ServletRequestParameterMap.java:43)
      at org.apache.myfaces.trinidadinternal.context.external.ServletRequestParameterMap.getAttribute(ServletRequestParameterMap.java:31)
      at org.apache.myfaces.trinidadinternal.context.external.AbstractAttributeMap.get(AbstractAttributeMap.java:73)
      at oracle.adfinternal.controller.state.ControllerState.getRootViewPortFromRequest(ControllerState.java:788)
      at oracle.adfinternal.controller.state.AdfcContext.initialize(AdfcContext.java:185)
      at oracle.adfinternal.controller.state.AdfcContext.initialize(AdfcContext.java:79)
      at oracle.adfinternal.controller.application.AdfcConfigurator.beginRequest(AdfcConfigurator.java:53)
      at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl._startConfiguratorServiceRequest(GlobalConfiguratorImpl.java:562)
      at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.beginRequest(GlobalConfiguratorImpl.java:212)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:174)
      at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.net.ProtocolException: EOF after reading only: '0' of: '16' promised bytes, out of which at least: '0' were already buffered
      at weblogic.servlet.internal.PostInputStream.complain(PostInputStream.java:93)
      at weblogic.servlet.internal.PostInputStream.read(PostInputStream.java:179)
      at weblogic.servlet.internal.ServletInputStreamImpl.read(ServletInputStreamImpl.java:228)
      at weblogic.servlet.internal.ServletRequestImpl$RequestParameters.mergePostParams(ServletRequestImpl.java:2118)
      ... 39 more
    <UIXEditableValue> <_isBeanValidationAvailable> A Bean Validation provider is not present, therefore bean validation is disabled
    how to resolve this

    Hi,
    maybe the solution that used to initializing the bind variables in Decompiling ADF Binaries: Initializing the bind variables used for an LOV query
    can help you
    Habib

  • Rtp from Business rule to be passed as template parameter using Member Range DTP type

    This is what I am trying to do. Use a template to define a part of the code and restrict the code from running for a particular Month. I have created a member range DTP and defined default values in it to exclude the one month I do not want.
    I have set up the template in my rule as given below and basically the parameter that is to be passed is a runtime prompt (rtp_Month), which I have selected.
    %Template(name:="Test",application:="XXXX",plantype:="Plan1",dtps:=("StartMonth":=([[Period.{rtp_Month}]])))
    Now when i run this, what will happen? Will the rule just skip the template part when rtp_month is the one i have excluded in the member range?
    OR, is this not the way to do what i am intending. I see a 'restricted value' type, but not sure how to get it to work.
    Thanks in advance.

    Thanks for the reply Sree.
    This is what I am trying to do.
    FIX ({rtp_StartMonth}:Aug)
        Calculations
      ENDFIX
    FIX(Sep)
    Calculations
    ENDFIX
    Now, when rtp_Month is selected as Sep, the first block of code should not run. So the template I created has the first fix block like,
    FIX ([Startmonth]:Aug)
        Calculations
      ENDFIX
    So, final BR code:
    %Template(name:="Test",application:="XXXX",plantype:="Plan1",dtps:=("StartMonth":=([[Period.{rtp_Month}]])))
    FIX(Sep)
    Calculations
    ENDFIX
    I am assuming: if i use the range DTP type and exclude 'sep' while defining the default values, the rule would bypass the template and run my second block of code.
    Is this assumption wrong?

  • Unable to display Popup page while using JSF Tiles

    Hi All,
    I am using JSF Tiles. In the body page i am trying to open a pop up page through java script. bt i got the 500 internal server error. The popup open properly when there is no html or core jsf tags. can anyone help me abt this problem.
    Thanks.

    For future JSP/Servlet related questions please use the JSP/JSTL forum or the Servlet forum. There are more experts.
    As to your problem: did you read a basic JSP/Servlet book/tutorial? Did you read the [Tomcat documentation|http://tomcat.apache.org/tomcat-6.0-doc/index.html]? Your problem more sounds like you missed something trivial.

  • How can i pass input date parameter in where condition in exec_sql.parse

    EXEC_SQL.PARSE(source_connid, source_cursor,'SELECT substr(empid,3,6) ,
    attdate ,
    to_char(intime1,''HH24MI'') ,
    nvl(to_char(outtime2,''HH24MI''),nvl(to_char(intime2,''hh24mi''),nvl(to_char(outtime1,''hh24mi''),null))) ,
    ''G'' ,
    null ,
    null ,
    55
    FROM ' || source_table||'
    WHERE attdate = '||:control_main.input_dt);
    when i gave this input_dt the output is zero.
    without this where condition i am getting records.
    its urgent,please help me in this.
    Edited by: saru on Jan 12, 2009 2:06 AM
    Edited by: saru on Jan 12, 2009 2:53 AM

    I guess you have a problem with your formats...
    try this:
    [...]WHERE attdate = to_date('''||to_char(:control_main.input_dt,'dd.mm.yyyy')||''', ''dd.mm.yyyy'')[...]regards

  • Need help pass in date parameter into bat file.

    Is it possible to schedule sql job to execute bat files and pass in date below.
    I want to take a system date and pass into the bat file below.  A Schedule Job will run on Monday at 9 P.M.
    I want to automate this process instead manually enter into the bat file.  Is that possible?
    Any suggestions is appreciate.  SQL 2012
    Thank you so much in advance.
    SQL Schedule job
    DECLARE @sMonday VARCHAR(25) = REPLACE(CONVERT(VARCHAR(10), GETDATE(), 1), '/', '')
    SET @sMonday = @sMonday + '_qa48_Clonedb'
    SELECT @sMonday
    --021315_qa48_Clonedb
    DECLARE @sPrevMonday VARCHAR(25) = CAST(REPLACE(CONVERT(CHAR(10), DATEADD(DAY, - (DATEPART(dw, GETDATE() ) - 1), GETDATE() ),1), '/', '') AS CHAR(6))
    SET @sPrevMonday= @sPrevMonday + '_qa48_Clonedb'
    SELECT @sPrevMonday
    --020815_qa48_Clonedb
    Result want:
    -- Testbatfile.bat
    REM 021615_qa48_Clonedb
    SET sToday = @sMonday        
    SET sPreviousWeek = @sPrevMonday
    SET sNumOfDay=07
    DiskMirror -l snapsrvcfdba n4brec01a -i privkey.ppk "snap rename sql32oltp_repl_dataf sqlsnap__brpRMSDVS050a__recent %sToday% "
    DiskMirror -l snapsrvcfdba n4brec01a -i privkey.ppk "snap rename sql32oltp_repl_logf  sqlsnap__brpRMSDVS050a__recent %sToday% "
    DiskMirror -l snapsrvcfdba l9ABC01d -i privkey.ppk "snap rename sql100oltp_repl_dataf %sPreviousWeek% sqlsnap__ABCPWSCVR050a__%sNumOfDay% "

    See
    https://sharminjahan625.wordpress.com/2013/08/30/384/
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

Maybe you are looking for

  • File sender adapter settings & required datatype...

    Hi guys, could you please tell me (or send a link), how to define datatype structure for comma separated text file, which I need to process by File Sender Adapter? For example, now I try to preocess file with following structure: item11;item21 item21

  • AP 1140 conifguration for a survey

    Hi, I am all new to this. I have a stand alone 1140 AP and i am trying to perform a site survey using the AP; However I dont know what configs need to be on the AP for the survey ? can you help me please?

  • Editing clips = changed timeline?

    Hello all! I am new to Premier Elements (11), so please excuse the newbie question. I'll appreciate whatever help you can give! I'm in the process of editing a short commercial that has many clips with several layers. When I edit a clip to make it lo

  • Files won't open. It was working before so I don't know what I have done.

    photoshop does let me select a file but then it just doesn't open it. I'm not sure what I might have changed to make this happen. Has this happened to anyone else, any ideas on what i could do to fix this? Thanks, Hira

  • Partition arrangement and schemes on new iMac

    Ok, my last Apple product was the IIe, but I have found my way back home thanks to a new (May, 2008) iMac. It was my birthday so I splurged on the 1TB drive, and got VM Fusion just in case I can't convince my wife to go cold turkey. I have all this s