Programatically passing values to a content selector

HI,
Currently Iam manually providing values to a property while creating a content selector from BEA Workshop.
Please let me know whether it is possible to programmatically pass values to a property while creating a content selector from BEA Workshop.
Thanks and Regards
Karthik Dhanaraj
email : [email protected]

Hi
have you looked at pz:contentSelector tag , the query and appendQuery attribute?
query
Optional (String) - A content query string used to search for content. This query overrides any query that was defined for the Content Selector in the Content Selector designer.
Example:
query="cm_contentType contains 'text' && author='Salinger'".
appendQuery
Optional (String) - A content query string to append to the resulting content query from the rule. If the content selector rule conditions do not match, this value will be ignored. If this value starts || (two vertical bars), it will be logically OR'ed with the content query. If it starts with && (two ampersands), it will be logically AND'ed with the content query. If it doesn't start with || or &&, it will be logically AND'ed with the content query
You can also programmatically achieve what this tag does
regards
deepak

Similar Messages

  • Programatically passing value from one UIComponent to Another

    Hi, I'm using JDeveloper 11.1.1.6.
    I have an input-date field which is tied to a bean, and a input-text field that was generated from the DataControl i.e. tied to the iterator.
    Requirement: When user enters a date by date-picker, in the "ChangeValueListener", copy over the String conversion of that date to the input-text field.
    String value must be saved to the database. And the value must reflect the date picked via date-picker in input date component.
    Results: In each case that I have tried, the String gets set, and I can see it change/set in the UI, and also via debug BUT on SAVE, the string value is not saved to the database.
    Problem: The String input-text is being saved on screen, but on Submit it is not being saved to the Database.
    When I modify the String input-text by typing (not programatically), and click Save, it will save to the DB. But when I do programatically it does not save to the DB, only on screen.
    Scanrios tried:_
    *(1)* DC Binding:
    DCBindingContainer dcBindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iterBind= (DCIteratorBinding)dcBindings.get("Organization_OperationsIterator");
    String attribute = (String)iterBind.getCurrentRow().getAttribute("oop_certified_date"); // for retrieval
    iterBind.getCurrentRow().setAttribute("oop_certified_date", df.format(inputDate)); // for set value
    *(2)* ADF Binding, where the String input-Text field bound as certDateText RichInputText Field in the Bean
    this.getCertDateText().setValue(df.format((Date)valueChangeEvent.getNewValue())); // for set
    String certDate2 = (String) this.certDateText.getValue(); // for get
    *(3)* Attribute Binding
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    AttributeBinding dateBinding = (AttributeBinding)bindings.getControlBinding("oop_certified_date");
    dateBinding.setInputValue(attribute2); // set new value
    *(4)* Direct setting/getting to the bind Attribute
    String expression1 = (String) resolveExpression("#{bindings.oop_certified_date.inputValue}");
    setExpressionValue("#{bindings.oop_certified_date.inputValue}", attribute2);
    String expression2 = (String) resolveExpression("#{bindings.oop_certified_date.inputValue}");
    Also tried some additives such as:_
    (a) ValueChangeEvent vce = new ValueChangeEvent(this.getCertDateText(), attribute, attribute2);
    (b) valueChangeEvent.getComponent().processUpdates(facesContext);
    (c) AdfFacesContext.getCurrentInstance().addPartialTarget(this.getCertDateText());
    BUT TO NO AVAIL.
    In all the cases I tried above (1,2,3,4), the String input-text value gets set in the UI, and also when I do retrieval/gets I see that it is set.
    Yet when I click submit, the old value persists, not the new one that was programatically set!
    And remember, if I type directly in the String input-text (not setting programatically), then the new TYPED value is submitted!
    Please Help! I have fought with this for 2 days and run out of options.

    The below worked. I still has not yet hashed out which lines are redundant (I'm sure at least some are), but the combination below works.
    this.getCertDateText().setSubmittedValue(null);
    this.getCertDateText().resetValue();
    this.getCertDateText().setSubmittedValue(df.format((Date)valueChangeEvent.getNewValue()));
    this.getCertDateText().setValue(df.format((Date)valueChangeEvent.getNewValue()));
    AdfFacesContext.getCurrentInstance().addPartialTarget(this.getCertDateText());
    ValueChangeEvent vce = new ValueChangeEvent(this.getCertDateText(), attribute, attribute2);
    vce.queue();
    FacesContext fc = FacesContext.getCurrentInstance();
    valueChangeEvent.getComponent().processUpdates(fc);
    I also have to figure out why. But at least the problem is now solved.

  • How get link value of content selector

    Hi everybody
    I have a content selector and I display the content like this:
    <pz:contentSelector rule="selecContenido" id="nodes"/>
    <utility:notNull item="${nodes}">
    <ul>
    <utility:forEachInArray array="${nodes}" id="node" type="com.bea.content.Node">
    <li><cm:getProperty id="node" name="title"/></li>
    <li><cm:getProperty id="node" name="cellphone"/></li>
    </utility:forEachInArray>
    </ul>
    </utility:notNull>
    the "cellphone" property is a link to another content, then when I see the result of JSP, I get something like that:
    *this is the title
    */BEA Repository/6005
    How can I get the values of "cellphone" content?
    THANKS

    Sorry Ryan, I'm not very sure if I understand well, but I don't know how can I get the id and use it to get link content values.
    <utility:forEachInArray array="${nodes}" id="node" type="com.bea.content.Node">
    <cm:getProperty id="node" name="title"/>
    HERE IS THE PROBLEM ( I need use <cm:getProperty id="node" name="cellphone"/>)
    <utility:forEachInArray array="${nodes}" id="node" type="com.bea.content.Node">
    <cm:getProperty id="node" name="cellphone_name"/>
    </utility:forEachInArray>
    </utility:forEachInArray>
    thanks

  • I need to pass value for Actual GI date field in VL01N t code, I am using BAPI_DELIVERYPROCESSING_EXEC. can any one tell me how can i pass vaule ?

    I need to pass value for Actual GI date field in VL01N t code, I am using BAPI_DELIVERYPROCESSING_EXEC. can any one tell me how can i pass vaule ?

    Hi Abdul,
    Sorry for my unprecise answer, but you talk about a tcode, but you're using a BAPI Call. Maybe you want to call the transaction in batch mode?
    http://help.sap.com/saphelp_erp60_sp/helpdata/de/fa/09715a543b11d1898e0000e8322d00/content.htm
    Regards,
    Franz

  • How to pass values of the prompt through Action Link - URL in 11g

    Hi All,
    I am in OBIEE 11g v6.
    Let's say, I have two dashbaord pages P1 and P2.
    P1 page contains
    1. Prompt PR1 - containing a single column EmpName
    2. Report R1
    P2 page contains
    1. Prompt PR2 - containing a single column EmpName (same column as in PR1)
    2. Report R2
    Requirement :
    Let's say a user select a value = David from the EmpName column in prompt PR1. In the Report R1, on one the measure columns 'Sales', I am using an action link - Navigate to URL ( I can't use Navigate to BI Content for some reasons). In the URL, I am giving the URL to page P2. Can I pass the selected value (which is David) to the EmpName column of the Prompt PR2 of Page P2 so that Report R2 is automatically limited by David when I land on that page through the URL?
    Few things to consider are, I can't use EmpName column in my report R1 on page P1, I just want to pass the value of a common column from one prompt on Page1 to another prompt on Page2. Is that possible. Can anybody please help?
    Thanks,
    Ronny

    Hmm can you give a try one more time with
    Add EmpName name and hide it on report R1 on page P1
    and set EmpName as Is Prompted on report R2 on page P2 and with my earlier steps should work.
    Other option is read this doc once that helps you how to pass value thru url.
    http://docs.oracle.com/cd/E21043_01/bi.1111/e16364/apiwebintegrate.htm#z1005224
    You need to have a EmpName as Is Prompted on report R2 on page P2
    If helps pls mark

  • In portlets, how to use a html form passing  values to the another page?

    it is well known that in web developing , we have two methods to pass values to another page.<!--
    1. passing values
    2.<form action="nextPage" method ="post"></form>-->
    but how to use two methods in oracle portal portlets?
    I have got a simple example which submit two values to the page for itself, means a page has a form with submit botton, user input the form with values and then submit them by submit botton, then the page recevice those values and show it .
    this example is powered by oracle ,
    please have a look at these code:
    <br><br>
    <%@ page contentType="text/html;charset=UTF-8" %>
    <%@page import="java.util.*, oracle.portal.provider.v2.*" %>
    <%@page import="oracle.portal.provider.v2.http.HttpCommonConstants" %>
    <%@page import="oracle.portal.provider.v2.render.PortletRendererUtil" %>
    <%@page import="oracle.portal.provider.v2.render.PortletRenderRequest" %>
    <%@page import="oracle.portal.provider.v2.render.http.HttpPortletRendererUtil" %>
    <%@page import="oracle.portal.provider.v2.url.UrlUtils" %>
    <%
    // The form submit URL refers to the current Portal page. All portlets
    // on this page share this URL. This means that the per portlet parameters
    // are in the same request. Portlets must ensure that its paramerters don't
    // collide either with other portlets or other instances of itself. This
    // is generally accomplished by using "fully-qualified" parameter names. A
    // fully-qualified parameter name prepends the (unique) portlet reference to
    // the parameter. The JPDK provides a utility to accomplish this.
    String portletParamName = "mName";
    String portletParamAge = "mAge";
    String portletParamSubmit = "mSubmit";
    String fName = HttpPortletRendererUtil.portletParameter(request, portletParamName);
    String fAge = HttpPortletRendererUtil.portletParameter(request, portletParamAge);
    String fSubmit = HttpPortletRendererUtil.portletParameter(request, portletParamSubmit);
    // These are the session attribute names used to store the current values.
    // Because all instances of this portlet share the same user session we must
    // also fully-qualify these names to avoid collisions.
    String sName = HttpPortletRendererUtil.portletParameter(request, "sName");
    String sAge = HttpPortletRendererUtil.portletParameter(request, "sAge");
    PortletRenderRequest pRequest = (PortletRenderRequest)
    request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    String formName = UrlUtils.htmlFormName(pRequest,null);
    ProviderUser user = pRequest.getUser();
    ProviderSession providerSession = user.getSession();
    if (providerSession == null)
    %>
    Your provider session has been terminated or has timed out
    and you need to logout and then login to re-establish the session.
    <%
    else
    // Record, in session storage, the last values submitted.
    if (pRequest.getQualifiedParameter(portletParamSubmit) != null)
    providerSession.setAttribute(sName, pRequest.getQualifiedParameter(portletParamName));
    providerSession.setAttribute(sAge, pRequest.getQualifiedParameter(portletParamAge));
    %>
    <!-- Output the HTML content -->
    <center>
    <table width="70%">
    <tr>
    <td>
    <b>This portlet shows how to post and process information from HTML forms.</b>
    </td>
    </tr>
    </table>
    <form name="<%= formName %>" method="POST"
    action="<%= UrlUtils.htmlFormActionLink(pRequest,UrlUtils.PAGE_LINK) %>">
    <%= UrlUtils.htmlFormHiddenFields(pRequest,UrlUtils.PAGE_LINK, formName) %>
    <table>
    <tr>
    <td>
    <b>Name :</b>
    </td>
    <td>
    <input type="text" size="20" name="<%= fName %>" value="">
    </td>
    </tr>
    <tr>
    <td>
    <b>Age : </b>
    </td>
    <td>
    <input type="text" size="3" name="<%= fAge %>" value="">
    </td>
    </tr>
    </table>
    <br>
    <INPUT TYPE=submit name="<%= fSubmit %>" Value="Submit">
    </form>
    <%
    if ((providerSession.getAttribute(sName) == null)&& (providerSession.getAttribute(sAge) == null)) {
    %>
    <b>No values have been submitted yet.</b>
    <%
    } else {
    %>
    <b> Last submitted values:</b><br>
    <table>
    <tr>
    <td>
    <b>Name: </b>
    </td>
    <td>
    <b><%= providerSession.getAttribute(sName) %></b>
    </td>
    </tr>
    <tr>
    <td>
    <b>Age: </b>
    </td>
    <td>
    <b><%= providerSession.getAttribute(sAge) %></b>
    </td>
    </tr>
    </table>
    <%
    %>
    </center>
    <%
    %>
    <br><br>
    <br><br>
    <br><br>
    but I want to write the form in a page , and then show it on another page , how to write it ?
    I have read the pdk:
    oracle.portal.provider.v2.url Classes
    UrlUtils
    then I use these method , as this :
    //frist page:
    <br><br><br><br>
    <%@page contentType="text/html; charset=Big5"
    import="oracle.portal.provider.v2.render.PortletRenderRequest"
    import="oracle.portal.provider.v2.http.HttpCommonConstants"
    %>
    <%@ page import="oracle.portal.provider.v2.*"%>
    <%@ page import="oracle.portal.provider.v2.render.PortletRendererUtil"%>
    <%@ page import="oracle.portal.provider.v2.render.http.HttpPortletRendererUtil"%>
    <%@ page import="oracle.portal.provider.v2.url.UrlUtils"%>
    <%
    PortletRenderRequest pReq = (PortletRenderRequest)
    request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    %>
    <P>Hello <%= pReq.getUser().getName() %>.</P>
    <P>This is the <b><i>Show</i></b> render mode!</P>
    this is a program to test the passing value
    <%
    String portletParamName = "mName";
    String portletParamAge = "mAge";
    String portletParamSubmit = "mSubmit";
    String fName = HttpPortletRendererUtil.portletParameter(request, portletParamName);
    String fAge = HttpPortletRendererUtil.portletParameter(request, portletParamAge);
    String fSubmit = HttpPortletRendererUtil.portletParameter(request, portletParamSubmit);
    PortletRenderRequest pr=(PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    String formName=UrlUtils.htmlFormName(pr, null);
    %>
    <form name="<%=formName%>" method="post" action="<%=UrlUtils.htmlFormActionLink("/htdocs/passingvalues4/getValues.jsp")%>">
    <%= UrlUtils.htmlFormHiddenFields("/htdocs/passingvalues4/getValues.jsp") %>
    name:<input type="text" size="20" name="<%= fName %>" value="">
    p w :<input type="text" size="3" name="<%= fAge %>" value="">
    <INPUT TYPE=submit name="<%= fSubmit %>" Value="Submit">
    </form>
    //getValues.jsp<br><br>
    <br><br>
    <%@page contentType="text/html; charset=Big5"
    import="oracle.portal.provider.v2.render.PortletRenderRequest"
    import="oracle.portal.provider.v2.http.HttpCommonConstants"
    %>
    <%@ page import="oracle.portal.provider.v2.*"%>
    <%@ page import="oracle.portal.provider.v2.render.PortletRendererUtil"%>
    <%@ page import="oracle.portal.provider.v2.render.http.HttpPortletRendererUtil"%>
    <%@ page import="oracle.portal.provider.v2.url.UrlUtils"%>
    <% String portletParamName = "mName";
    String portletParamAge = "mAge";
    String portletParamSubmit = "mSubmit";
    String fName = HttpPortletRendererUtil.portletParameter(request, portletParamName);
    String fAge = HttpPortletRendererUtil.portletParameter(request, portletParamAge);
    String fSubmit = HttpPortletRendererUtil.portletParameter(request, portletParamSubmit);%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=Big5">
    <title>untitled</title>
    </head>
    <body>
    Name:<%=fName%>
    Age :<%=fAge%>
    </body>
    </html>
    <br>then I deployed them on the portal , run it , the result is :after I submit it , the browser give me : http 404 page not found!
    [b]here is the provider.xml<br>[b[i]]<?xml version = '1.0' encoding = 'UTF-8'?>
    <?providerDefinition version="3.1"?>
    <provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
    <session>true</session>
    <passAllUrlParams>true</passAllUrlParams>
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>1</id>
    <name>PassingValues4</name>
    <title>PassingValues4</title>
    <description>PassingValues4</description>
    <timeout>60</timeout>
    <showEditToPublic>false</showEditToPublic>
    <hasAbout>false</hasAbout>
    <showEdit>false</showEdit>
    <hasHelp>false</hasHelp>
    <showEditDefault>false</showEditDefault>
    <showDetails>false</showDetails>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <renderContainer>true</renderContainer>
    <renderCustomize>true</renderCustomize>
    <autoRedirect>true</autoRedirect>
    <contentType>text/html</contentType>
    <showPage>/htdocs/passingvalues4/PassingValues4InputPage.jsp</showPage>
    <showPage>/htdocs/passingvalues4/getValues.jsp</showPage>
    </renderer>
    </portlet>
    </provider>
    <br><br><br>
    <br><br>
    would you kind enough to help me ? thanks!!!
    Message was edited by:
    moonsoft

    Hi Moonsoft,
    I have already answered this query in the other post at Re: how to link more than one links in portlet?(jsp develop)
    <form name = "showPageForm" method = "POST" action = "<%= UrlUtils.htmlFormActionLink(pReq,UrlUtils.PAGE_LINK) %>">
      <%= UrlUtils.htmlFormHiddenFields(pReq,UrlUtils.PAGE_LINK, "showPageForm") %>
      <input type="text" name="param1">
      <input type="text" name="param2">
      <input type="hidden" name="myPPN" value="/htdocs/page2.jsp">
    </form>then in your jsp code on page2.jsp, you will extract the parameters by specifying
    <%
      String p1 = request.getParameter("param1");
      String p2 = request.getParameter("param2");
    %>
    >>this is easy common jsp or asp development, but in oracle is too diffcult!!!!
    :-) .. there is a difference between web-applications and portlets, you just need to get used to it once. I hope this does clarify your doubts.
    thanks,
    Harsha

  • Passing values to sub-forms  (Varaible scoping)

    I have a "parent" form that calls one of 6 subforms. I'm trying to figure out how to pass values derived in the parent to a sub form.
    I am running IdM 8.1.0.9 in glassfish 2.1.1. I set up these test forms to work through this:
    my Parent Form:
    <Form name='parent' objectLocationID='objectType=UserForm&objectName=parent&objectPath=0&isBegin=true'>
      <Display class='EditForm'/>
        <Include>
          <ObjectRef id='#ID#UserForm:child1' type='UserForm' name='child1'/>
        </Include>
        <!-- This value needed in child 1 form -->
        <defvar name='myvalue'>
          <s>test123</s>
        </defvar>
        <Field name='myfield'>
          <Expansion>
            <ref>myvalue</ref>
          </Expansion>
        </Field>
    <!--  My attempt at using <Variable>, IdM doesn't like this
        <Variable name='myextvar' external='true'>
          <ref>myvalue</ref>
        </Variable>
    -->
        <FormRef name='child1'/>
    </Form>
    my Child1 Form:
            <Form name='child1' objectLocationID='objectType=UserForm&objectName=child1&objectPath=0&isBegin=true'>
                <Display class='EditForm'/>
    <!--
               <Include>
                    <ObjectRef type='UserForm' id='#ID#UserForm:parent' name='parent'/>
                </Include>
    -->
                <Field name='subtext'>
                    <Display class='Text'>
                        <Property name='title'>
                            <concat>
                              <s>pre1:</s>
    <!--  
                               <FieldRef objectLocationID='objectType=UserForm&objectName=marty&objectPath=0&isBegin=true' name='myvalue'/>
    -->
                               <ref>myvalue</ref>
                              <s>:1post</s>
                            </concat>
                        </Property>
                    </Display>
                </Field>
            </Form>I was hoping that child forms would share the scope of the parent, and I could just use a <ref> tag in the child form, but that doesn't seem to work. So I started looking at FieldRef/FormRef but I'm not sure they are the right answer either.
    When the include in the child form is uncommented, I get :
    An unrecoverable error has occurred processing the request. Contact your system administrator.
    Syslog ID = LG-0405-115539.
    I'm guessing that this is because I include a form that includes this form, and created an endless include loop?
    When the FieldRef is uncommented, I get this error:
    Attruibute "objectLocationID" must be declared for element type "FieldRef".
    The <Variable> tag (defined as external) looks promising, but I haven't run across a good example of how to use it.
    When I try to add a <Variable> to my parent form, I get the error: Content of element type "Form" must match...
    This doc: http://docs.sun.com/app/docs/doc/820-5821/bvaex?a=view
    says that <Variable> is a valid form element, but IdM disagrees.
    Any suggestions on how to achieve the passing of values from one for to another would be greatly appreciated.
    -mk
    Edited by: mk152556 on Apr 5, 2010 6:27 AM

    An advice I usually follow: Skip defvars and variables, and stick to fields, hidden, not using any Display class that is, if you just need to use the field as an variable. Field are a lot more practical IMHO.

  • Passing value from JSP to JSPDynPage onclick of link

    Hi,
    I have extracted a value in the JSP page and i want to send this value back to the JSPDynPage on click of a link(the link is dependent on the value).
    How can i do that?

    hi Sujoy,
    you can pass values by using beans and display the passed data in a new jsp page.
    firstly create a jsp page,that accepts user data,say for example i am placing a text box and a button,
    next,create a jspdyn page---
    private final static int INITIAL_STATE = 0;
        private final static int FINAL_STATE = 1;
        private int state = INITIAL_STATE;
        private final static String BEAN_KEY="nameBean";
        public void doInitialization(){
          IPortalComponentRequest request=(IPortalComponentRequest) this.getRequest();
          IPortalComponentContext ctxt=request.getComponentContext();
          displayNameBean mybean = new displayNameBean();
          ctxt.putValue(BEAN_KEY,mybean);
    public void doProcessAfterInput() throws PageException {
             InputField myInputField = (InputField) getComponentByName("user_name");
    if (myInputField != null) {
    IPortalComponentRequest request=(IPortalComponentRequest) this.getRequest();
    IPortalComponentContext ctxt = request.getComponentContext();
                 displayNameBean mybean1=(displayNameBean)ctxt.getValue(BEAN_KEY);
                   mybean1.setName(myInputField.getValueAsDataType().toString());
        public void doProcessBeforeOutput() throws PageException {
          switch (state){
               case INITIAL_STATE:
               this.setJspName("loginPage.jsp");
               break;
               case FINAL_STATE:
               this.setJspName("successloginPage.jsp");
               break;
        public void onButtonClick(Event event) throws PageException {
             state=FINAL_STATE;       
    finally display this value in a new jsp page as follows--
    <jsp:useBean id="nameBean" scope="application" class="NewProject.bean.displayNameBean" />
    <%@ taglib uri= "tagLib" prefix= "hbj"%>
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId" >
    <hbj:textView
         id="welcome_note"
         design="HEADER2">
         <% 
         welcome_note.setText
         (nameBean.getName());
         %>
    as simple as that!!
    regards
    SwarnaDeepika
    P.S:Please reward points for helpful answers.

  • Can we Pass value from PDK to Webdynpro

    Hi ,
    Can we pass the values from PDK to webdynpro screen.I have created a screen in PDK , i want to send the control to the webdynpro application on some action.
    whether is it possible ? if yes tel me how to go about that .
    Rakesh

    Hi Rakesh ,
    We can pass value the concept of following comes into picture :-
    · dataObject
    This parameter contains the transported parameter of the portal event.
    · Namespace
    This parameter contains the name space of the received portal event.
    · Name
    This parameter contains the name of the received portal event.
    Refer to this for more details  :-
    http://help.sap.com/saphelp_erp2005/helpdata/en/5d/08f43cf1da7646a2b210a16321c669/content.htm
    Thanks & Regards
    Pankaj

  • Can we pass value of variable in Authorware5.2 to Flash 5

    Hi,
    I want to pass value of one variable which is in the
    Authorware5.2 to Flash 5. Depending on that value i want to
    duplicate the Movie clip.
    Is it possible and How?
    Thanks in advance.

    I urge you to look at the documentation for the Flash sprite
    as it will
    answer your question. #property can be a range of values.
    Place a Flash sprite, get its properties, click the Options
    button,
    click Help...
    Erik
    Jeevan_N_Salunke wrote:
    > Hi,
    > Using SetSpriteProperty(@"SpriteIconTitle", #property,
    value) we can changes
    > the properties of Sprite, but I want to pass one value
    to Flash 5 i.e. Sprite
    > and depending on that value I want to do some
    processing.
    >
    > For Example.
    > Suppose Flash file contain Dynamic text box who's
    variable name is "my_txt"
    > and when i load the Sprite Icon or by clicking on button
    displays the Sprite,
    > at that time i want to pass some txt to that (my_txt)
    variable.
    >
    > Please suggest me the solution.
    >
    >
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - Authorware
    http://www.macromedia.com/support/forums/team_macromedia/
    http://www.awaretips.net -
    samples, tips, products, faqs, and links!
    *Search the A'ware newsgroup archives*
    http://groups.google.com/groups?q=macromedia.authorware
    *The Blankenship Caveat: Note that direct linking to http
    content
    through any Authorware icon will likely fail if a proxy
    server is present!*

  • How to pass value to select-option parameter using SET PARAMETER Command

    Hi,
        Am passing values to selection-screen fields in report RV13A004 ( used in VK11, VK12 and VK13). using below statement but material number is select-option in this report. am able to pass  MATERIAL FROM using SET PARAMETER ID, can i know how to pass values MATERIAL TO range in select-options fields using SET PARAMETER Command ??
    Passing values to parameter id
    set parameter id 'VKS' field kschl.
    set parameter id 'VKO' field vkorg.
    set parameter id 'VTW' field vtweg.
    set parameter id 'KDA' field erdat.
    set parameter id 'MAT' field matnr_from.
    Change condition price.
    call transaction 'VK12' and skip first screen.
    Thanks in advance.
    Regards,
    Balamurugan.

    Hi,
    instead of using set parameters and dden call transaction use this..........
    submit RV13A004  WITH SELECTION-TABLE rspar
    Effect
    If you specify this addition, parameters and selection criteria on the selection screen are supplied from an internal table rspar. You must specify an internal table with the row type RSPARAMS for rspar. The structured data type RSPARAMS is defined in the ABAP Dictionary and has the following components, all of which are data type CHAR:
    SELNAME (length 8),
    KIND (length 1),
    SIGN (length 1),
    OPTION (length 2),
    LOW (length 45),
    HIGH (length 45).
    To supply parameters and selection criteria for the selection screen with specific values, the lines in the internal table rspar must contain the following values:
    SELNAME must contain the name of a parameter or selection criterion for the selection screen in block capitals
    KIND must contain the type of selection screen component (P for parameters, S for selection criteria)
    SIGN, OPTION, LOW, and HIGH must contain the values specified for the selection table columns that have the same names as the selection criteria; in the case of parameters, the value must be specified in LOW and all other components are ignored.
    If the name of a selection criterion is repeated in rspar, this defines a selection table containing several lines and passes it on to the selection criterion. If parameter names occur several times, the last value is passed on to the parameter.
    The contents of the parameters or selection tables for the current program can be entered in the table by the function module RS_REFRESH_FROM_SELECTOPTIONS.
    Notes
    In contrast to selection tables, the data types of the components LOW and HIGH in table rspar are always of type CHAR and are converted to the type of the parameter or selection criterion during transfer, if necessary.
    When entering values, you must ensure that these are entered in the internal format of the ABAP values, and not in the output format of the screen display.
    Cheers
    Will.

  • Passing values to a ProgrammaticSkin

    I it possible to pass values to a programmatic skin?
    I want to customise the apperance of a button based upon a value, for example in the code below (used to create a custom button) I would like the id value to influence how the skin is drawn.
        public function CustomButton(idIn:String)
                super();
                width=64;
                height=128;
                id=idIn;
                setStyle("upSkin",CustomButtonSkin);
                    setStyle("overSkin", CustomButtonSkin);
                    setStyle("downSkin",CustomButtonSkin);
    thanks ben

    Ben,
    I'd recommend you use styles to pass information to your skin. Any styles set on your CustomButton will be passed down to the CustomButtonSkin.
    Also, I'd recommend using a style Type selector instead of using setStyle to set the button skins.
    <mx:Style>
    CustomButton
       skin : ClassReference("CustomButtonSkin");
    </mx:Style>
    Jason

  • Servlet passing values to JSP and ClasscastException

    I am using weblogic 5.1 to run my Servlets.
              I want to know when I forward from a servlet to a JSP how do I pass
              values especially Java Objects (Sometimes Objects of User written Java
              classes).
              Uptil now I have been putting all values in the session from where the
              JSP picks them up, but somehow I have a feeling that this is not the
              right way.
              In a code I am putting a Java Object (It contains two attributes of
              Java.util.Vector type) in the session so that the JSP to which I am
              forwarding it to can use it I have put my class in the ServletClasses.
              Intertestingly it runs well till the contents of the Vector are changed.
              As the contents of the vector are changed, it throws ClassCastException
              The StackTrace is as follows:
              java.lang.ClassCastException
              at
              jsp_servlet._select_95_account_95_profile._jspService(_select_95_account_95_pro
              file.java, Compiled Code)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java, Compiled
              Code)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java,
              C
              ompiled Code)
              at
              weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.j
              ava:143)
              at
              com.logistics.optistopasp.servlet.AccountSelectServlet.doPost(AccountSelectServ
              let.java, Compiled Code)
              at
              com.logistics.optistopasp.servlet.AccountSelectServlet.doGet(AccountSelectServl
              et.java:35)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java,
              C
              ompiled Code)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.j
              ava, Compiled Code)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.j
              ava, Compiled Code)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextMan
              ager.java, Compiled Code)
              at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java,
              Compile
              d Code)
              at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java,
              Compiled Code
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,
              Compiled Code)
              Can anybody please Help!!!!.
              Thanks
              Pankaj
              

    Only can confirm your finding - the jsp is using a different class loader to the servlet that originally instantiated the object. There's the rub. I haven't figured out yet how to fix that. I can get the classloader but don't know how to get the runtime to use that class loader to perform cast.
              

  • Passing Values Child to Child...Need Help

    I am a bit of a noob, and I'm having a problem.  I had posted about this before but I think I was explaining what I need to do in way to much of a complicated manner so I'm going to try and simplify this a bit.
    I have 5 swf's.
    - main.swf (parent)
    - child01.swf
    - child02.swf
    - child03.swf
    - child04.swf
    When main.swf runs, it loads child03.swf on the bottom (eventhough levels are not relevent in AS3) child01.swf and child02.swf load on top of child03.swf.
    main.swf has an arrow button, to proceed to the next screen.  When the arrow button is pressed it unloads child01.swf, child02.swf and child03.swf, it then loads child04.swf.
    Here is my problem... child03.swf has dynamic text boxes, named tf0 - tf14, which get passed values by functions in each of those files.  I need to pass these same values to dynamic text boxes on child04.swf.
    The thing that concerns me is that child01.swf and child02.swf get unloaded when the arrow button is pressed.  I would assume that the values stored in these text boxes get unloaded as well.  If this is the case I need to store these values before the unload happens, which I am not sure how to do.
    Then once I store these values they need to pass to the dynamic text boxes, named tf15 - tf 29, in child04.swf.  I have been researching, and researching and cant find a solution.  Some talk about using LocalConnection.  kglad tried pointing me in the right direction using MovieClip, but I can't seem to get it working.
    I am including the script for the relevent files.
    main.swf
    stop();
    var Allergy_Tag:URLRequest = new URLRequest("child01.swf");
    var Info_Tag:URLRequest = new URLRequest("child02.swf");
    var Sec_A_B:URLRequest = new URLRequest("child03.swf");
    var Sec_C_D:URLRequest = new URLRequest("child04.swf");
    var AT_Loader:Loader = new Loader();
    var IT_Loader:Loader = new Loader();
    var AB_Loader:Loader = new Loader();
    var CD_Loader:Loader = new Loader();
    AT_Loader.x = 0;
    AT_Loader.y = 85;
    IT_Loader.x = 483;
    IT_Loader.y = 85;
    AB_Loader.x = 0;
    AB_Loader.y = 0;
    CD_Loader.x = 0;
    CD_Loader.y = 0;
    AT_Loader.load(Allergy_Tag);
    IT_Loader.load(Info_Tag);
    AB_Loader.load(Sec_A_B);
    CD_Loader.load(Sec_C_D);
    addChild(AT_Loader);
    addChild(IT_Loader);
    addChild(AB_Loader);
    //arrow btn actions
    arrowBtnMain.buttonMode = true;
    arrowBtnMain.addEventListener(MouseEvent.ROLL_OVER , arrowBtnMainRollOver);
    arrowBtnMain.addEventListener(MouseEvent.CLICK, arrowBtnMainClick);
    function arrowBtnMainRollOver(event:MouseEvent):void{
    arrowBtnMain.gotoAndPlay(2);
    function arrowBtnMainClick(event:MouseEvent):void{
    gotoAndStop(2);
        AT_Loader.unload();
        IT_Loader.unload();
        AB_Loader.unload();
        addChild(CD_Loader);
    child03.swf
    stop();
    //changes text size on checkboxes
    import fl.managers.StyleManager;
    var textf:TextFormat = new TextFormat();
    textf.size = 9;
    StyleManager.setComponentStyle(CheckBox, "textFormat", textf);
    StyleManager.setComponentStyle(CheckBox, "textPadding", 2);
    //handles tag labels
    var currentTF:uint = 0;
    function clickCB(evt:MouseEvent): void {
        this["tf"+currentTF].text = CheckBox(evt.target).label;
      currentTF += 1;
    for(var i:uint=0; i<30; i++){
    this["cBox"+i].addEventListener(MouseEvent.CLICK, clickCB);
    //handles text boxes
    f_name.addEventListener(Event.CHANGE,copyText);
    l_name.addEventListener(Event.CHANGE,copyText);
    emer_01.addEventListener(Event.CHANGE,copyText);
    emer_02.addEventListener(Event.CHANGE,copyText);
    emer_03.addEventListener(Event.CHANGE,copyText);
    function copyText(e:Event):void
        tf10.text = f_name.text;
        tf11.text = l_name.text;
        tf12.text = emer_01.text;
        tf13.text = emer_02.text;
        tf14.text = emer_03.text;
    child04.swf
    stop();
    import fl.managers.StyleManager;
    var textf:TextFormat = new TextFormat();
    textf.size = 12;
    StyleManager.setComponentStyle(CheckBox, "textFormat", textf);
    StyleManager.setComponentStyle(CheckBox, "textPadding", 2);
    //handles allergy beads
    var currentTF:uint = 30;
    function clickCB(evt:MouseEvent): void {
         this["tf"+currentTF].text = CheckBox(evt.target).label;
      currentTF += 1;
    for(var i:uint=30; i<60; i++){
    this["cBox"+i].addEventListener(MouseEvent.CLICK, clickCB);
    Here is an example of some of the script I have tried to impliment on child04.swf to call the values of the dynamic text boxes on child03.swf
    tf15.addEventListener(Event.CHANGE,importText);
    function importText(e:Event):void
        tf15.text = MovieClip(AT_Loader.content).tf0;

    Thx kglad,
    I'm still working with it.  However I am getting a strange output message.  I was working with the script to get those to pass, and started getting it.  I then removed the added script and I'm still getting it.
    TypeError: Error #1034: Type Coercion failed: cannot convert "
    " to flash.display.MovieClip.
    at child03_fla::MainTimeline/frame1()
    Here is the script I currently have on the main.swf and still recieving this message... Weird because at this point I'm not trying to convert anything to a MovieClip
    stop();
    var Allergy_Tag:URLRequest = new URLRequest("allergy_tags.swf");
    var Info_Tag:URLRequest = new URLRequest("info_tag.swf");
    var Sec_A_B:URLRequest = new URLRequest("checks_and_texts.swf");
    var Sec_C_D:URLRequest = new URLRequest("sec_c_d.swf");
    var AT_Loader:Loader = new Loader();
    var IT_Loader:Loader = new Loader();
    var AB_Loader:Loader = new Loader();
    var CD_Loader:Loader = new Loader();
    AT_Loader.x = 0;
    AT_Loader.y = 85;
    IT_Loader.x = 483;
    IT_Loader.y = 85;
    AB_Loader.x = 0;
    AB_Loader.y = 0;
    CD_Loader.x = 0;
    CD_Loader.y = 0;
    AT_Loader.load(Allergy_Tag);
    IT_Loader.load(Info_Tag);
    AB_Loader.load(Sec_A_B);
    CD_Loader.load(Sec_C_D);
    addChild(AT_Loader);
    addChild(IT_Loader);
    addChild(AB_Loader);
    //arrow btn actions
    arrowBtnMain.buttonMode = true;
    arrowBtnMain.addEventListener(MouseEvent.ROLL_OVER , arrowBtnMainRollOver);
    arrowBtnMain.addEventListener(MouseEvent.CLICK, arrowBtnMainClick);
    function arrowBtnMainRollOver(event:MouseEvent):void{
    arrowBtnMain.gotoAndPlay(2);
    function arrowBtnMainClick(event:MouseEvent):void{
    AT_Loader.unload();
    IT_Loader.unload();
    AB_Loader.unload(); 
    addChild(CD_Loader);
    removeChild(arrowBtnMain);

  • Reg passing values to a link

    Hi all,
    Is it possible to pass values to a link. The requirement is i need to pass some values to a standard transaction link and the values which i pass should go to the respective fields of the link.
    Can anyone suggest?
    Thanks and Regards,
    Sneha.

    here is a sample code to pass values to yahoo loging screen and logging on to it from your BSP
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title=" " >
        <htmlb:form method = "POST"
                    action = "https://login.yahoo.com/config/login?" >
          userid
          <htmlb:inputField id="login" />
          <br>
          password
          <htmlb:inputField id       = "passwd"
                            password = "true" />
          <br>
          <htmlb:button id      = "test"
                        text = "login"
                        onClick = "myonclick" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Regards
    Raja

Maybe you are looking for

  • What version of xcode executes on Mac OS X 10.4, Tiger

    hey i wanted to know if my mac book pro is capable of running any new versions of xcode propely without errors and smoothly. I use macbook pro with intel dual core cpu clocked @ 1.85GHz. My ram is 1GB and mu video memory is 64MB. my bus speed is 878M

  • Temporarily unable to repair corrupt catalog

    i'm running the current version of lightroom. it is giving me a dialog box that says: temporarily unable to repair corrupt catalog lightroom encountered problems reading or writing from disk when attempting to repair catalog the operation may succeed

  • Preview loses changes

    Working on my taxes and have encountered a big flaw in Preview. If I drag-copy a page from one saved (source) form into another Preview (target) file, do a save, everything looks fine in both files.  Neither indicates it is "edited" and needs a save.

  • Shared printer not working

    I have set up the shared printer on my iMac in my room. I am trying to print from my husbands iMac in the living room. It is acting like it is going to print but when I try to print the printer queue comes up and it pauses the print job. When I selec

  • How do I clear the clipboard on my iPhone 5

    I have an iPhone5 iOS 8.2 27.31 GB. I cannot get rid of the last thing I copied to the clipboard. How do I get rid of it?