Dynamically showing button
I would like a button to display ONLY when a link to a URL
exists in the database.
I could add an extra field in the database with the URL to
the button's image, but would prefer to do it dynamically.
I am sure its something like, if .... but not sure how
exactly to set it up.
C
How about this, this is in ASP though:
<%
if (rsName.Fields.Item("Link") <> "") then
<show button>
else
<do something else>
end if
%>
Similar Messages
-
Dynamic selection button on report RCATS_APPROVE_ACTIVITIES
Hi,
I made a copy of the program RCATS_APPROVE_ACTIVITIES with all its components, and the dynamic selection button on the selection screen doesn't work like the standard.
In my researches, I found that the dynamic selection that the standard program uses is associated to the logical database 'PNP', but the logical database that the programs uses is 'PNPCE', and that's the dynamic selection that my program copy is showing.
Does any one have an idea how this happens and how to solve?
Thanks.
SóniaHi Sonia,
You program is using dynamic selection screen which actually is the selection screen of your logical database. You can see that thru tcode SE36-> PNP->click on selection check box. You will see the code of selection screen. This selection screen is called in standard program and since you have copied the standard program, your program is also showing the same selection screen. LDB can be called in standard program thru Function module LDB_PROCESS.
In case you want to remove some of the selection screen fields of LDB from your report, you can do so in the
'at selection-screen output' event by looping at the selection screen variables and stopping unwanted fields from display.
You need to check the group name and the field name of the fields you want to disable and use it in the below code accordingly.
e.g.
at selection-screen output.
loop at screen.
if screen-group2 = 'DBS'.
screen-active = 0.
screen-invisible = 1.
endif.
modify screen.
endloop.
Cheers,
Vikram
Please reward for the helpful replies!! -
Hello:
The dynamic LOV button (app.ui.lovButtons=true) in Registry.dat setup is showing the LOV button in NORMAT Mode ONLY.
This does NOT get displayed when the form is in QUERY mode. Is there a way to display the LOV buttons irrespective of Query/Normal Mode?
Thanks
BalaAnyone faced this issue before?
Please help
Edited by: kart on Jun 16, 2010 3:58 PM
Edited by: kart on Jun 17, 2010 12:30 PM -
Dynamic radio button and group
Hi, we have create dynamic radio button and group on “application creation complete” event , but which I am try to get number of radio button its show zero, see below code
import flash.utils.setTimeout;
import mx.controls.Alert;
import mx.events.FlexEvent;
import spark.components.RadioButton;
import spark.components.RadioButtonGroup;
private var rbg:RadioButtonGroup;
private var rb1:RadioButton;
private var rb2:RadioButton;
private var dcount:int = 0;
protected function application1_creationCompleteHandler(event:FlexEvent):void
// TODO Auto-generated method stub
// TODO Auto-generated method stub
rb1 = new RadioButton();
rb2 = new RadioButton();
rbg = new RadioButtonGroup();
rb1.label = "Radio1";
rb2.label = "Radio2";
rb1.group = rbg;
rb2.group = rbg;
vbox1.addChild(rb1);
vbox1.addChild(rb2);
checkRadioButton ();
protected function checkRadioButton ():void
Alert.show("In checkRadioButton function : " + rb1.group.numRadioButtons.toString());
If I put some Time interval to call checkRadioButton function its working fine,
//checkRadioButton ();
setTimeout(checkRadioButton,1000);
but this is not best practice.
why this happen ….can anybody clear this or any other way to do this.
Thanks in advance@manjeet.patel,
Just write the below line of code
vbox1.validateNow();
You need not use setTimeout() function
vbox1.addChild(rb1);
vbox1.addChild(rb2);
vbox1.validateNow();
Thanks,
Bhasker -
I can't sync music already on my computer to my ipod touch; the ipod shows up under Devices in itunes but does not show buttons (Summary etc.) when I click on it. I've read through all the Help tutorials but none of them say what to do if the sync options don't pop up when you highlight the device. I've already spent way too much time trying to figure this out and it's driving me crazy! Thanks for any help you can offer.
This is correct. It will not show in finder. It is not an external storage device.
The music sync is one way - computer to ipod. The only exception is itunes purchases. Open itunes connect ipod, do not sync, click File>Transfer Purchases -
Dynamically show/hide pages in a workset for special users at runtime
Hi all,
I want to create a workset that contains pages for different countries. The portal users should only be able to see the countries where they do business. I also would like masterdata from R/3 to drive the display of content on the portal.
- Is there a way how I could dynamically show/hide certain pages of the workset for the specific users?
- Would this showing/hiding of pages affect the workset for all users or only the instance for the specific user?
- Would there be a difference when I want to dynamically show/hide iviews in a page instead of showing/hiding pages in a workset?
Thanks a lot in advance.Hi Timo,
Check out the article located at:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/portal_content/filtering role and workset content.htm
It talks to exactly what you're trying to do. I'd imagine you could extend this simplistic example to have the service pull the users country from his/her master record in R/3 and set their filtering expression accordingly.
Hope this helps,
Marty -
Dynamic Submit Button- Required Fields
I needed a dynamic submit button that would cc a field from the form. I found the following script and it works great, but it doesn't give an error message if someone didn't fill in a required field like a regular submit button would. Is it possible to use the script below but to check for required fields?
// This is the form return e-mail. Its hardcoded
// so that the form is always returned to the same address
// Change address on your form
var cToAddr = "[email protected]";
// First, get the client CC e-mail address
var cCCAddr = RegionalDirector;
// Set the subject and body text for the e-mail message
var cSubLine = "909 Camp Visitation Report-" + xfa.resolveNode("#subform[0].#subform[7].Country"); var cBody = "Thank you for submitting your 909 report.\n" + "Save a copy for your records";
// Send the form data as an FDF attachment on an e-mail
event.target.mailDoc({
bUI: true,
cTo: cToAddr,
cCc: cCCAddr,
cSubject: cSubLine,
cMsg: cBodyHi,
stefan's example uses a method that seems a bit clumsy or maybe that was the only way it could be done in 2006. Assuming your email button is called EmailSubmitButton yo can use;
EmailSubmitButton.event__click.submit.target = emailtarget;
where emailtarget is a string in this format
mailto:emailaddress?cc=emailaddress?bcc=emailaddress?subjext=text?body=text
The bold parts you can't change but you can leave out, except for the mailto and the to email address that follows it.
Regards
Bruce -
Where is the Show button in iTunes 12?
I have iTunes 12.1 running on my iMac (OS 10.9.5) and on my MacBook Pro (OS 10.9.5). They are both logged in to the same Apple ID. They both have Home Sharing turned on. They can see each other's music libraries, but there is no Show button and so no way to Import from one to the other.
I spent an hour with Apple support and we cannot see what's wrong.
My only thought is that my iCloud log in is to a different Apple ID; it should not matter but maybe it does.
I would like to delete and reinstall iTunes, so I reinstalled OSX using cmd-R on restart; but I don't think that reinstalled iTunes 12. I'm not sure anyway.
help?
Linda JohnWelcome to the Apple Community Gophergirl22.
Are you sure you have set up home sharing and not sharing. -
Why I need to click it twice show buttons?
Hi,
First I don't see any buttons (Buttons -This is a movie clip) on Stage. When I click on Show button using the following code, I can see my Buttons. But first I need to click twice to see the Buttons. While second time there is no problem. How to solve the problem?
this.Buttons.visible = false;
import fl.controls.Button;
var myButton:Button = new Button();
myButton.label = "Show Menu";
myButton.name = "btn1";
myButton.toggle = true;
myButton.move(55, 95);
addChild(myButton);
myButton.addEventListener(Event.CHANGE, changeHandler);
function changeHandler (event:Event):void {
if (event.currentTarget.selected == false) {
Buttons.visible = true;
myButton.label = "Hide Menu";
} else {
Buttons.visible = false;
myButton.label = "Show Menu";
Thanks and regards,use:
function changeHandler (event:Event):void {
if (event.currentTarget.selected) {
Buttons.visible = true;
myButton.label = "Hide Menu";
} else {
Buttons.visible = false;
myButton.label = "Show Menu"; -
Trying to show button images in a toolbar
Hello, I'm trying to show buttons in a toolbar with the images contained in jlfgr-1_0.jar. I'm using as a base code the ToolBarDemo2 example from the Swing tutorial, but with the difference that my executable class ("D", for instance) is in a package ("package a.b.c;")
The .jar file is in a "jars" directory placed in "a\b\c\jars"
I try to execute the code with:
java -cp .;a/b/c/jars/jlfgr-1_0.jar a.b.c.D
and with
java -cp .;jars/jlfgr-1_0.jar a.b.c.D
but the images are not shown. I have errors like "Resource not found: toolbarButtonsGraphics/navigation/Up24.gif". Where I'm wrong?
Thanks you in advance.
Jorge.Select that folder in LR and run the search again. It should be restricted to the folder. I asume the original search was doen in All Photographs.
Don
Don Ricklin, MacBook 1.83Ghz Duo 2 Core running 10.4.9 & Win XP, Pentax *ist D
http://donricklin.blogspot.com/ -
Dynamic Selection Button issue
Hi All,
I am working on a ZReport which has a requirement to be added with a dynamic selection button. This Button should be same as AR01 transaction.
I have added the ADA logical database and also the NODES inside the program. I got the button on selection screen of ZReport.
But its not behaving as required. Suppose I am selecting the Time-Dependent Data -> Tax Jurisdiction as 'NZ'. Then the report has to selection only for NZ(Newz ealand). But in my report it is not even pickingup this value (NZ) and it returns for all the countries.
I tried to debug but couldnt find anything. How can I track this field?
Can you please tell me how can I fix this issue.
Thanks.don't forget to put a GET event for each node used in dynamic selections
and inside this event, put statement: CHECK SELECT-OPTIONS. -
Hi Everyone
I know how to setup a Dynamic Email button which will format the Body of the Email using \n and some of the others like \t and \r but are there others? Is there a way to control the font size, color, or alignment like centering? Thank you in advance.I tried that but it is interesting that if I create a new message in outlook it is in a format of
html and if I use the email button in the pdf it creates it in plain text which just displays the text in this format.
<html>/n/n/n<body>/n <p>/n <center>Center</center>/n </p>/n </body>/n </html>/n
Any suggestions?
the control used to open outlook and attach is
this.mailDoc({bUI: true, cTo: cToAddr, cCc: cCCAddr,
cSubject: cSubLine, cMsg: cBody}); -
Dynamic link button from speed grade to premiere is grey.
Dynamic Link button from Speedgrade to Premier is grey. No problems Linking from Premier to SG, but no way to send the project back to Premier. The project is in Apple ProRes 4444. I have a Mac Pro last generation. Thanks for an urgent help!
Well... I have done everything you advice first SG, but it didn't work, so I have cleaned the whole CC, erasing any possible trace of it from my computer, then I have gone through the Cleaner Tool and reinstalled brand new the whole thing.
My builds now:
PrPro: 8.2.0(65)
SpeedGrade: 8.2x51
Exactly the same. Obviously, troubleshooting.
For what I understand, according to your comment, is that I ave to match the builds, which would mean either to low down PP to 51 or up SG to 65... Is ti that or am I getting crazy?
But how the hell to do it?
I have a 2 hours film with a 1 month grading work on it stuck in SG... Aaaaahhhhh!
(Oh, the good old times of FCP 7 and Color... NEVER A PROBLEM)
Best,
Luis -
Dynamic radio button in web dynpro abao
Hi expert,
I want to dynamic radio button by web dynpro abap .
Kindly give me a soulation ASAP.
Thanks and regard's
Vikashhi,
method wddomodifyview .
if first_time eq abap_true.
data: LR_CONTAINER type ref to CL_WD_UIELEMENT_CONTAINER,
LR_RADIOBUTTON1 type ref to CL_WD_RADIOBUTTON,
LR_RADIOBUTTON2 type ref to CL_WD_RADIOBUTTON,
LR_FLOW_DATA type ref to CL_WD_FLOW_DATA.
" bind text property will give TEXT that appears next to Radio Button
CALL METHOD cl_wd_radiobutton=>new_radiobutton
EXPORTING
bind_selected_key = '01'
BIND_TEXT = 'saurav'
receiving
control = LR_RADIOBUTTON1.
" bind text property will give TEXT that appears next to Radio Button
CALL METHOD cl_wd_radiobutton=>new_radiobutton
EXPORTING
bind_selected_key = '02'
BIND_TEXT = 'mago'
receiving
control = LR_RADIOBUTTON2.
LR_FLOW_DATA = CL_WD_FLOW_DATA=>NEW_FLOW_DATA( element = LR_RADIOBUTTON1 ).
LR_FLOW_DATA = CL_WD_FLOW_DATA=>NEW_FLOW_DATA( element = LR_RADIOBUTTON2 ).
LR_CONTAINER ?= view->GET_ELEMENT( 'ROOTUIELEMENTCONTAINER' ).
LR_CONTAINER->ADD_CHILD( LR_RADIOBUTTON1 ).
LR_CONTAINER->ADD_CHILD( LR_RADIOBUTTON2 ).
endif.
endmethod.
Thanx. -
Parts HTML form Expand All(Show button) option needs to customize.
Hi,
I am new to OAF.
I have a requirement lin Oracle Sparse Management -> Parts HTML Request Form needs to Personalize/Customize for a business requirement.
I have some qusetions like
1. Can we customize or personalize the Show All Details or HideAll Details options in OA Forms ?
2. If Yes, i have similar requirement like that,
The personalization aim is show all details should be expanded by default.
3. If No please provide why it can not be achevable.
Here is business reuirement in parts Html, there are two regions in page 1. Header 2. Lines (Under Lines there are two table 1 is for Item information search and 2nd is for order details based on the item. This order details are hided under the Item information table one of the field button Show(which is like Expand All with symbol +))
Page works like below.
1. Header level validations are there for some fields like Resource, Need By Date.
2. Once Valid from header can be entered the Item information search in Lines details Region, in the same table there is an option with + symbol (Show), which is like Expand All.
will validate the item details and displays Order details respective to item. These results are hide under + Show button.
If i want see the order details then i need to perform click action on the +Show button. (Requirement is this should be done automatically once i have entered the item in Line Details Region and needs to display the results).
Please provide your seggestions to acheive this.
Thanks,
Narayana SwamyFor this i have tried below steps to extend related VO of SHow button field.
Below steps i have perforemed.
1) Identified the right VO from about this page.
ReqLineVO
2) Exported the related standard VO to JDEV from Server.
ReqLineVOImpl.java, ReqLineVORowImpl.java, ReqHeaderVO, RequirementAM, RequirementAMImpl.java
3) Created a new VO which extends the standard VO and modified Showhide flag to ‘Y’
HolxReqLineVO, HolxReqLineVOImpl.java, HolxReqLineVORowImpl.java
4) Performed substitutions in Jdeveloper
Project Properties -> Business Components -> substitutions
5) Have created custom folder structure in server and moved custom VO files to server.
\holx\oracle\apps\csp\portal\requirement\server\HolxReqLineVO.xml
6) Performed JPX import
1. Go to E:\jdev10g\jdevbin\oaext\bin
2. Executed the below command
jpximport E:\jdev10g\jdevbin\jdev\myprojects\OAProject4.jpx -username apps -password th1rdapps -dbconnection "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)
(HOST=mycomapny.com)(PORT=1526))(CONNECT_DATA=(SID=TESTDB)))"
7) After this bounced apache.
8) While trying to open the parts html form, below exception is occurring.
Error Page
Exception Details.
oracle.apps.fnd.framework.OAException: Could not load application module 'oracle.apps.csp.portal.requirement.server.RequirementAM'.
at oracle.apps.fnd.framework.webui.OAJSPApplicationRegistry.registerApplicationModule(OAJSPApplicationRegistry.java:279)
at oracle.apps.fnd.framework.webui.OAJSPApplicationRegistry.registerApplicationModule(OAJSPApplicationRegistry.java:78)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1306)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:549)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:437)
at OA.jspService(_OA.java:212)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:473)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:280)
at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:68)
at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:214)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:219)
at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
at RF.jspService(_RF.java:225)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:473)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:662)
## Detail 0 ##
JBO-30003: The application pool (holdb01.dataintensity.comHOLDEV1524oracle.apps.csp.portal.requirement.server.RequirementAM) failed to checkout an application module due to the following exception:
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.InvalidOperException, msg=JBO-26036: Recursive substituion for holx.oracle.apps.csp.portal.requirement.server.HolxReqLineVO.
## Detail 0 ##
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.InvalidOperException, msg=JBO-26036: Recursive substituion for holx.oracle.apps.csp.portal.requirement.server.HolxReqLineVO.
## Detail 0 ##
oracle.jbo.InvalidOperException: JBO-26036: Recursive substituion for holx.oracle.apps.csp.portal.requirement.server.HolxReqLineVO.
JBO-30003: The application pool (holdb01.dataintensity.comHOLDEV1524oracle.apps.csp.portal.requirement.server.RequirementAM) failed to checkout an application module due to the following exception:
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.InvalidOperException, msg=JBO-26036: Recursive substituion for holx.oracle.apps.csp.portal.requirement.server.HolxReqLineVO.
## Detail 0 ##
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.InvalidOperException, msg=JBO-26036: Recursive substituion for holx.oracle.apps.csp.portal.requirement.server.HolxReqLineVO.
## Detail 0 ##
oracle.jbo.InvalidOperException: JBO-26036: Recursive substituion for holx.oracle.apps.csp.portal.requirement.server.HolxReqLineVO.
Maybe you are looking for
-
Guide Display - Not Very Clear
Why does Verizon's Guide display its main show title & all its contents on the third row down & not the top? Press Guide. The channel you wish to choose is the THIRD row down. Shouldn't it be the TOP? I say this because when you're scanning the chan
-
It happens too much. I have 8gbs of Kingstom RAM installed. Is there a problem with Mavericks and Kingstom RAM? This is the report i get after restarting: Anonymous UUID: 0BAE1215-28B3-3F86-AA86-D3E08FC8B1AC Mon Nov 18 00:23:03 2013 panic(cpu 0
-
Well no one out there. I hate to have to take this 13" Mac Book Pro back , get my money back . Seems I'll have to. This is about the third time I have asked for help from Mac (APPLE) and I never hear back from them..
-
How about a major update, and free itunes for us??
come on steve,, give us something???
-
When I double click my IPAD screen there are apps at the bottom. How can I remove them?
When I double click my IPAD screen I have apps at the bottom how can I remove them?