Dynamically Replacing Location Attributes

Hello,
I am having trouble changing the validation entity group using the BefConsolidate event script.  This is my code below:
Sub BefConsolidate(strLoc, strCat, strPer, strTCat, strTPer, strEntGroup)
    If InStr(UCase(strLoc), "EA") > 0 Then
        RES.PblnValEntGroupOverride=TRUE
        RES.PstrValEntGroup="TOT"
    End If   
End Sub
I am using similar code to dynamically change the import format and that works fine.  I am using FDQM, Fusion Edition 11.1.2.1.
The RES. statements are coming straight out of admin guide so I am not sure why this will not work.
The location in question does have a default validation entity group assigned.
Thank you,
Matthew

Hello,
Yes I am able to write to file before end if.  I also took out end if statement which to me would me FDM would fire the event for all locations without restriction.
I have not tried the same code in other event script.  Would that work?  The RES statement specifically relates to a consolidation trigger.  I can try another event to see.
Thanks.

Similar Messages

  • Dynamically Changing Location Attributes

    Hi All,
    Has anyone ever successfully set up a BefConsolidate event script with a dynamically changing location attribute. The FDM Admin manual says you can do this:
    RES.PblnValEntGroupOverride=True
    RES.PstrValEntGroup=”MyNewEntityGroup”
    It does not work for me when I sub in a new Validation Entity Group. Has anyone had luck with this? See my actual code below. The new validation group name is 281.
    Sub BefConsolidate(strLoc, strCat, strPer, strTCat, strTPer, strEntGroup)
    RES.PblnValEntGroupOverride=True
    RES.PstrValEntGroup="281"
    End Sub
    Thx,
    Mike

    Hello,
    Yes I am able to write to file before end if.  I also took out end if statement which to me would me FDM would fire the event for all locations without restriction.
    I have not tried the same code in other event script.  Would that work?  The RES statement specifically relates to a consolidation trigger.  I can try another event to see.
    Thanks.

  • Noob Q - Override a WSDL location attribute

    I've read in another post about overriding the Web Service location found in its WSDL file. Unfortunately, I cannot find any additional info on how to do this. Can someone point me in the direction for the docs or xsd that specifies how this is done? Right now the WSDL is using the machine's loopback adapter and the web service host is unable to change it.
    Thanks,
    Gene

    not sure which version you are using. But in any case - you can either use the location attribute that is sitting inside bpel.xml (in 10.1.3) or inside <binding.ws> in 11g's composite.xml.
    If you need to set it at runtime, you can use dynamic partnerlinks, e.g.
    </pre>
                        <assign>
                             <copy>
                                  <from>
                                       <EndpointReference xmlns="http://schemas.xmlsoap.org/ws/2003/03/addressing">
                                            <Address>http://cutschig-lap.us.oracle.com:7777/orabpel/default/AmericanLoan</Address>
                                            <ServiceName xmlns:ns1="http://services.otn.com">ns1:AmericanLoan</ServiceName>
                                       </EndpointReference>
                                  </from>
                                  <to partnerLink="LoanService"/>
                             </copy>
                        </assign>
    </pre>

  • Script to modify the location attribute in an existing subnet registered on AD sites

    Could anyone help me to make an script to modify the location attribute in an existing subnet registered on AD sites and services.
    Using the script to create subnet, like this one below, occurs error because the subnet already exist:
     Set objRootDSE = GetObject("LDAP://RootDSE")
      strConfigurationNC = objRootDSE.Get("configurationNamingContext")
      strSiteObjectDN = strSiteObjectRDN & ",cn=Sites," & strConfigurationNC
      strSubnetsContainer = "LDAP://cn=Subnets,cn=Sites," & strConfigurationNC
      '-- Create Subnet --
      Set objSubnetsContainer = GetObject(strSubnetsContainer)
      Set objSubnet = objSubnetsContainer.***MODIFY/UPDATE***("subnet", strSubnetRDN)
      objSubnet.Put "siteObject", strSiteObjectDN
      objSubnet.Put "description", strDescription
      objSubnet.Put "location", strLocation
      objSubnet.SetInfo
    Thanks,

    Just get the subnet by name:
    subnet = "192.168.1.0\/24"
    Set objRootDSE = GetObject("LDAP://RootDSE")
    strConfigurationNC = objRootDSE.Get("configurationNamingContext")
    strSiteObjectDN = strSiteObjectRDN & ",cn=Sites," & strConfigurationNC
    strSubnet = "LDAP://CN=" & subnet & ",cn=Subnets,cn=Sites," & strConfigurationNC
    Set objSubnet = GetObject(strSubnet)
    objSubnet.Put "description", strDescription
    objSubnet.Put "location", strLocation
    objSubnet.SetInfo
    ¯\_(ツ)_/¯

  • Ejb-ref-mapping in orion-ejb.jar missing location attribute after deployment

    I have noticed that on several of my entity beans that after deployment the <ebj-ref-mapping location="JNDIName" name="LocalName"/> is missing the location attribute. This causes any attempts to lookup the EJBHome for that EJB to fail because the path to the EJBHome in JNDI cannot be found (obviously!). The problem is that this causes me to manually edit the application-deployment/<app>/<ejb.jar>/orion-ejb.zml after each deployment via the admin.jar. This seems like a bug with OC4J and I am wondering if Oracle is aware/doing something to fix this?
    I have noticed that the same problem exists for session beans, however, for some strange reason the EJBHomes can still be resolved in JNDI. In all cases the location in JNDI is different then the <ejb-ref-name> I used in the client EJB.
    Example being I have an entity bean at com.foo.Foo and the session bean uses lookup("java:comp/env/ejb/Foo") it is still able to find the EJB even though the orion-ejb.xml looses the location attribute. If the case is an entity bean referencing another entity bean in the same fashion I get an error because the location attribute is missing.

    If the 'location' value is same as the 'name' value, then even though the location attribute is missing, it is ok and should work. If they are not the same, then you should have defined the ejb-link element in your ejb-jar.xml when defining this ejb-ref and that would make the location attribute appear in the generated orion-ejb-jar.xml.
    If the referenced bean is from a different application (EAR), then you should have used the -parent option when deploying the application.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Kris Trujillo ([email protected]):
    I have noticed that on several of my entity beans that after deployment the <ebj-ref-mapping location="JNDIName" name="LocalName"/> is missing the location attribute. This causes any attempts to lookup the EJBHome for that EJB to fail because the path to the EJBHome in JNDI cannot be found (obviously!). The problem is that this causes me to manually edit the application-deployment/<app>/<ejb.jar>/orion-ejb.zml after each deployment via the admin.jar. This seems like a bug with OC4J and I am wondering if Oracle is aware/doing something to fix this?
    I have noticed that the same problem exists for session beans, however, for some strange reason the EJBHomes can still be resolved in JNDI. In all cases the location in JNDI is different then the <ejb-ref-name> I used in the client EJB.
    Example being I have an entity bean at com.foo.Foo and the session bean uses lookup("java:comp/env/ejb/Foo") it is still able to find the EJB even though the orion-ejb.xml looses the location attribute. If the case is an entity bean referencing another entity bean in the same fashion I get an error because the location attribute is missing.<HR></BLOCKQUOTE>
    null

  • Dynamically setting field attributes based on input

    Hi all,
    I am trying to see if it is possible to dynamically set field attributes depending on other fields.  For example, in screen 1100 of IQ01, I want to make it so that "Certification number" becomes mandatory if "certification status" = 1, and becomes optional if "certification status" = 2,3 or 4.
    Is this possible?  If so, how?
    Regards,
    D.

    Have you checked this
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbab6f35c111d1829f0000e829fbfe/content.htm
    if your requirement is to do this in Tcode IQ01 then the above answer is not sufficient
    Edited by: Abhishek Jolly on Aug 15, 2008 5:41 PM

  • How to carry out Dynamic Replace action in OSb

    Hi all
    I want to do a dynamic replace in OSB.
    like
    Lets my input be :-
    <cli:AccountInquiryRequest xmlns:cli="http://client.accountInquiry.dto.cards.nab.cz.fc.ofss.com">
    <cli:requestUID>string</cli:requestUID>
    <cli:cardType>string</cli:cardType>
    <cli:AcctId>5</cli:AcctId>
    <cli:scr>AcctId</cli:scr>
    <cli:dest>requestUID</cli:dest>
    </cli:AccountInquiryRequest>
    So what i want to do is check for element name in <scr>(in this case AcctId) and then replace the contains of the <AcctId> with the contains of the element name given in <dest>(in this case its requestUID)
    so in this case i want to replace the contain of requestUID with AcctId .
    Please help !!!
    Thanks

    I think you need to determine the xpath used for replace at runtime.. You can try looking at xslt xalan:evaluate function for this.
    The function syntax is as :
    <xsl:value-of select="xalan:evaluate($XPath)"/>
    You need to construct $XPath to point to right xpath . e.g concat("$body/*:",$body/*:dest)
    This will make $XPath to = $body/*:requestUID
    You can then pass this xpath string to xalan:evaluate.

  • Dynamic Image Location in JRC

    <p>Hi !</p><p> </p><p>We are interested in using so called dynamic image location future in JRC. So far we are unsucessful, so the question is, is it supported in JRC ? We are able to get dynamic image location future working in report designer, but when our report is exported there is no image only path to it. </p><p> </p><p>We use Crystal Reports 11 R2, Java Reporting Component in JSP version.</p><br /><p>Mac</p>

    I have a couple of reports working with dynamic images. CR4E doesn't support this (yet?!?), but you can still do it with the JRC. The big kicker is the syntax of your URL. If you're using a static image on a server somewhere, it should work with no problem. However, if you're using a generated image, it's a little trickier. I discovered this when I was creating a report with barcode labels. The barcodes were not getting generated. I turned on debugging and found that the JRC was screwing up my url. The url was as follows http://myserver/barcode?message=12345 67890&format=datamatrix.
    In the logs, the JRC said it couldn't find an image at the url
    http://myserver/barcodemessage=12345+67890&format=datamatrix. It was stripping out the ? in the url, which is kind of an important character to say the least. I messed around with it and eventually found that if I just put ?? instead of ?, the image would display correctly with the JRC. Hope this helps! If not, post what version of the JRC you're using and the URL you're using for the image location.

  • Server 'location' attribute in DSCC

    Is it possible to set the 'location' attribute for servers registered in DSCC via any command line tools (apart from using e.g. ldapmodify) or only via DSCC GUI?

    POVAlias function used

  • How does "Location" attribute handle WebLogicHost parameter

    I am using Apache 2.2.4 as the webserver with the WLS 10.0 Apache plugin to forward requests to a WLS 10.0 cluster with 2 WLS instances.
    I am attempting to route requests based on the URL path using the <Location> facility within Apache. But i notice that the plugin ignores the WebLogicHost and WebLogicPort parameters and instead uses the server list returned by the cluster. Any clues on what i might be doing wrong in my configuration?
    Here are the Location attributes specified in my httpd-ssl.conf. I do have a couple of more "Location" attributes which use a different "path" to forward requests and those do use a WebLogicCluster parameter.
    Thanks
    Ramdas
    <Location /bigweb03>
    SetHandler weblogic-handler
    Debug "HFC,HTW,HFW"
    WebLogicHost dev03
    WebLogicPort 9560
    DebugConfigInfo On
    WLLogFile "bigweb03.log"
    DynamicServerList OFF
    </Location>
    <Location /bigweb04>
    SetHandler weblogic-handler
    Debug "HFC,HTW,HFW"
    WebLogicHost dev04
    WebLogicPort 9570
    DebugConfigInfo On
    WLLogFile "bigweb04.log"
    DynamicServerList OFF
    </Location>

    I am using Apache 2.2.4 as the webserver with the WLS 10.0 Apache plugin to forward requests to a WLS 10.0 cluster with 2 WLS instances.
    I am attempting to route requests based on the URL path using the <Location> facility within Apache. But i notice that the plugin ignores the WebLogicHost and WebLogicPort parameters and instead uses the server list returned by the cluster. Any clues on what i might be doing wrong in my configuration?
    Here are the Location attributes specified in my httpd-ssl.conf. I do have a couple of more "Location" attributes which use a different "path" to forward requests and those do use a WebLogicCluster parameter.
    Thanks
    Ramdas
    <Location /bigweb03>
    SetHandler weblogic-handler
    Debug "HFC,HTW,HFW"
    WebLogicHost dev03
    WebLogicPort 9560
    DebugConfigInfo On
    WLLogFile "bigweb03.log"
    DynamicServerList OFF
    </Location>
    <Location /bigweb04>
    SetHandler weblogic-handler
    Debug "HFC,HTW,HFW"
    WebLogicHost dev04
    WebLogicPort 9570
    DebugConfigInfo On
    WLLogFile "bigweb04.log"
    DynamicServerList OFF
    </Location>

  • Dynamic Image Location?

    Hi Experts
    How can I use Dynamic Image location in my Crystal Reports?
    Thnaks in advance
    AG

    Techy Guy,
    In the properties of your image, you can set the location as a formula. Here, you can set the path by IF-ELSE statements:
    IF {letter.city} IN ["Arnemuiden","Kleverskerke","Middelburg","Middleburg","Nieuw- en Sint Joosland","Sint Laurens"]
    OR LowerCase({letter.city}) LIKE "*joosland"
    THEN ".\Middelburg.png"
    ELSE
        IF {letter.city} IN ["Oost-Souburg","Ritthem","Vlissingen"]
        THEN ".\Vlissingen.png"
        ELSE ".\Middelburg.png"
    In this formula, the logo will be depending on a the city the recipient is in. If the city is not in one of these two options, Middelburg.png will be used as default (to have at least a logo in the letter).
    You could even use a field to define the image name:
    ".\Flags\" + {Customers_.Country} + ".png"
    will point to the directory 'Flags' in the same directory as your report is. Here, it will locate the .png file having the same name as the country field in the customers database (i.e. France.png).

  • Dynamically adding more attributes to cube dimension in SSAS 2008 R2

    I need to dynamically add more attributes to cube dimension in SSAS 2008 R2 because the dimension table the cube is based on is updated using dynamic pivoting and there is need to update the cube dimension attributes as more columns are added to the dimension
    table without making the changes through BIDS. Is there a way to dynamically adding more attributes to cube dimension in SSAS 2008 R2?
    Thanks
    BI Developer

    Definitely. You can use AMO to add dimension attributes on the server. I have definitely done this a few times for different clients of mine. Here is a generic AMO sample:
    http://msftasprodsamples.codeplex.com/wikipage?title=SS2008%21Readme_AMOAdventureWorks&referringTitle=Home
    Notice the parts which add attributes to a dimension.
    http://artisconsulting.com/Blogs/GregGalloway

  • Dynamic Replacement of IView

    Hi all,
    A portal page to integrate several kinds of contents is in general the best way.
    But how can you handle dynamic replacement of an iView of a page (the page contains more than one iView) by another one by using the Portal navigation service of the WebDynpro Runtime? If I navigate to the target application with mode WDPortalNavigationMode.SHOW_INPLACE, the content of the page at all is replaced by the target iView. Is there a possibility to access/replace only the desired iView of the page?

    Hi Purav,
    You can refer to this [link|http://help.sap.com/saphelp_nw70/helpdata/en/5f/cf9d4207e1c86ae10000000a155106/frameset.htm] for dynamic assignment of an iview to a page.
    Do you want to assign a particular iview on the basis of user access?
    If yes you need to personalize iview properties for individual users.
    Hope it helps.
    Thanks,
    Ami
    Points are always welcomed.

  • Dynamic selection of attributes ?

    Experts,
    Could I ask you from your expertise how to model this scenario.
    There is a infobject AccountGrade and there are 6 types of grades that can be assigned to AccountGrade. For the single account more than one  grade can be assigned. Like account ABC --> is assgined grades ( 1, 4). They require a drilldown on the AccountGrade to show what grades are assigned.
    How can this be modeled.
    I am pondering on this idea. Make grade1 -- grade6 as infobject and attributes of AccountGrade infobject. But in this case when we drilldown we gat all the Grades whether they are assigned to AccountGrade or not. That is the reason I was wondering if there is Dynamic selection of attributes.
    What is the better way of modelling this scenario.
    Thanks,

    Kal
    Thanks a lot. Your answer pointed me in the right direction.
    I tried using the sys.path.append('..') & from ..commonFunctions import etc commands but the WLST version 11g uses is based on Python 2.2.1 which doesn't support that syntax, which you obviously know.
    My initial script sets environment variables for the scripts to use, including the script DIR. So as you suggested, I used sys.path.append(os.environ["DOMAIN_SCRIPT_HOME"]), where DOMAIN_SCRIPT_HOME is U:/scriptHome.
    Which now works correctly.
    Thanks again for your reply.

  • Creating VO Dynamically and Copying Attributes

    Hi anyone,
    I've developed a SimpleSearch with LOVs that result in a multi-selection list.
    Once the rows are selected, I want to carry them over and display on the next page.
    I'm trying to keep it very simple, using OAFramework wizards an such but I'm struggling to get this accomplished, mostly due to lack of JAVA experience.
    I was trying to follow the advice from "How to show selected rows only in tablebean" but I don't know how to create a VO dynamically and am new to JAVA (which is why I tried to keep it simple).
    What I need help with desperately is:
    1) The correct syntax/code for creating a simple VO dynamically - examples in the OA Dev guide are hard to follow.
    2) Correct syntax/code for copying attributes using setAttribute().
    3) Does this new VO appear under the BC4J Components directory? If not, how do I attach it to the table's columns?
    4) Anything else I should include or watch out for?
    Thanks very much.

    Hi Ramkumar,
    I did create a VO declaratively before but am stuck on syntax again in the AMImpl.
    I'm getting the error: oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[10006 ].
    Could you look at my code and see what is missing?
    public void SelectItemInstance( )
    CustibSummaryVOImpl vo = getCustibSummaryVO1();
    CustibChangeVOImpl dvo = getCustibChangeVO1();
    Row[] sourceRows = vo.getFilteredRows("SelectFlag", "Y");
    // getFilteredRows returns a zero-length array if it finds no matches.
    if (sourceRows != null && sourceRows.length > 0)
    int numRows = sourceRows.length;
    for (int i = 0; i < numRows; i++)
    // For every row with a selected checkbox, we want call
    // the create( ) and insert()wrapper.
    Row newRow = dvo.createRow();
    newRow.setAttribute("ItemInstance", sourceRows.getAttribute("ItemInstance"));
    newRow.setAttribute("Item",sourceRows[i].getAttribute("Item"));
    newRow.setAttribute("TagNumber",sourceRows[i].getAttribute("TagNumber"));
    newRow.setAttribute("Client",sourceRows[i].getAttribute("Client"));
    newRow.setAttribute("Resp",sourceRows[i].getAttribute("Resp"));
    newRow.setAttribute("Service",sourceRows[i].getAttribute("Service"));
    newRow.setAttribute("Project",sourceRows[i].getAttribute("Project"));
    newRow.setAttribute("TCAAccount",sourceRows[i].getAttribute("TCAAccount"));
    newRow.setAttribute("OrderId",sourceRows[i].getAttribute("OrderId"));
    newRow.setAttribute("PartyId",sourceRows[i].getAttribute("PartyId"));
    newRow.setAttribute("AccountId",sourceRows[i].getAttribute("AccountId"));
    dvo.insertRow(newRow);
    } // end selectItemInstance()
    Thanks ever so much.

Maybe you are looking for