Set region and LOV properties dynamically

Hello,
I am building a page with 2 LOV fields, and I need help for two parts.
My questions are:
: Where do I write code to control if region is showing / hiding?
: How do I change a bind-variable in my SQL-View-Object that is used in a LOV?
Details about my page:
I have a page with 2 regions.
- Region A
...LOV projectID
- Region B
...LOV subTaskID
I have added a basic Controller Object for Region A, and now I am stuck.
I want the page to work as:
1) When the user visits page first time, I want only Region A to show
....(the user must pick a ProjectID)
2) After selecting projectID and clicking a button, then page refreshes, and Region B shows as well.
....(so the user can pick a subTaskID)
The subTasks shown depend on the projectID selected
(I use a bind variable WHERE TABLE.projectID = :1 clause)
I don't know where to put the code to "make region visible / invisible".
And I don't know where to put code to change that bind variable in region B LOV VO
Thanks in advance for your help

Thanks for your help.
I have the system mostly working now.
However, now I'm stuck on the exact code for using my HashMap. I don't know how to take passed-values out of the HashMap and place them into Region A messageLOVInput field1 or messageTextInput field2
//Controller object: Function processRequest
super.processRequest(pageContext, webBean);
if(pageContext.getParameter("ProjectIDParam") != null)
String pID = pageContext.getParameter("ProjectIDParam");
String pNum = pageContext.getParameter("ProjectNumberParam");
// Now I'm stuck here - Can't set default values in messageLOVInput item or messageTextInput item
As review:
Added this code to Application Module Impl file
public void SetSalesLOVBindVariable(String givenProjectID)
..WORKTakeoffAMImpl thisAM =
....(WORKTakeoffAMImpl)this.getApplicationModule();
..OAPlsqlViewObjectImpl theVO =
....(OAPlsqlViewObjectImpl)thisAM.getWORKCustomLOV1();
..theVO.setWhereClauseParams(null);
..theVO.setWhereClauseParam(
....1,new String(givenProjectID));
Then I added this snippet to the processFormRequest for Region A:
String projectID = (String)pageContext.getParameter("ProjectID");
WORKTakeoffAMImpl am =
..(WORKTakeoffAMImpl)pageContext.getApplicationModule(webBean);
am.SetSalesLOVBindVariable(projectID);
HashMap params = new HashMap(2);
params.put("ProjectIDParam",
..(String)pageContext.getParameter("ProjectID"));
params.put("ProjectNumberParam",
..(String)pageContext.getParameter("SelectProjectLOV"));
pageContext.setForwardURLToCurrentPage(
..params,
..true, // retain the AM
..OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
..OAWebBeanConstants.IGNORE_MESSAGES);

Similar Messages

  • How to set checkbox and textbox readonly dynamically.

    Hi,
    I have a requirement where I need to set the checkbox and textbox readonly if the value of a particular column is 'Y'. Can you please help or point to the right help documents.
    Harshad

    Sumit,
    Here transient VO approch is not required.
    Harshad,
    Do the steps Sumit has mentioned, but for step1, you don't need the transient VO, what you need to do is, in your present VO query based on your VO attribute, you need to add one more attribute in the VO query itself, by adding a decode statement like
    Decode(attr,'Y',0,1)
    Just make this attribute of type Boolean in VO wizard. Basically
    0--> true
    1-->false
    when these values are mapped in java.So, here you are saved from creating a new transient VO and adding a row in it.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Getting error while setting SFTP adapter properties dynamically in Biztalk 2013

    Hi ,
    I am getting error while doing setup SFTP adapter in biztalk 2013.
     Error details: Microsoft.BizTalk.Adapter.SftpInvoker.SftpException: Create SFTP facade error.
    Server stack trace: 
       at Microsoft.BizTalk.Adapter.SftpInvoker.SftpInvoker..ctor(String host, Int32 port, String username, String password, String key, String privateKeyPassword, Boolean acceptAnyserverKey, String expectedServerFingerPrint, String proxyhost, Int32 proxyport,
    String proxyuserName, String proxypassword, Int32 proxytype, Int32 encryptionType, Boolean isKeyData)
       at Microsoft.BizTalk.Adapter.Sftp.SftpConnection.OpenUnderlyingConnection(SftpConnectionProperties connectionProperties)
       at Microsoft.BizTalk.Adapters.CommonHelpers.Connection`3.ConnectionPool`3.GetConnection(T1 connectionProperties, TimeSpan timeout)
       at Microsoft.BizTalk.Adapters.CommonHelpers.Connection`3.GetConnection(T connectionProperties, TimeSpan timeout)
       at Microsoft.BizTalk.Adapter.Sftp.SftpOutputChannel.Send(Message message, TimeSpan timeOut)
       at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
       at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
    Exception rethrown at [0]: 
       at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
       at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
       at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
    Exception rethrown at [1]: 
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at System.ServiceModel.Channels.IOutputChannel.EndSend(IAsyncResult result)
       at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.SendCallback(IAsyncResult result) 
     MessageId:  {1059433E-B2D4-4394-8277-C31BDFC00553}
     InstanceID: {BED31F04-E764-446D-A587-65B1F72F7A98}

    Hi Abhay,
    Can you pls explain what are you trying to achieve here? Little bit about your solution/requirement and the way you implementing things?
    As you have mentioned that you are setting the SFTP adapter properties dynamically within your orchestration, can you share the code where you are assigning the properties and constructing the message?
    Rachit

  • How to set default Header and Footer properties for PDF

    Hi,
    Currently we are manually setting the 'PDF and Print Control' properties for each and every dashboard. We understand that print pdf properties are controlled by pdfstyle.fst file under $SAROOTDIR\web\app\res\s_oracle10\b_mozilla_4 but don't have the exact property names to include in header and footer section.
    By default, we want to include company logo, the saved name of the report/dashboard tab and created time in the header. And page# in the footer.
    Where can we set these and what properties names should be used in order for these to be set for every new request/dashboard that is created.
    Thanks and Regards

    Hi,
    I created one request with logo in the header an page in the footer etc. and called StyleSheet. After you can import this formats by each request.
    You can do this in compound layout.
    Regards,
    Stefan

  • Setting the Top and Left properties during runtime, depending on...

    hi guys,
    it's me again with the same question, but same scenario...
    but probably with a bit clearer detail now...
    actually, what i wanna do is that although i have set the top and left properties at design time, as soon as the page opens i wanna be able to do the following:
    if ( userlevel == 1 ) {
    textfield1.setStyle("top: 100...");
    } else if ( userlevel == 2 ) {
    textfield1.setStyle("top: 500...");
    thanks for your time =)

    The style properties CAN be set in the prerender call. Unfortunately, the requirement is that the component (text field in your case) has to have an unset property in the Design->properties window. (Or in the actual jsp code, which should be identical).
    My main issue with this is SJC2's handling of this in the visual window. If i want to have a lot of components that are designed before run-time but placed during run-time, they all are a mess on the screen. I wish there was another property (in the properties window) that would be a checkbox, like "Use static layout". I, probably like others, am using a layout panel (grid) that has several other components in there. I want to be able to move this set of components at run-time, but to do so, I need to unset the layout panel's style. This causes my inside components to shift to the top left of my page, making a mess in the design window.
    If any SJC developers are out there, please help! It would be great to somehow mitigate the static/dynamic properties/display issue. (Like, i want to have buttons with dynamic names (for localization), but basically, i have to have a bunch of blank buttons/text on the screen for all my pages because of the static requirement. At least, MyEclipse and others will put the id value if the text/label value is blank.
    Chris

  • How to get the values from table region and how to set

    Hi,
    I have a requirement as Seeded Page Having One Table Region having around 8 columns, In That Item Description field is there. My Requirement is I need add one more field for that Region and assign the value depending Item Description.
    I will create one new Item in that region and will give name as Item, But how to set the values to Item Depending on Item Description.
    Is it possible to through CO Extension, If yes..Pls help how to get it.
    Thanks in Advance,
    Hanimi

    Hi Hanimi,
    1. You need to extend the VO, add a new Attribute.
    2. In VORowImpl of the extended VO, you can find the getter for your new attribute (example getItem())
    3. In this getter method you can write some code like:
    if("ABC".equals(getItemDescription())
    return "XYZ" ;
    -Prince
    http://princekapoor82.blogspot.com

  • How to set buildID.xml and custom.properties in SDK

    Hello,
    I just completed a new build deployment of SAP ME5.2, because after I deployed the new version, I don't think I have set a
    correct version number.Can you someone give me a sample how to set the buildID.xml and custom.properties? I am a new on the SAP ME5.2
    The Base version is ME_Base_5.2.5.16.5_netweaver-71_Update.zip and
    MEClient_Base_5.2.5.16.5_netweaver-71_Update.zip. the HB customzation
    version is ME_xxxxxx_2.0.0.0.x_netweaver-71.
    Within the sap note 1484551, you mentioned we need change the
    SDKInstallDir/build/buildID.xml file, here is the context of the file:
    buildID.xml -
    <?xml version="1.0" encoding="UTF-8"?>
    <buildID xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <customer>XXXXXX</customer>
    <revision>1.0.0.0</revision>
    <build>1</build>
    </buildID>
    buildID.xml -
    1. how can we change the revision and build?
    There is another file BuildToolDir/build/script/custom.properties, here
    is the file context:
    custom.properties----
    This file contains build properties used to configure the build
    system.
    The name of the software vendor implementing the customizations.
    vendor.name=xxxxxxxxx
    Vendor build identifier. This value is used to uniquely identify
    customizations built by a particular vendor for a particular customer
    and base
    application version.
    This is also used in path locations and in naming certain build
    artifacts, like the custom EJB module and the utility classes archive.
    vendor.id=xxxxxxxxx
    The installation of the J2EE engine installed in the development
    environment.
    ex. C:/usr/sap/CE1\J00
    j2ee.instance.dir=J2EEInstanceDir
    The web context path used to access the main web application. This
    is used by the build to set the
    context-root value in application.xml after an update has been
    imported.
    web.context.path=
    The web context path used to access the production XML interface web
    application. This is used by the build to set the
    context-root value in application.xml after an update has been
    imported.
    xml.context.path=
    The web context path to access resources from the web extension
    application, like images and work instruction HTML files.
    web-ext.context.path=web-ext
    The target database vendor. Valid values are 'oracle' or 'sqlserver'.db.vendor=ORACLE
    The JDBC driver configured for the application server.
    db.drivername=VMJDBC
    JDBC connection propertes for the WIP (Work In Process) database.
    This is the primary application database.
    db.wip.driverclassname=
    db.wip.driver.url=
    db.wip.host=
    db.wip.port=
    db.wip.sid=
    db.wip.user=
    db.wip.password=
    JDBC connection propertes for the ODS (Open Data Store) database.
    This is the offline reporting and archiving database.
    db.ods.driverclassname=
    db.ods.driver.url=
    db.ods.host=
    db.ods.port=
    db.ods.sid=
    db.ods.user=
    db.ods.password=
    Flag indicating whether to add DPMO NC codes to NC idat files when a
    new update is imported. This value is initially
    set by the installer according the the user selection.
    dpmo.nc.codes=
    The default locale used by the production system. The default locale
    is the locale used to display locale
    specific text and messages when the requested locale is not
    available. This property does not need to
    be set if the default locale is english.
    default.locale=en
    Used when running the build from Eclipse to locate the java compiler
    used by the WebLogic EJB compiler.
    jdk.home=C:/Program Files/Java/jdk1.5.0_20
    Compiler debug mode. If set to 'true', debug symbols will be
    compiled into the byte code.
    compile.debug=true
    Keystore alias
    security.alias=xxxxx
    Keystore password
    security.storepass=ChangeIt
    Key password
    security.keypass=ChangeIt
    Keystore type (jks=default,jceks,pkcs12)
    security.storetype=jks
    Optional source control build identifier that is to be displayed with
    standard version information.
    scs.build.ID=
    Optional extended version information to be displayed with standard
    version information.
    ext.info=
    custom.properties----
    2. How can we change this here?
    Regards,
    Leon Lu
    Edited by: Leon Lu on Aug 4, 2011 11:14 AM
    Edited by: Leon Lu on Aug 4, 2011 11:21 AM

    Hi,
    I created one request with logo in the header an page in the footer etc. and called StyleSheet. After you can import this formats by each request.
    You can do this in compound layout.
    Regards,
    Stefan

  • I have CC and while attempting Light Effects, the Layer will appear in the layers panel, but the option bar will not appear and neither will the Properties panel. All my preferences are set correct, and my computer has a compatible video card and RAM. Ple

    I have CC and while attempting Light Effects, the Light Effects Layer will appear in the layers panel, but the option bar will not appear and neither will the Properties panel. All my preferences are set correct, and my computer has a compatible video card and RAM. Please help!
    I tried to delete the layer attempt again. I am in a Photoshop class, but the work is all online, so all my teacher is going to do is send me to this site. I am trying to edit a photo for this class, and without this working, i go to filter>render>light effects. the bar and panel will pop up for about 2 seconds, then disappear. How do i get the options bar and properties panel to display?

    I was about to suggest resetting LE from the Workspace drop-down top right corner, but if you can't see the Options Bar, I guess that is not going to happen.  The normal Tool reset is grey out for LE, so it might be a case of resetting Preferences.
    Reset Preferences
    Windows — Hold down Shift Ctrl Alt immediately after starting Photoshop
    Mac — Hold down Shift Cmd Opt immediately after starting Photoshop

  • When i set page as template, set editable regions and try to view in browser IE 9 a download box com

    When I set page as template, set editable regions and try to view in browser IE 9 a download box comes up and when i click open it just opens the file again in DW.

    Use the Template to spawn a child page.  File > New > Page from Template...
    Save the child page as some_file.html and then preview that in your browsers.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • [svn:osmf:] 14871: Fixing anchoring 'right' and 'bottom' properties not being applied on items that don't have a width/ height and position set.

    Revision: 14871
    Revision: 14871
    Author:   [email protected]
    Date:     2010-03-19 01:05:54 -0700 (Fri, 19 Mar 2010)
    Log Message:
    Fixing anchoring 'right' and 'bottom' properties not being applied on items that don't have a width/height and position set.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/layout/LayoutRenderer.as

    If you're just doing it in a back and forth or spiral fashion, you don't need to check whether a square's been filled in. You just go from a start point to an end point. Those points and the squares in between are determined by simple arithmetic.
    If you're doing it randomly, I wouldn't use the GUI elements themselves. I'd have, for example, and array of booleans that tells whether each square has been filled in.

  • When attempting to format region and set date and time the busy icon appears and seems to stay like this?

    when attempting to format region and set date and time the busy icon appears and seems to stay like this?

    Click on DU's Partition tab when you have the raw drive name selected, then set it to one partition, Mac OS Extended. If it crashes or freezes, it is finding a bad block and can't write.
    In any event, if you want to use the drive, and have not zeroed it before, you should now.
    Click on Erase -> Security Options -> Zero out data. Still with the full drive selected and not any partition(s).
    Then repartition the drive if needed.
    Boot from the DVD if that doesn't work. And no, TTPro has never mapped out bad blocks let alone create partitions.
    Disk Utility in 10.4.8 is quite good, excellent in fact. No need for an alternative.
    Your eMac drive may need to touch of Disk Utility itself. FSCK from the command line, clear the caches with Applejack along with check for corrupt plists. Between Disk Utilty and Applejack (free/shareware) never had to use TechTool Pro - or at least there weren't any errors after those two got done. But if you want a good 3rd party, pick up Disk Warrior 4.

  • Upon Loading of page, Setting the Top and Left properties of a TextField

    Hello again,
    I would just like to ask for suggestions on how to successfully set the top and left properties of a Textfield as soon as the page is loaded.
    Thru Giri's help, I was able to do this with the push of a button. What I would need to do right now is to set it as soon as the page is loaded.
    Thanks!

    Hi Jim,
    It is not clear what you are trying to do here. If you want to set the top and left properties of a component when the page is loaded all you have to do is set it at design time itself. If the properties need to be set the second time the page loads then the code can be used in the event handler which submits the page.
    It would help if you could explain the use case for setting the properties of a component when the page is loaded.
    Cheers
    Giri

  • Dynamic regions and taskflow in an adf library 11g

    Hi,
    I am facing a small issue. I have a an adf view project that uses an ADF Library containing a task flow. This view project has the following.
    1. A main page (with a splitter panel) that has two buttons (showpage1 and showpage2 as dynamic region links) which display a message from either of these pages in a dynamic region in the page. These two pages have their separate bounded task flows.
    This works great, i can click on either of these buttons and the dynamic region displays the default views of these task flows one at a time.
    2. When i add yet another button for a bounded task flow that comes from the above-mentioned adf library things break. Now i am able to only display the view from the 3rd taskflow by clicking the corresponding 3rd button. Clicking on showpage1 and showpage2 buttons do not show corresponding taskflows/views.
    I can send you my sample project right away if you wish.
    Thanks,
    The only difference seems to be that the following info. is added in web.xml when I start using the adf library's task flow.
    <filter>
    <filter-name>ADFLibraryFilter</filter-name>
    <filter-class>oracle.adf.library.webapp.LibraryFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>ADFLibraryFilter</filter-name>
    <url-pattern>/*</url-pattern>
    <servlet>
    <servlet-name>adflibResources</servlet-name>
    <servlet-class>oracle.adf.library.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>adflibResources</servlet-name>
    <url-pattern>/adflib/*</url-pattern>
    </servlet-mapping>
    Edited by: user11219846 on Aug 5, 2009 4:10 PM

    Hi Can you send across your sample app where you are using the library and the ADF library as well to [email protected]? I'll take a look and letyou know. Thanks.
    Edited by: Vijay Allen Raj on Sep 7, 2009 12:55 PM

  • How to set region relationship to default? And get it to disappear!

    How do I get a region relationship to disappear in CCM9?   I just can't get it to go away even with it set to systen default for Audio Codec prefernce list, Maximum audio bit rate, and Maximum session bit rate calls.

    You have to set all of the dropdowns to Use System Default. If you did that and it still shows, then you're hitting the same thing I ran into this in 9.0(1) but didn't have time to open a TAC case over it. Likely a bug but five minutes of poking through the bug toolkit didn't reveal an obvious match.
    Anyways, delete the region and create a new one. You'll be good as long as you don't set it to a non-default value.
    Please remember to rate helpful responses and identify helpful or correct answers.

  • InContext editing error: This region contains content with dynamic behavior added..

    We just set up a web site with InContext editing following the procedures in Business Catalyst documentation to do that. But now when we go to the administration section of the site, and turn on InContext editing, it won't let us update the text. We receive an error message:
    "This region contains content with dynamic behavior added..."
    Does anyone know what causes this problem, and how to fix it?

    Hi,
    InContext Editable (ICE) regions can only contains static areas like text and static  assets, it cannot wrap around javascript – populated areas or dynamic content like slideshows. (most likely causing the error)
    ICE can edit only static page content such as regular HTML content. It cannot edit any element that is dynamically updated for example a div (or another element) which is manipulated (created or its contents are modified) by JS– populated areas or dynamic content like slideshows. It cannot edit menus, content holders or content outputted by system modules or tags either.
    By default, on a page that has no ICE editable regions defined the editor attempts to find any regions you might want to edit and if possible make them editable. If it does not find the correct regions you want to edit you will need to explicitly define some editable regions.
    Refer to this article on Defining InContext Editing editable regions - http://kb.worldsecuresystems.com/838/cpsid_83855.html?bc-partner
    Hope this helps!
    -Sidney

Maybe you are looking for

  • Exchange Autodiscover in a domain trust environment

    I am preparing an Exchange and AD migration / merge between two AD Domains and Exchange Org due to a recent merger / acquisition of another company. I am in the middle of an Exchange 2007 to Exchange 2013 migration whcih may complicate things: Let me

  • ACS PASSED AUTHENTICATION LOG

    Hi I am trying to export my passed/failed authentication log to MS-EXCEL . Since my log in acs is huge MS-EXCEL has a restriction on the number of rows and columns. How do i delete the old logs and have the logs between specified dates. Or is there a

  • Problem with HR User Responsibilites/Privillages

    Hi, Im working on HR Analytics 7.9.6 integrated with EBS 12.0.6. I have been working as Administrator which was assigned in EBS to match a Administration Group in the Rpd. Once I finished working as admin i had the Administration repsonsibility remov

  • Hi some conceptual questions

    hi all i am new in this forum and a pl/sql developer and some knowledges of storage structure of oracle.Now i want to learn dba portion including backup etc.. my questions are-- 1.what is nomount and mount state of a database. 2.what is rman why we u

  • Generate 1 microsec TTL pulse

    hi, i wanted a particular DIO pin say DIO1 to be in high state for i micro sec.how should i implement this?i am using Labview 6i on win98,PCI-6024