Static variables in the Page of the OFA
HelloWe have a requirement to show the popup message when changes are made in the page of the OFA. We use the static variable in the OPS page to store the initial values of some fields and whenever the popup needs to be shown, it compares the value of the static variable for the current value. If they are different then we are the message. It works perfectly fine when the page is accessed by the single user. But when several users access a single screen, it shows the message to a user even if the values are not changed by this user, but the other user has changed. My question is-
1. do we need to use variables of session always for users multiple scenarios?
2. How does the static variable in java? It is not unique to the session? If so, above the question shouldn't come.
3. how to solve the problem above?
Pointers on this would be a great help.
Thank you
Shree
I did not understand the part same page can be accessed by different users. In any OA framework Page, the same page is accessible by several users. If you think abt the same data updated at the same time, then search functionality of Version number of the object in the context of OSTEOARTHRITIS.
All instances of the VO are unique for each session. So no need to worry about this side here.
Concerning
Sumit
Tags: Oracle Applications
Similar Questions
-
Display static Variable for the title.
Hello
I have defined a static variable Bank with the value of "Bank of India" in 10g and must mention that in the title. How to set the variable in the title. valueOf ('Bank'), @{biserver.variables ['bank']}, @{'Bank'} do not work, then how?
Thank you
Anitha.Bcheck with this one - @{biServer.variables [' name ']}
the variable name must be in a single quote.Pls mark if this can help...
-
with respect to an application to turn with the help of a global static variable
Hello. I've read a few articles on JavaFX competition, and as a beginner, so I have to practice on this subject. Now, I'm trying to implement a turn-based application which can be played between 3 to 6 players. Furthermore, I use a scene from a .fxml file and I need to update it properly depends on certain calculations of each thread (in other word players). My main problem is, I don't want to use a while loop that checks the status of similar game;
While (GameState! = State.GAME_OVER) {}
currentPlayer = GameBoard.getNextPlayer ();
perform certain actions, calculations, etc.
}
So, I want to use threads to work instead while loop. I guess only with the help of the Service used to iterate class and assign the next player will be adapted to instead of using the while loop and the tasks for the calculation of each player, or waiting for a few responses of human players on the UI account, however, I am faced with two problems.
- It has a global static variable (like the GameState which is an Enumarator) determines the State of the game, so it should be updated and must be verified by each round. Is it possible to do this?
- How can I get rid off this while loop?
I would like for each answer. Thanks anyway.
It shouldn't make too much difference. The basic idea is that you have a model class that represents your state of the game (the class of game in example jsmith). When a player makes a move, you update the game state. Because this will result in changes to the user interface, this update must be performed on the Thread of the FX Application.
If the player makes the passage is a human player, the move would be done by a user action (mouse click or press button, etc.); This will be handled on the FX Application thread in any case.
When the State of the game changes so it is in an "artificial" player's turn to move, have the object representing the artificial player calculate his next move and then update the game state. Since it is a response to the evolution of the game state (it is the artificial player's turn), it will also be on the Thread of the FX Application.
The only (slight) complexity comes if the calculation of displacement for the artificial player takes a long time. You don't want to perform this calculation of long duration on the Thread of the FX Application. To handle this, the cleaner is to start a task that computes the desired pass and then updates the status of the game when travel is ready. So, something like this:
GameState game = ... ; // UI is bound to the game state. ExecutorService executorService = ... ; // ... final Player currentPlayer = game.getCurrentPlayer() ; final Task
calculateMoveTask = new Task () { @Override public Move call() { Move move = // compute next move... return move ; } }; calculateMoveTask.setOnSucceeded(new EventHandler () { @Override public void handle(WorkerStateEvent event) { gameState.makeMove(currentPlayer, calculateMoveTask.getValue()); } }); executorService.submit(calculateMoveTask); If you make a thread more than that, you're probably do badly... Also, there should be no need anything it either, will be held in a "global" static variable (the idea above is the only structural change you the example posted by jsmith).
-
Using variables in the queries and dashboards
Hi Freinz,
I am using a prompt and dashboard based on the selection in the guests shud of data filled.
I used the query variable line dashboard option and creates reference static variables of the administration.
I created the 'green' variable and in the applications for the "VERTICAL" column, I put the variable as being of 'green '.
It is the same value as I gave in the prompt variable set dashboard-> variable query.
Guyz pls help me...
Pls let me know the steps to follow.
How shud I? the values in the row of dashboard applications /
Thank you
VeenaIn the report, create a filter of coming and going VERTICAL. In the filter creation, click on Add - Variable - presentation, now in the Expr variable name of the variable, the default value indicates no value for this PORTRAIT.
Now, put your prompt and the dashboard report, test.
-
How to bind static variables?
In ActionScript, I tried binds a variable to one static variable to another class:
var watcher: ChangeWatcher = BindingUtils.bindProperty (Thi, "dataProvider", StaticClass, "staticVariable");
The changewatcher fires when loading, but it fires at all during execution. And Yes, the static variable has the [Bindable] tag next to it. I encountered this problem a few times before, and I decided to just go around it. However, for the sake of clean and efficient code, any help on this would be greatly appreciated.
See the comments at the bottom of this LiveDocs page:
http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=databinding_2.html
If this post answers your question or assistance, please mark it as such.
-
Static variables in OAFramework
Hello
I'm stuck here seriously using static variables in my page. I have developed a few pages in OAFramework. I used more than 200 static variables in all pages. All is well for a single user. If more than 1 user using the page, the values are overlap between users. Now, I realized that its due to declare the values as static. How can I solve this problem?
I would appreciate if someone can me advice on that.
Jim.First solution to this problem is to convert all static variables to instance variables.
However please provide details of the issue and why it is necessary to make them static.Abdul Wahid
-
How can we dynamically open an external URl of the page of the OFA
Hi team
Hello, how can we dynamically open an external URl of the page of the OFA
For example: my datas table DB are like that
When I don't ask used no 1 of my Search PageEmployee no Url 1 https://www.google.co.in/ 2 https://www.facebook.com/ 3 https://www.yahoomail.com/
In the result of my search page table, I get
1 https://www.google.co.in/
NOTE: Here item URL is type bean link when I click on the link it should open google page in separate browser
At the same time, when I question used no 2 which is shown below, then it should open facebook page in a separate browser.
2 https://www.facebook.com/
When I try this
Destination URI - https://www.google.co.in/
It opens no separate browser, but for employees don't I question as open 1,2,3 only the same page of google in the separate browser for everyone, it is static, I want to dynamically open the URL depend on my employee to query no. If I query emp No 2 it must open facebook page this is my requirement. How can I pass the URL as a parameter?
Please share your knowledge and experience and your advice my on this issue
How can I complete my task
I hope that my requirement is clear, if not please let me know I explained more anyway :)
Is it Possible to achieve this OAF Page
Thank you for all your suggestions on this
Thanks in advance
A.T. :).findIndexedChildRecursive ("ResultTable");
Here, you should have the exact itrm link id and not the region containing the lino
Would it be more likely ImagePath I think ResultTable corresponds to the id of the table of search results
-
HTTPS Post does not work in the OFA Page
Hi all
I created a Page of the OFA, by clicking on button I do next.
//--------------------------------------------------------
private static String contactService(String xmlInputString) throws Exception {}
String outputStr = null;
OutputStream outputStream = null;
try {}
URL url = new URL ("https://wwwcie.ups.com/ups.app/xml/ShipConfirm");
HttpURLConnection connection = () (HttpURLConnection) url.openConnection;
System.out.println ("Customer connection established with" + url.toString ());
Configure the HTTP POST parameters
connection.setDoOutput (true);
connection.setDoInput (true);
connection.setUseCaches (false);
outputStream = connection.getOutputStream ();
outputStream.write (xmlInputString.getBytes ());
outputStream.flush ();
outputStream.close ();
System.out.println ("Http status =" + connection.getResponseCode () + "" + connection.getResponseMessage ());
outputStr = readURLConnection (connection);
System.out.println ("Response..." + outputStr);
} catch (Exception e) {}
System.out.println ("error sending data to the server..." + e.getMessage ());
throw e;
} {Finally
If (outputStream! = null) {}
outputStream.close ();
outputStream = null;
}
}
Return outputStr;
}
//----------------------------------------------------
public static String readURLConnection (URLConnection uc) throws Exception {}
StringBuffer buffer = new StringBuffer();
BufferedReader reader = null;
try {}
reader = new BufferedReader (new InputStreamReader (uc.getInputStream ()));
Letter int = 0;
reader.readLine ();
While ((letter = reader.read ())! = - 1) {}
Letter from buffer. Append ((Char));
}
Reader.Close ();
} catch (Exception e) {}
System.out.println ("could not read from URL:" + try ());
throw e;
} {Finally
If (reader! = null) {}
Reader.Close ();
Reader = null;
}
}
Return buffer.toString ();
}
Now, when I run this JDEVELOPER local it works fine, but when when depolyed on the server, then when I click the button then page gets hanged and it does nothing.
Is there any setting I should do in APPS environment. or anyone had done the same. any help will be appreciated.
Thank you
Vijay chraibiHello
If your code works fine in JDev and it does not work on the instance, then you can trigger SR with Oracle for Ptoduct JDeveloper.
Kind regards
Out Sharma -
static reference with the global variable
Hi, I used a static reference to a Subvi where I change a global variable before (3-4 years ago) and do not remember how I did it.
It was something like these attachments, but now I'm using LabView 2013 instead of LV 8.6.
The change in the overall operating system sees only not in the main vi (looks like the invoke node run vi does not work with globals).
In addition the vi close with the invoke node close vi but not if I put the custom in the Subvi properties to automatically close.
dkfire wrote:
Why not call the sub vi as usual, just with the setting to display the front panel, when it is called?
Use the connector pane to transfer the value of the sub vi Ok button when done.
That's what I recommend. If this is not possible for some reason, then you will need to use a flat Structure of the sequence to force the reading of the global variable after the Subvi is complete.
-
to access the variables in a page in another page qml
Hey gang,
I've been watching some of the other problems autour to access the variables from one page on another page qml qml, and I can't get this to work.
I have a page, main.qml with a NavigationPane. The NavPane has a Page and some containers.
I have a property defined in the NavigationPane like this:
NavigationPane { id: mainNav backButtonsVisible: true property int customInt: 2 onCustomInt: { console.log(" -------------> App: customInt"); }
I have a ComponentDefinition for next page, called SettingsPage.qml. In the settings, I have two drop-down lists and a slider.
Page { actionBarAutoHideBehavior: ActionBarAutoHideBehavior.HideOnScroll id: pgSettings ScrollView { id: pageScroller scrollViewProperties.initialScalingMethod: ScalingMethod.AspectFit Container { topPadding: 25 bottomPadding: 25 rightPadding: 25 leftPadding: 25 Label { text: "Settings" textStyle.fontSize: FontSize.XLarge } Container { id: dropDown1 topPadding: 25 bottomPadding: 25 rightPadding: 25 leftPadding: 25 DropDown { id: ddOption1 title: "Option 1" verticalAlignment: VerticalAlignment.Center horizontalAlignment: HorizontalAlignment.Center Option {id: o1o1; text: "One"; } Option {id: o1o2; text: "Two"; } Option {id: o1o3; text: "Three"; selected: true; } Option {id: o1o4; text: "Four"; } onSelectedIndexChanged: { switch (selectedIndex){ case 0: // console.log(" -->App: Option 1 Selector, On"); customInt = 0; break; case 1: // console.log(" -->App: Option 1 Selector, Off"); customInt = 1;; break; case 2: // console.log(" -->App: Option 1 Selector, Top (default)"); customInt = 2; break; case 3: // console.log(" -->App: Option 1 Selector, Bottom"); customInt = 3; break; } } } } }
I look forward to the the statement will change the level property NavPane, called customInt, but it doesn't.
the output of the console shows that the ' App: Option 1 selector "gets selected in the dropdown list selected index changes, but the onCustomInt() funtion slot never gets called.
I tried "mainNav.customInt = X" too, but the parameters cannot solve the mainNav. I get "unknown symbol 'mainNav'" error with alittle bulb.
what I am doing wrong?
When you call the second page, SettingsPage.qml, set it as an object.
Don't do the following:
attachedObjects: [ ComponentDefinition { id: settingsPageDefinition source: "SettingsPage.qml" } ]
Follow these steps:
attachedObjects: [ // Definition of the second Page, used to dynamically create the Page above. ComponentDefinition { id: settingsPageDefinition Settingspage{ } } ]
Then the second page main navigation page in the IDE. I had the same problem with a multi-page application, I created.
-
Access the static variable...
Hello
I need a static variable which holds a QMap, for this example I'll use QMap
. I created fresh new project and I changed in applicationui.cpp:
...ApplicationUI::ApplicationUI(bb::cascades::Application *app) : QObject(app) { .... initDatabase( 1 ); initDatabase( 2 ); initDatabase( 3 ); initDatabase( 4 ); } bool ApplicationUI::initDatabase( int index ) { QString database = QString( "Db%1" ).arg( index ); QString value = QString( "data/db%1.sqlite" ).arg( index ); ApplicationUI::m_databases[database] = value; // undefined reference to `ApplicationUI::m_databases' return true; } ApplicationUI::~ApplicationUI() { if( ApplicationUI::m_databases.count() ) // undefined reference to `ApplicationUI::m_databases' { foreach( const QString &key, ApplicationUI::m_databases.keys() ) // undefined reference to `ApplicationUI::m_databases' { QString db = ApplicationUI::m_databases[key]; // undefined reference to `ApplicationUI::m_databases' qDebug() << "Closing [" << db << "]"; } } }
and in applicationui.hpp:
... class ApplicationUI : public QObject { Q_OBJECT public: ApplicationUI(bb::cascades::Application *app); ~ApplicationUI(); static QMap
m_databases; bool initDatabase( int index ); ... }; #endif /* ApplicationUI_HPP_ */ As you can see commented in the code above, I get error:
no reference to 'ApplicationUI::m_databases' applicationui.cppI thought to access static variables that ApplicationUI::m_databases would work.
Can you please guide me here.
Kind regards
Andy
Hello! That's what I saw:
(1) #include
is present in the header file? ' (2) ' void ' is the syntax error:
void MyClass::~MyClass()
3)
static QMap
variable; is a declaration, you also need to create the variable in the .cpp file. Add to the .cpp:
QMap
MyClass::variable; 4)
MyClass::variable["one"] = "value One"; // doesn't work...
"MyClass:" is not necessary. ['a'] variable should work too.
UPD: this compiles (I replaced QMap QString with std::map with std::string for quick test):
#include
-
Go to a page of the OFA using link article
Hello
I am trying to create a link in a custom oaf page. The link would be url to another page of the ofa custom that would be retrieved from a table.
Link is as below
To do this, I did the following-
1. creates a rowlayout.
2. put a messagestyletext element for the "link name:" and put a link to the url element.
3 written a VO to extract the url mapped to the instance of the view and the table and the mode of the binding element of the VO attribute.
4. made its CSS class as oraLinktext
When I run the project, I see the link is completed as a hyperlink. As I navigate to the page of OPS, another form of inside this project, I replaced the table value of the actual url with the url of google.
To access the url, I've tried several things-
1 try to dΘfinir an firepartialaction event. capture the event in the code of the PFR in CO and get the url of the link item and go to the
String toc_url = pageContext.getParameter ("TOC"); Table of contents are the binding element ID
pageContext.setForwardURL (toc_url, null, OAWebBeanConstants.KEEP_MENU_CONTEXT, null, null, true, OAWebBeanConstants.ADD_BREAD_CRUMB_YES, OAWebBeanConstants.IGNORE_MESSAGES);
the toc_url returns null, as I have seen print its value, then of course the link is not navigate it there.
2 tried the following in the code PR in CO.
OALinkBean toc_urlbean = (OALinkBean) webBean.findIndexedChildRecursive ("TOC");
BindValue OADataBoundValueViewObject = new OADataBoundValueViewObject (toc_urlbean, "OCD"); Table of contents are the attribute view name
System.out.println (bindValue.ToString ()); oracle.apps.fnd.framework.webui.OADataBoundValueViewObject@1ff5160
toc_urlbean.setAttributeValue (toc_urlbean. DESTINATION_ATTR, bindValue);
After that the page load is complete, when I click in the link, page is not redirected to google.
I'm new on OAF, and being not able to manage it properly. Can someone help me on this please?
Thank you.
I got the solution.
I write down the solution if it serves to someone else newbie like me in the future...
Set a 'fake' event firepartialaction in the action element. Capture the event in the code of the PFR process as below - and CO
If (toc".equals (pageContext.getParameter (EVENT_PARAM))) {" "}
OALinkBean toc_urlbean = (OALinkBean) webBean.findIndexedChildRecursive ("TOC");
BindValue OADataBoundValueViewObject = new OADataBoundValueViewObject (toc_urlbean, "OCD");
String toc_url = bindValue.getValue (pageContext.getRenderingContext ()) m:System.NET.SocketAddress.ToString ();
pageContext.setForwardURL (toc_url, null, OAWebBeanConstants.KEEP_MENU_CONTEXT, null, null, true, OAWebBeanConstants.ADD_BREAD_CRUMB_YES, OAWebBeanConstants.IGNORE_MESSAGES);
}
bindValue.getValue (pageContext.getRenderingContext ()) is what gets the url in the mode of the binding element attribute.
-
Name of the dynamic pageFlowScope variable on a page of amx, possible?
Hi all
I have a problem that I can't seem to move at the moment. I have java classes that try to update some data, and if it is not successful it returns the ID of the control that contains the error. Then I take this control id and use it to highlight the field in error so that the user knows where it is. Usually, this works very well for any other than to a list view.
For a grid/listView error control is returned in the form of something like "1.14" of the appeal of java, this is equivalent to the number of the line '1' and the id of the control "14". I can easily strip away the '. ' in java but I need a path in my AMX page to define a variable on the fly for example pageFlowScope #{pageFlowScope. {{} row.rowKey} 14} but I get EL analysis of errors try like this, the error is "ERROR_EL_PARSER_NESTED_EL_NOT_SUPPORTED". Basically, I'm trying to have conditional styles depending on whether E {pageFlowScope.114} is set to 1 or not. I can't imagine a better way to implement this in a listView?
I can only suggest a medium crude to achieve.
One way to see dynamic values in EL is to use a hash table and use the dynamic value as the key. I would record a HashMap per input element and then store the error with the line indicator not. You can even create your own implementation of HashMap and hoist the flag when running by overloading the get method.
[For example #{pageFlowScope.elem14ErrorMap [row.rowKey}]
-
How to change the background color dynamically on the page of the ofa
How to change the background color dynamically on the page of the ofa
Hello
Can you please let me know the dynamic conditions to change the background color?
Thank you
Vincent
-
Hi all
Can it be done in HR 2015? I've implemented my own title page using a word doc, but I want more than a logo and company name doc in the title page. I want to add numbers version using variables, and I want to be able to set a variable in the text, but also the product name changes slightly with different versions. Is this possible?
Thank you
Nick
If you use a Word doc as your title page, then you can only use Word features. What you need to do here, is create a topic in the goal and that insert on the third page of the dialog configuration instead of a Word doc.
See www.grainge.org for creating tips and RoboHelp
Maybe you are looking for
-
4G the Z10T Portege - Win8 cannot connect using Sonicwall Global VPN
Hello We have installed the latest version of the client to Sonicwall Global VPN on the Toshiba Portege z10t with a Telstra Sim card inside. When we connect to our office, in the step acquired IP, stopping the process there.If we use a Telstra 4 G Wi
-
Why my A70 got only 192 Meg RAM?
Hi people, My A70 has been real slow at the moment some time and I think not I descovered just why. If I do a system check it says I have only 192 MB of RAM on my machine! I waas under the impression that my A70 has a minimum of 512 MB and it was an
-
I need to know how to update my microsoft office and internet explore safely.
I'm not sure on what are the steps to take when you try to update my windows desktop and are there costs associated with this process. My next question is how can I check if I have the updates for my internet explore.
-
can someone help me understand what size lens covers I need?
I know that sounds stupid, but how big lense cover doI need to: STM 18-55mm IS Zoom and: EF 75-300mm lenses? I start over. Thanks to ANYONE who can help, thank you (it seems so obvious, hiding a 55 mm and 75 mm cover, however, they do not look rig
-
For a month I got weird pop ups on my IPAD, ANDROID phones, desktop computers AND home. I just thought that I had a bad month and I need to spend more time with my individual devices and get clean them. I then noticed recently, last week I was unable