Call onSlecet action
Hi,
Hi have created DDK (DropDownByKey) with data from adaptative RFC (in wdDoInit).
When the data from RFC have more than one registry, I have created action (onSelect) to execute other RFC that populate data in other view.
When the data from RFC is only one registry, this data is selected (by default) in DDK, but the action "onSelect" is not called.
How to call onSelect action of DDK with one registry (selected) in wdDoInit??
Best regards,
Alvaro,
DDK is getting populated with the data from r3, so before it reaches to DDK , we have some mean to know how many registies it has,
1)Take size of the output node(in which there is data),
2)Put one if condition which will check the size,
3)so, if size is 1, then add a blank entry explicitly, otherwise, goto else part and add the entries in normal way.
So even if you have 1 entry in DDK, it wont get selected by default.
hope it helps
regards
Similar Messages
-
How to call an action when the user selects a radiobutton
Hai
PLease help me in providing the information.
In my Project i have two radio buttons as
New
Asssessment
when the user selects new button, i want to automatically call an action in the controller(.jpf file)
Simalarly when he selects the other radio button i need to call a separate action in the controller.
Remember i dont have the submit button.
I want to dynamically call an action when the user selects the radio button.
i dont have any field inthe radio button which actually takes action as an attribute .
please provide me the necessaryHi,
You can use JavaScript to call the action in interest upon the Radio Button Element Being Selected.Should be simple, and if your controller is part of the portlet dont forget to use the jpfScopeId to asscoiate the controller instance with the one in the portlet.
Let me know if you have any further questions. -
Impossible to call a action handler in managed bean
Hello! I’d developed simple jsf-application using JDeveloper 10.1.3.3 that doesn’t use faces-config.xml for a nafigation.
Simple jsf page (page1.jspx) has only one command button:
<af:commandButton text="commandButton 1"
binding="#{backing_page1.commandButton1}"
id="commandButton1"
action="#{backing_page1.commandButton1_action}"
immediate="true"/>
Action is handled programmatically in managed bean Page1.java:
public String commandButton1_action() {
ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext();
ec.redirect("page2.jspx");
return null;
The sample application works fine.
Then I’d tried to use the same jsf app to develop PDK Portlet (Oracle PDK, not jsr-168). I used Portal 10.1.4 and OC4J 10.1.3.3.
The part of provider.xml:
<showPage class="oracle.portal.provider.v2.render.http.ResourceRenderer">
<resourcePath>/faces/page1.jspx</resourcePath>
</showPage>
Action is handled programmatically in managed bean Page1.java:
public String commandButton1_action() {
ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext();
ec.redirect("http://<hostname>:7778/portal/page/portal/SampleGroup/Sample6");
return null;
Unfortunately, the jsf page doesn’t call an action after submit of the button. It’s impossible to call any handler in managed bean. Although, it’s possible in usual jsf app.
I wonder that af:goLink on the page1.jspx works fine:
<af:goLink text="goLink 1" binding="#{backing_page1.goLink1}"
id="goLink1"
destination=" http://<hostname>:7778/portal/page/portal/SampleGroup/Sample6"/>
The ask: why jsf page can’t call an action handler in managed bean in case of a portlet development?
Thank you. AndrewThank you, Frank! I’d expected an answer from you:) I and my colleagues is your big funs:)
I’d understood Portal intercepts any event on a portal page before jsf event.
But, it’s possible to use struts for portlet development. I’d hoped there is the same approach for Faces too (oracle.portal.provider.v2.render.http.FacesRenderer - http://www.oracle.com:80/technology/products/webcenter/files/pdk_downloads/jpdk/oracle/portal/provider/v2/render/http/FacesRenderer.html).
WebCenter is fine product but one is expensive. May be, is there a way to develop jsf portlet outside webcenter?
Thanks, Andrew -
How to call a action on page load in jsf
Hi all,
i am having a JSF page where i want to display the records from the datatable. I have a method in bean which call database and gets the list of records. If i call this method from a link (action on this link) present on this page i can display the records on this page.
But i want to display these records at the time of page load only. How we can do this? How to call a action at the time of page load?
Thanks in adv.If i am calling the database class and get the list in constructor only i am able to display list in the datatable on page load. This works fine. But the requirment is that if there are no records in the list display a error page with message-No records found! . But how i can navigate from the constructor to error page?
Like-
class MyBeam{
MyBean{
private List requestVOList = null;
MyDao dao = new MyDao() //for fetching list from DB
List records = dao.getList() //get list from dao class
if(records==null)
//Navigate to error page. How to do this navigation here?
else
requestVOList = records;
//setter/getters for requestVOList
} -
Problem in calling dynamic actions in BDC
Dear All,
I have created a subroutine which is called when an entry is made in IT0015 for a particular wagetype. So I have used dynamic actions to serve the purpose.
But the entries in IT0015 are made through a BDC, and I am facing in calling dynamic actions through BDC. I have tried the following code:
DATA: opt TYPE ctu_params .
DATA: zmode TYPE c VALUE 'N',
zupd TYPE c VALUE 'A'.
opt-dismode = zmode.
opt-updmode = zupd.
opt-defsize = 'X'.
opt-nobinpt = 'X'.
******While calling transaction in BDC
CALL TRANSACTION 'PA40' USING g_t_bdc
OPTIONS FROM opt
MESSAGES INTO g_t_messtab.
But this does not work, it only calls the first screen of tcode PA30 and only populates the PERNR in that.
Please suggest how do I rectify this problem.
Regards,
KanupriyaHi Marcin,
When I call PA30 without using options i.e.:
CALL TRANSACTION 'PA30' USING BDCDATA MODE 'A' UPDATE 'S'.
then, the BDC works perfectly and calls all the required screens correctly.
But when I use:
CALL TRANSACTION 'PA30' USING bdcdata
OPTIONS FROM opt
MESSAGES INTO messtab.
then, it shows me only the first screen of PA30 and stops there.
Also, if I hard code a break-point in my subroutine and save an entry in PA30, then the subroutine stops at the breakpoint. But if I call PA30 with SHDB transaction, then the code does not stop at subroutine which means the subroutine is not being called with SHDB.
Please suggest why this is occuring.
Regards,
Kanupriya -
How to call a action in javascript
hi..
am a learner..
can anyone guide me how to call a action in Illustrator CS2 using javascript
thanks in advance,
JasyYep!
Maybe they prefer Apple. Maybe most of their buyers comes from that side. Maybe they dont know how to script.
Java would have been to hard for most of us. Javascript is everywhere on the web ... pages.
After so many years, they did not put the effort and money . This scripting idea is still for ' amateur' and to compensate for I dont know what. -
How to call struts action manually in onchange property???
Hello!
action defined in struts-config.xml:
<action path="/editLafLm" className="oracle.adf.controller.struts.actions.DataActionMapping" type="oracle.adf.controller.struts.actions.DataForwardAction" name="DataForm" parameter="/editLafLm.jsp">
<set-property property="modelReference" value="editLafLmUIModel"/>
<forward name="Submit" path="/viewLaf.do"/>
</action>
In my JSP the following form:
<html:form action="/editLafLm.do" target="laf" onsubmit="self.close();">
<input type="hidden" name="<c:out value='${bindings.statetokenid}'/>" value="<c:out value='${bindings.statetoken}'/>"/>
<html:select property="StaId1">
<html:optionsCollection label="prompt" value="index" property="StaId1.displayData"/>
</html:select>
<c:out value="${bindings.editingMode}"/>
<input name="event_Submit" type="submit" value=" OK "/>
</html:form>
When i click choose an entry from the Select list and then click the Submit Button all works well (the action forward goes to viewLaf.do)
But i want to use the "onchange" property on the select list:
<html:select property="StaId1" onchange="submit();">
This is not the same as pressing the Submit button because here the action editLafLm.do is done in a new window (and then i have to click the submit button)...
So can i call the action or the action forward manually in the onchange-property so that there is the same behavour as clicking on the submit button???
Thanks
MarkusMarkus,
You can use the click method on the submit button called "event_Submit". The trick is to access it in the elements array of the form.
So instead of:
<html:select property="StaId1" onchange="submit();">you will have
<html:select property="StaId1" onchange="elements[n].click();">where n is the correct index of the 'event_Submit' element in the array of form elements.
If you need to access the form by name you can always count the form name to be DataForm. So from the document it will be:
document.forms.DataForm.elements[8].click()Charles. -
Does anyone have any experience with using "a call to action" "buy now" button inside a DPS Free Issue within a custom store?
What I have in mind is a button on the pages of the sampler free issue of a magazine, that when touched, triggers a buy now for the full issue in the custom store using iTunes purchase method.
Would appreciate any insight from all.
I was sent the following URL:
http://digitalpublishing.tumblr.com/post/26564811021/cross-publication-linking-bonus-qr-co des
Has some hints as to what may or may not be possible.
Bob Bringhurst - would you care to comment?
Message was edited by: Fraser CrozierYou can surely create a popup on your page :
https://www.youtube.com/watch?v=Ufsz0V_CRLw
Not an exact solution , but you can use a little tweak and use in similarly way.
Thanks,
Sanjit -
Calling an action in extendscript toolkit
Is there a possibility to execute an action by extendscript toolkit?
Name of action is: test.
In the action is defined that all layers must be unlocked + unlock all items + select all + Edit>edit colors>convert to grayscale
I hope someone can give me a hintyou are correct Mark, Javascript could write a VBS file and run it via File.execute(). For simplicity, I wrote the VBS file myself and had JS call it.
the action in this sample is called "selectAll" and lives in the "Set 1" action set.
the vbs file is saved as "Hello Test.vbs", the sample adds a "Hello World" text frame, counts all text frames, then calls the action to select all items.
'Sub testSelectAllAction()
set Iapp = createobject("illustrator.application")
Set Idoc = Iapp.ActiveDocument
set tFrame = Idoc.textframes.add
tFrame.contents = "Hello World"
MsgBox Idoc.TextFrames.Count
Iapp.DoScript "selectAll","Set 1"
Set tFrame = Nothing
Set Idoc = Nothing
Set Iapp = Nothing
'End Sub
call the VBS file from Javascript like this
var file = File('/c/Users/carlos.canto/Documents/Adobe Scripts/Hello Test.vbs');
file.execute(); -
Calling an actionable email from process task OIM11g
Hello Experts,
Is there a way to call an actionable email from process task, meaning can i trigger a workflow on demand from process task.You are correct in the actionable emails, you just need to be creative.
This is my suggestion:
Create a Modify Application/Request request data set for your Active Directory workflow. When your scheduled task runs (assuming it will be only once a day so that you don't have multiple being sent out), generate a new request with code, and in the request dataset, set the value to the 365 days in the future. You can then create an approval policy either using the default manager approval, or custom soa composite. Regardless, you want the approval task to go to the manager. If you have enabled the Actionable Email Notifications (UMS Messaging i believe), then the manager will get an email for the approval and at the bottom it will have two options, APPROVE and REJECT. The manager can click the link and it will process the request based on their response.
If they approve it, the date is updated, and they get extended in AD. If they reject it, the request is rejected and it never gets updated.
-Kevin -
How to call navigation action?
Hello
I'm using JDeveloper 11g 10.1.1.3
I need to call navigation action on double click on the row of table.
I know how to use clientListener and serverListener, but I can't call navigation action (it is described in adfc-config.xml) from serverListener's method.
How could I do that?
AnatoliiAfter some time spended with all this staff, now I have a problem.
I have a page builded on a pageTemplate.
Inside this page I have one region with the bounded task flow "users" with table of users.
I created a button "btEditUser" and set action "toEditUser".
When I click on this button, I go to the nested task flow "editUser" (the page of editing user).
Next, I want to do that action after dblClick of the mouse button on the row of the table.
So, I created a clientListener and serverListener.
After processing some code (looking for selected row) the serverListener method processes next code:
ActionEvent actionEvent = new ActionEvent(btEditUser);
actionEvent.queue();(The button "btEditUser" is binded to the "btEditUser" attribute of my backing bean.)
This code is really processes (I traced that in the debagger), but nothing happens - after all I'm still on the first page.
I compared the logs of both variants of this action and found, that in the case with serverListener after processing this code i have next message:
<PartialPageContextImpl><<init>> PPR is about to render without any targetsWhat could it be?
Anatolii -
I have create Logic App under Azure App Services, I am getting
error while using HTTP connector and calling POST action to a Web API which is deployed as website on Azure.
Following are the screen shots:
Login App Connector Diagram:
hemaMarking as answered since no response on request for more information - assuming that you found what was wrong in the inputs. Let us know if you're still having trouble.
http://twitter.com/joshtwist -
Whatever happened to call frame action
Flash contintues to get worse with every improvement to the
point where it's almost as useless as the online manual whiich
takes half an hour to open and finds trillions of results for every
keyword and none for what I want to know. I spent ages learning
Flash a couple of versions ago and its so different its like a new
program. I really hate it.
So what the bleep happened to the bleeping "call frame"
action. And what do I do now, except throw out this bleeping
program.dkd;alkje;oihp[oihjl,
> Flash contintues to get worse with every
> improvement to the point where it's almost
> as useless as ...
So use an older version, right? Or go outside and play
badminton or
something. ;) Take a jog, maybe; clear your head.
> I spent ages learning Flash a couple of versions
> ago and its so different its like a new program.
> I really hate it.
Honestly, I'm sorry to hear you're so upset by it. In truth,
the
program has become a lot more powerful. It does so much
*more* than it ever
used to, which means it allows *me* to do so much more than I
ever used to.
I can't think of another program that does cartoons, web
stuff, CD-ROM
stuff, titling and overlays for video, rich Internet
applications, games,
and the list goes on. Thanks to Flash, I was able to quit my
day job,
believe it or not, and make even more money working from
home.
> So what the bleep happened to the bleeping "call
> frame" action. And what do I do now, except
> throw out this bleeping program.
Well, you mentioned the documentation that "takes half an
hour to open,"
but all I had to do was hit the F1 key. The Help files opened
in less than
a second. I searched the word "call" and found the "call
function" entry
right away. According to the documentation, this action was
deprecated in
favor of the function statement since Flash 5. You can still
use it, of
course, and the details are right there at your finger tips.
David
stiller (at) quip (dot) net
Dev essays:
http://www.quip.net/blog/
"Luck is the residue of good design." -
Script help - caller's ANI and workflow call control actions
Greetings!
Apologies in advance for the wall of text.
What does work: We have a main script where we do a database lookup on the caller's ANI - specifically, their area code. If there is a match in the DB we queue the call to a regional queue. If there is no match (some block their caller ID, or the ANI is less than 10 digits) we queue the call to a general queue. This works. Every time.
Except ..
So the call comes in, we do a successful lookup and route to the regional queue. The agent handles the call and transfers the caller to another queue. The agent in the second queue discovers the caller needs to go back to the regional queue and we have a call control action configured to handle this. And this is where I'm looking for some help.
And so, the call control action setup does a blind conference back to the main script which does the lookup again based on the original caller's ANI and routes the call to the regional queue. However, everyone can hear everyone and the business unit would prefer the customer not be aware of the agents talking until the agents want to bring the customer into the conversation.
So, if I change the call control action to another option (supervised conference) I lose the ability to route the call based on the original callers ANI. The main script queues the call to the general queue. I've done the reactive debugs and the caller ANI does not populate, the extension of the agent initiating the call control action populates the ANI field. What's more confusing is the caller ANI does populate in the enterprise data on the agent desktop. So the data must be "there" somewhere, I'm not sure how to get it so I can do the DB lookup.
What am I missing?
Thanks in advance for your time and attention!
KeithHello again.
That's an nice way to do this. But I found another way around simple enough for the end customer too. It gives the ability to change things themselves.
a) Under System Parameters > Media Parameters enable the 'User Prompts override System Prompts' parameter
b) Create a subfolder (named el_GR in my case) under Applications > Prompts .../gen/phone
c) Upload your number prompts recorded in the language you want
d) Modify the 'Create Generated Prompt' as shown to the screenshot
e) Now you can hear the string numbers in your language
Took the info from the following posts:
https://supportforums.cisco.com/thread/2080962
https://supportforums.cisco.com/docs/DOC-13933 -
Possibility of calling standard actions from a java program
Hi ,
I am working for a project where customer wants to have option of saving orders as draft only and later convert to order if need be. However since we do not want many drafts to reside on server there is a need to delete these at a specified time. For draft orders I am using order templates since they stay in the database without getting converted to orders. Now I do not know how to go about the deletion part.
i need to write a program that would run on the server and which would fetch the templates (drafts) that have been created till a particular time and call the delete action of the template. Now the question is how do i call these actions from a java program where this java program will have to run on the server end (ie will be a backend process).
Please suggest.
Thanks
Roopalihello roopali,
you can create a separate thread that will run your
code that will check for stale drafts and delete them.
it is just like a session management program but here
we will be looking over the drafts and not the session
objects.
now if you want the invocation of the action from another
program, a socket program would suffice but opening ports
will cause you network connections thru firewall.
if you can make use of HTTP servlet as your service
provider e.g., you can then just pass some action params
to invoke it.
regards
jo
Maybe you are looking for
-
How to test the communication stability and calculate ber using the CVI ?
Our chief engineer gave me a task yeasterday.He asked me to do software testing and calculate bit error rate that we would know our communication stability. However,I have never touched this aspect of knowledge. I have known a bit about CVI and I wan
-
Restoring MAC address to the default
If I do a ifconfig [device] hw ether [mac address], how can I later revert the settings back to the default MAC address without knowing it?
-
4L (LaCie's LightScribe Labeler for Linux) : advice wished!
As K3b Founder Sebastian Trueg said, "We're happy to see that LaCie is developing tools for Linux users, and are pleased to work with them to make it happen. With the LaCie LightScribe Labeler for Linux, [Linux] users now have access to the latest di
-
I can't even find the group messaging option. The only two options I have are subject count and blocked. Can someone please help me, I really find this subject line irritating.
-
Differences between current iPad Air and the one from 2013?
Maybe a dumb question, but were there differences / updates to the iPad Air, not the Air 2? Like, any reason not to get a Refurb iPad Air from '13 over a new iPad Air?