Dynamically add component question?

Hi:
Here is part of my code in short:
public class TextInputWithAutoComplete extends TextInput
private function addComp():void{
list = new List();
list.id = "autoCompleteList";
list.x = 0;
list.y = 20;
list.addEventListener(MouseEvent.MOUSE_UP, handleMouseDown);
parentDocument.addChild(autoCompleteList); OR addChild(autoCompleteList); //my question is here
private function handleMouseDown():void{
//TODO
I realized that if I do addChild, I can't really see the dynamically added component, since flex did not reserve space for my List to display. So I do parentDocument.addChild, and then the component appears no problem. My question is since it's being added in the parentDocument, so it is suppose to be a component belong to parentDocument, so is that component still be able to call this handleMouseDown?
From my experience, it's still able to, but which doesn't make sense to me.
Can someone explain a little about why it can still work, or any better approach other than parentDocument.addChild
Thanks.

In Flex there is a lifecycle that represents the contract between the component and its parent.  See the chapters on creating custom components and the lifecycle methods createChildren, commitProperties, measure and updateDisplayList.
Some components size to content like Containers.  When you add a child to a container it will measure the child and make room for it or add scrollbars if there isn't enough room.
If you add a child to TextInput, it doesn't expect additional children so it will not make room for it.  You can subclass and override its measure and updateDisplayList methods to make room for an additional child.
I would not recommend adding another interactive control to an interactive control since that will make managing focus and accessibility much harder.  It is better to group these in a container in most cases.
The reason the mouse handler still gets called is because a handler can be on any object whether it is a child or sibling or parent and will be called by the object dispatching the event if the handler is listening to that object.  If you had attached the handler to "this" it would not get called when the List is not a child of "this".
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

Similar Messages

  • Dynamic add component to panel, it does't work

    I want to add a label in a panel when you click button.
    I used revalidate() and revalidate() method, but it didn't appear in panel.
    HELP ME?? WHAT'S WRONG!
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    jPanel1.add(new JLabel("Hello"));
    jPanel1.revalidate();
    jPanel1.repaint();
    }

    i add Layout manager to panel. It works. Thanks,
    So tricky things for dynamic adding component:
    1, setup layout manager to container (such as panel),
    2, add component to container
    3, call revalidate() method to relayout these components in container
    You can't miss any one of those.
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    jPanel1.setLayout(new FlowLayout());
    jPanel1.add(new JButton("Hello"));
    jPanel1.revalidate();
    }

  • Facing problem to add component in a panel dynamically

    I face serious problem to add component dynamically on a jpanel. can any one help me?
    I have one panel inside a frame. And I have another 3 or 4 panel. dynamically i want to change the panel inside the frame with the other panel.
    can anybody help me with source code?
    Your earliest response is highly appreciated.

    remove is reflected immediately without calling
    validate() but it does not work for adding. please
    give me some code.Post a small demo code that is generally compilable, runnable and could reproduce your problem. See: http://homepage1.nifty.com/algafield/sscce.html and http://www.yoda.arachsys.com/java/newsgroups.html

  • Mapview dynamic theme generation questions

    In exercising the MapViewer tool with thematics map I had a view questions on the capabilities of the component:
    1. Is there a way in the map _request element reference a dynamically defined expression (column)
    that is returned from the query defined in the value of the "<jdbc_query>" element. I want to show counts from an inline view,
    but for brevity consider the the SQL
    select geom, state , state || '-' || state_abrv concat_state_name from states
    It seems that both the "label_column" attribute of the "<jdbc_query>" element and the "column" attribute of a "<rule>" element in
    a style rule can only reference columns that exist in the base table either of the base map/theme or in the query .
    I cannot seem to use a specification of "concat_state_name"
    in the "label_column" attribute ... throws ClassCastException. Should this be possible ?
    If not would the workaround would appear to use a view that is dynamically defined and insert a new map based on the view ?
    2. In my inline view example, I found in the "<jdbc_query>" element that when I specifed a "render_style" that
    was an advanced style with buckets it automatically selected my count expression and rendered the map correctly, which
    is great, but it might be a good idea to make it explicit if 1. could be handled (or can).
    3. For thematic maps it would be nice to dynamically define the buckets (<AdvancedStyle>)
    within the map request as the potient for permutations of numeric ranges in any application could vary.
    It looks like <styling_rules> might be able to handle this if you can use the BETWEEN operator or something
    like runway_number >= 10 and runway_number < 20 as expressions. Are these valid and if so where are they specified
    in the map_request ? I did not see them nested anywhere in the DTD yet the Example 2-1 in the documentation would
    imply they can be specified in the map request and the tool map definition tool does not seem to support the concept of a
    variable in the base table. The workaround would appear to be to dynamically add the theme using an insert.

    In exercising the MapViewer tool with thematics map I had a view questions on the capabilities of the component:
    1. Is there a way in the map _request element reference a dynamically defined expression (column)
    that is returned from the query defined in the value of the "<jdbc_query>" element. I want to show counts from an inline view,
    but for brevity consider the the SQL
    select geom, state , state || '-' || state_abrv concat_state_name from states
    It seems that both the "label_column" attribute of the "<jdbc_query>" element and the "column" attribute of a "<rule>" element in
    a style rule can only reference columns that exist in the base table either of the base map/theme or in the query .
    I cannot seem to use a specification of "concat_state_name"
    in the "label_column" attribute ... throws ClassCastException. Should this be possible ?
    If not would the workaround would appear to use a view that is dynamically defined and insert a new map based on the view ? MapViewer does allow dynamic expressions in <jdbc_query>. Can you test the following simple request:
    <?xml version="1.0" standalone="yes"?>
    <map_request datasource = "mvdemo">
    <themes>
    <theme name="theme1" min_scale="5.0E7" max_scale="0.0">
    <jdbc_query
    datasource="mvdemo"
    jdbc_srid="0"
    spatial_column="geom"
    render_style="C.RED"
    label_style="T.STREET NAME"
    label_column="concat_state_name"
    >select geom, state , state || '-' || state_abrv concat_state_name from states where state_abrv='MA' </jdbc_query>
    </theme>
    </themes>
    </map_request>
    As long as the name specified in lable_column matches the alias you give in the select list it should work.
    If not then maybe you need to use the view-based approach. It will definately work in the up-coming 9.0.4 version.
    2. In my inline view example, I found in the "<jdbc_query>" element that when I specifed a "render_style" that
    was an advanced style with buckets it automatically selected my count expression and rendered the map correctly, which
    is great, but it might be a good idea to make it explicit if 1. could be handled (or can).
    3. For thematic maps it would be nice to dynamically define the buckets (<AdvancedStyle>)
    within the map request as the potient for permutations of numeric ranges in any application could vary.
    It looks like <styling_rules> might be able to handle this if you can use the BETWEEN operator or something
    like runway_number >= 10 and runway_number < 20 as expressions. Are these valid and if so where are they specified
    in the map_request ? Yes that may indeed be a good thing to have in a future version of mapviewer. In the mean time yes you can always use such expressions as you provided in the styling_rules (which is only for predefined themes) or in a <jdbc_theme>.
    I did not see them nested anywhere in the DTD yet the Example 2-1 in the documentation would
    imply they can be specified in the map request and the tool map definition tool does not seem to support the concept of a
    variable in the base table. The workaround would appear to be to dynamically add the theme using an insert. The map definition tool is lagging behind in terms of supporting all the functions actually available in MapViewer server.
    Thanks,
    LJ

  • Dynamically add Children Link Element

    Hi,
    I'm trying to dynamically add a children element, a link, but the action binding refuses to work ...
    I've created a custom jsf component, that does nothing at all.
    For example, one would use it like:
    <my:nothing></my:nothing>So my UI class would have the following methods:
    public void encodeBegin(FacesContext context) throws IOException {
    public void encodeEnd(FacesContext context) throws IOException {
    }The tld file is created, the tag class is working. All the component is working properly.
    Now I want to add a link as a child component, but I wat to do it programatically, so I changed the encodeBegin method of my custom ui class:
    import javax.faces.el.ValueBinding;
    import com.sun.faces.util.Util;
    import javax.faces.el.MethodBinding;
    import javax.faces.component.UICommand;
    import javax.faces.component.html.HtmlCommandLink;
    import com.sun.faces.taglib.html_basic.CommandLinkTag;
    public void encodeBegin(FacesContext context) throws IOException {
              String myLinkId = "idMyLink";
              String myLinkValue = "myLink:Value";
              String myLinkStyle = "color:green;";
              String myLinkAction = "backup";
              HtmlCommandLink myLink = new HtmlCommandLink();
              myLink.setParent(this);
              myLink.setId( myLinkId );
              if (CommandLinkTag.isValueReference( myLinkValue )) {
                   ValueBinding vb = Util.getValueBinding( myLinkValue );
                   myLink.setValueBinding("value", vb);
              } else {
                   myLink.setValue( myLinkValue );
              if (CommandLinkTag.isValueReference( myLinkStyle )) {
                   ValueBinding vb = Util.getValueBinding( myLinkStyle );
                   myLink.setValueBinding("style", vb);
              } else {
                   myLink.setStyle( myLinkStyle );
              if(myLinkAction!=null) {
                   if (CommandLinkTag.isValueReference( myLinkAction )) {
                        System.err.println("Id="+myLinkId+":TRUE:getAccao:isValueReference:"+myLinkAction);
                        MethodBinding vb = getFacesContext().getApplication().createMethodBinding(myLinkAction, null);
                        myLink.setAction(vb);
                   } else {
                        System.err.println("Id="+myLinkId+":FALSE:getAccao:isValueReference:"+myLinkAction);
                        final String outcome = cNfo.getAccao();
                        MethodBinding vb = Util.createConstantMethodBinding( myLinkAction );
                        myLink.setAction(vb);
              myLink.encodeBegin(getFacesContext());
              myLink.encodeEnd(getFacesContext());
    }This seems to work, but not quite ... the link appears as expected, the value references for value and style are correctly passed, but the action doesn't work at all.
    For example if I change to:
    String myLinkValue = "#{mybean.linkText}";And I have the following method created on my managed bean:
         public String getLinkText() {
              return "This is myLink Text!";
         }Is successfully calls and retrieves the value from the method. Same happens to the style property.
    Now for the action, if I change to:
    String myLinkAction = "#{mybean.doMyLinkAction}";And I have the following method created on my managed bean:
         public String doMyLinkAction() {
              return "backup";
         }The result is nothing ... I mean the method is not called at all. The "backup" is properly defined on my "faces-config.xml":
       <navigation-rule>
          <from-view-id>/testPage.jsp</from-view-id>
          <navigation-case>
             <from-outcome>yes</from-outcome>
             <to-view-id>/yes.jsp</to-view-id>
          </navigation-case>
          <navigation-case>
             <from-outcome>no</from-outcome>
             <to-view-id>/no.jsp</to-view-id>
          </navigation-case>
          <navigation-case>
             <from-outcome>backup</from-outcome>
             <to-view-id>/backup.jsp</to-view-id>
          </navigation-case>
       </navigation-rule>If I create the link manually on the web page:
    <h:commandLink id="myLinkManual" value="Manually Created Link" style="" action="#{mybean.doMyLinkAction}"/>It does work (the backup.jsp page is shown), so the methods are properly configured, only the action binding does not work.
    Wether I use a string "backup" or a reference "#{mybean.doMyLinkAction}" I cannot make it work.
    On the console I get the following results, for each value I test (string "backup" or reference "#{mybean.doMyLinkAction}"):
    Id=idMyLink:TRUE:getAccao:isValueReference:backup
    Id=idMyLink:FALSE:getAccao:isValueReference:#{mybean.doMyLinkAction}So the "if (CommandLinkTag.isValueReference( myLinkAction )) {" is working properly ... that just leaves me with the action method binding instructions ...
    Why don't they work?
    Any Help Appreciated ... Thanks in Advance!

    c'mon guys ... can anyone test this and help me out?
    Pleeeeeease ... I'm really needing this working out.
    Thanks

  • Dynamic Table Creation Question

    Can you dynamically add a column to a data table at run time using JSC and JSF? I have a case where I want to add a column to a table based on a selection by the user.

    Hi
    I have been trying to this when I saw your question first time two days back. I tried changing the rowset's query but nothing seems to work. I will try again and I am sure that I can give you something on this if there is any straight solution to this.
    Thanks
    Srinivas

  • Dynamically add custom MXML components in Actionscript

    As there's no constructor for custom MXML components, how to
    dynamically add it as a child using ActionScript?
    I'm looking for some alternative to avoid the need to rewrite
    the entire existent component in ActionScript just to add it this
    feature (a constructor). PopManager is not an alternative...
    Is there any way?
    The case/situation:
    I have a custom MXML component that needs to be dinamically
    added to a NativeWindow created using ActionScript.
    Thanks a lot!
    Vicente Junior
    Independent Web Developer
    http://teclandoalto.blogspot.com

    mxml classes get generated into AS classes with a default
    constructor.
    In fact, there is essentially no difference between an AS
    component and an mxml component, they can be used exactly the same
    way.
    Tracy

  • Dynamic declarative component won't work properly within table row

    Hi guys,
    I built a dynamic declarative component which basically consists of an af:inputText surrounded by a af:panelLabelAndMessage tag.
    The component works fine until I put it inside a table column, then none of the attribute values get set.
    The problem seems to be related to the table row binding #{row.binding.Name.inputValue} , if I use a regular binding #{binding.Name.inputValue} it works ok.
    The declarative components attribute is defined as
    <attribute>
        <attribute-name>kbez</attribute-name>
        <attribute-class>java.lang.Object</attribute-class>
    </attribute>and is used as the inputText's value attribute
    <af:componentDef var="attrs" componentVar="component">
        <af:panelLabelAndMessage label="#{attrs.label}" id="dc_plam1"
                                 for="dc_it1" labelStyle="white-space:nowrap;"
                                 showRequired="#{attrs.showRequired}"
                                 rendered="#{attrs.rendered}">
            <af:inputText id="dc_it1" value="#{attrs.kbez}"
                          autoSubmit="true" immediate="false" ...>The component inside a table column is set like this
    <af:declarativeComponent viewId="/WEB-INF/ikb.adf.kreda.basis/mitarbeitersuche/ddc/mitarbeiterLOV.jsff"
                             id="ddc1" label="Mitarbeiter"
                             kbez="#{row.bindings.Kbez.inputValue}"/>My JDeveloper version is 11.1.1.5.
    Am I doing it wrong or is this a bug?
    Any help is appreciated.
    Thank you,
    Achim
    Edited by: Achim Rosenfeld on Mar 8, 2013 8:41 AM

    Hi,
    +#{row.binding.Name.inputValue} , if I use a regular binding #{binding.Name.inputValue} it works ok.+
    Don't think that #{binding.Name.inputValue} works okay in a table because it doesn't stamp the component per row. Actually I don't know if we support dynamic declarative components in a stamped environment (table). I know though that we don't for taglib declarative components in this context.
    Reason why it doesn't work: Tables are stamped at runtime, which means that for better performance, only the generated HTML is reused for each row with different data - not the component. Your component requires itself to be re-created for each row so it can re-read the attribute again. This is not the case in a stameped environment
    Solution: For your particular use case I don't think that a dynamic declarative component is needed as you can add the construct (af:inputText surrounded by a af:panelLabelAndMessage) directly into an af:column tag. The declarative component makes more sense for reuse of layout areas (e.g. custom tabs) that are iterated within an af:forEach (in which case instances of the decalarative components would be created).
    Bottom line: tables stamp their components and as such the attribute property exposed on a DDC doesn't seem to be called for each row, which is by design. This can be considered a bug if there is a use case demanding for a DDC in a table. If this is a requirement for you (and you can't directly add the components to the af:column tag) feel free to file this as a service request with customer support (required a support contract) so development can have a look if the requirement is feasible to implement.
    Frank

  • Dynamic Declare Component cannot find property

    We currently have one main page calls a DDC(Dynamic declarative component) page fragment to create/update a record in database. The main page pass in a key to DDC when it loads DDC. The DDC binds to a view object with bind variable (get value from the passed key and load data from table) and several LOV attributes. Once user clicks submit button in main page, we wish that all the fields displayed in DDC could be committed to a database table to save.
    I use 11.1.1.5.
    In order to assign the bind variable of VO, we wrote a method in Application Module and make it invoked as the first executable when the main page is loaded. The deployment is fine. However, the runtime always thrown some exception to complain it cannot find property definition like this:
    ####<Aug 15, 2011 6:32:24 PM CDT> <Warning> <oracle.adfinternal.view.faces.lifecycle.LifecycleImpl> <curmailts1-corp> <AdminServer> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <6b1af60b3a40d50a:-6c52e935:131cfc2d522:-8000-000000000000024c> <1313451144494> <BEA-000000> <ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
    javax.el.PropertyNotFoundException: Target Unreachable, 'WorkDescription' returned null
         at com.sun.el.parser.AstValue.getTarget(Unknown Source)
         at com.sun.el.parser.AstValue.isReadOnly(Unknown Source)
         at com.sun.el.ValueExpressionImpl.isReadOnly(Unknown Source)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:486)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:416)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.beforeEncode(LabeledInputRenderer.java:128)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:334)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
    Questions: 1) Why my method in Application Module not called?
    2) Whether DDC is a right solution for our use case? Any suggestion or sample are welcomed!
    Thanks,

    Hi,
    I appreciate if you can show your code, but before that, make sure if you're following this tip below:
    "Declarative Components are regular JSF components except that they are built as a composite out of existing ADF Faces components. Declarative components cannot have a PageDef file associated with it and instead use value or method attribute to communicate with the consuming page. When creating a declarative component, the attrs implicit object is defined that allow you to reference the component's exposed value attribute from ADF Faces components within.
    An input text field contained in an declarative component may reference a value attribute "compValue" defined on the declarative component by using the following EL
    #{attrs.compValue}
    The declarative component compValue attribute then would us an EL reference like shown next to read/write values from or to the ADF binding layer:
    #{bindings.attribute_name.inputValue}"
    (Oracle ADF Code Corner)
    Regards,

  • Add component in task list

    Hello All,
    I have an issue with adding component in task list (for example task list number EIMN-68) via transaction IA05.
    When I try to add component to operation, I get the message *
    Standard BOM PAEIMN-68  4 already exists
    Message no. 29771
    Diagnosis
    You want to create a standard BOM for standard object PAEIMN-68 with usage .
    A BOM already exists for this standard object and usage. You cannot extend a standard a standard BOM.
    Procedure
    Check whether the standard BOM is suitable for standard object PAEIMN-68 and usage . If it is not, you need to create the BOM for another standard object.
    Is there any special way to create material master for such components.Whats the solution.
    Please help
    Cheers
    Sunny

    Hi Pithan, how are you..
    I want to add components.
    Just now I was able to add components. I explain how:
    When i added component number in operation, and press enter, system gave me the error that standard bom already exist. In the same screen I changed the BOM usage to 3 as universal usage. After this usage only, system allowed me to add components. No other bom usage allowed me to do so.
    Also, why system took me to BOM screen if I just want to add components.
    I wait for your reply.
    thanks and regards
    Sunny

  • Dynamic add row/columns to data forms(11.1.1.3) v/s (11.1.2.1)

    Hello All,,
    There used to be an option in Hyperion planning 11.1.1.3 to Dynamic add rows in data form. I don't see this option in planning 11.1.2.1 ?
    Could you please suggest how we can grant right users to add dynamic add rows and columns in data forms? or it is possible in 11.1.2.1 ?
    out user want to have a feature of adding row in data forms (planning forms)
    Thank you
    Edited by: 842804 on Aug 17, 2011 12:49 PM

    Do you mean 11.1.2, if so then adhoc web forms really take over from adding rows as they add much more functionality.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Dynamically add an in memory Bitmap to a List

    I'm trying to dynamically add an in memory Bitmap to a List
    control. I'm trying to create a thumbnail
    from a larger bmp image and display the thumbnail in the
    list. The thumbnail images are being created ok
    but the bitmaps are not displaying in the List control. The
    code I'm using is shown below. Apparently I can't
    use a collection of bitmaps in the List. Previously I had a
    collection of pathnames as strings that pointed to
    jpgs on disk and it displayed ok. Does anyone know how I can
    get the Bitmaps to display?
    <mx:List id="fileList" x="10"y="10" width="231"
    height="648" rowHeight="160" columnWidth="120 enabled="true"
    click="loadImage()" itemRenderer="mx.controls.Image"
    dataProvider="{myProvider}"></mx:List>
    public var anArray:Array = new Array();
    public var myProvider:ArrayCollection = new
    ArrayCollection(anArray);
    var thumbnail:Bitmap = new Bitmap(new
    BitmapData(thumbSize,thumbSize,true,0));
    thumbnail.bitmapData.draw(bmp,matrix);
    myProvider.addItem(thumbnail);

    without looking at what tables you are using and and how you built the query this is what I can think of:
    Please write this in record processing section:
    fields material/stock/req are the running variables in meaning database field names.
    lv_ava is the new field that needs to be created.
    data lv_stock type INSME.
    data lv_req type insme.
    at new material.
      lv_stock = stock.
      clear :lv_req, req.
    end at.
      lv_req = lv_req + req.
      lv_ava = stock-lv_req.

  • When i try to download an app and i have entered my password i am asked to add some security questions. I can add two questions and an alternative e-mail address, however it will not let me select the third security question.

    when i try to download an app and i have entered my password i am asked to add three security questions. I can add two questions and an alternative e-mail address, however it will not let me select the third security question.

    Thanks Liam. After the second ap download it asked me three security questions on iTunes and on my MAC it allowed me to set up these with no error on the third question. iPAD 3 now downloads apps fine.
    Apple really need to sort out this issue or provide guidance on this. Two days of the unit not really being fit for purpose - what use is an IPAD without the ability to download aps.
    Also NO Response from Apple via online tech support and it's now been nearly 24 hours - I was told by telephone support I would get a response within 24 hours or less, as also stated in the email response too!??
    It would be good to get a formal response from Apple on this rather than radio silence.

  • Dynamic add tree node and thread

    Hi,
    I implemented a thread by using SwingWorker class to execute the time-consuming file loading and processing task instead of the event-dispatching thread. However, I need to dynamically add node to a tree by using data returned by the file loader in my project's main frame like following:
    if (source == loadAffyItem) {
        //load affy file data to the application
        loader = new AffyFileLoader();
        //dynamically add node to the tree after data loading
        rawDataNode = treePanel.addObject(null, "Raw Data");
        DefaultMutableTreeNode node = new DefaultMutableTreeNode(new UserData("Pixel",   loader.getPixelMatrix()));
        pixelNode = treePanel.addObject(rawDataNode, node);
        node = new DefaultMutableTreeNode(new UserData("Signal", loader.getSignalMatrix()));
        signalNode = treePanel.addObject(rawDataNode, node);
    }However, I always get a NullPointer error by doing this way since the code to dynamically add node to the tree using data returned from loader, but the loader is executed
    in another thread and not finished yet. How could I make that code executed after the loader class is finished? Hope you could enlight me about this issue?
    thanks in advance!
    Jenny

    You'll have to redesign a bit. You could either have the separate thread add the node when it's finished (using SwingUtilities invokeLater to ensure you're updating the GUI in the Event Dispatch thread), or you could have the separate thread call-back or send an event when it's finished (and your main thread would listen).

  • Able to add component in approved Purchase Req from PM

    Hello,
    I have scenario where I create Purchase requisition from Plant Maintenance Work order and I have collective functionality turn on, means if I add component in the work order it will be added in the Purchase requisition created against that work order. now my requirement is if my purchase requisition is approved system should not allow me to add the component to same purchase requisition from PM work order.
    any help would be highly appreciated.
    Regards
    Shailendra

    Dear shailendra soni,
    Have you tried Changeability of Purchasing Document During/After Release.
    Path is :SPRO->MM->Purchasing->PR-Rel.Str.Procedure W/Classification->Setup Procedure with Classification-Release indicator
    Here as per your release code - select required option which suits you - (1- cannot be changed)
    Refer Image
    reg,
    Bhg

Maybe you are looking for

  • Need helping printing to networked printers.

    I need help setting up network printers that have a code on them for each individual. There is no place to put a code so the printer will know who is printing what. I have installed 3 printers and they will not print, they just go to a paused mode an

  • Problem opening photos with camera raw 7.1 with Photoshop CS6

    I am using Windows 7 32 bit system with 4GB ram and graphics accelerator. I have Photoshop CS5.1 installed in the same system at it works perfectly. What happens is when I use the B+W function, I get an error message saying that I have not enough ram

  • Can't update windows 7 service pack 1, can I use windows 8 for AirPort Extreme on my laptop?

    I need help! I'm trying to set up AE with 3 laptops, a desk top, an ipad and two iPhones! Got the software downloaded onto all but one laptop. My laptop won't configure windows 7 service pack 1 so the AE software won't install. I've tried all Microso

  • IPhoto not playing videos

    Some of my videos in iPhoto won't open or can't be transferred to Facebook. What's wrong? I'm all updated to Mavericks, which may be the issue. A few days ago I tried to open my videos in iMovie and they worked. Now they don't appear in iMovie at all

  • Automation of BD10

    Hi Everybody,   His there any possiblity to automate the BD10. or a user exit to call the transaction BD10 from MM01 and MM02 while saving. waiting for the reply Asshwin