How to dynamically change the label of the TAB
HelloI want to change the label of the TAB dynamically, based on: APP_USER.
Suppose user1 connections... I want to set the LABEL of the TAB to Label1
If... User2 connections... I want to set the LABEL of the TAB of Label2
How can I do this...
Thank you
Deepak
Deepak
Here's a way to put the tabs dynamically
Create an application called G_TAB_NAME
Create an application process with a point in the process of 'New Session after authentication' and the code to set a value for G_TAB_NAME. Something like
if :app_user='user1' then :g_tab_name='Label for user1';end if;
if :app_user='user2' then :g_tab_name='Label for user2';end if;
In the tab page definition set "Tab label" to & G_TAB_NAME.
CITY
Tags: Database
Similar Questions
-
How to dynamically change the host name in the Pages of the URL of the APEX
Dear gurus,
Please advise me on how to dynamically change the hostname in the URL used in the pages of the APEX.
For example: I have the below URL in one of the apex pages.
owa_util. REDIRECT_URL ("http://adminlxdb03.texas.org:7780/pls/htmldb ' |' / f?") p ='|| v ('APP_ID') | ": 151:" | " v ('APP_SESSION'));
in the case of a Migration of this apex from one server to another (for example, TEST the PROD box), this / these pages are wrong because the different host id name in the PROD box.
Is it possible that we can dynamically change the hostname in the URL used in the pages of the APEX.
for example
owa_util. REDIRECT_URL ("http://adminlxdb03.texas.org:7780/pls/htmldb ' |' / f?") p ='|| v ('APP_ID') | ": 151:" | " v ('APP_SESSION'));
should become
owa_util. REDIRECT_URL ("http://adminetuxdb09.texas.org:7780/pls/htmldb ' |' / f?") p ='|| v ('APP_ID') | ": 151:" | " v ('APP_SESSION'));
It's adminlxdb03.texas.org (TEST) at adminetuxdb09.texas.org (PROD).
If the page has no error...
Please notify.
Thank you
SheikYou don't need to provide the hostname while redirecting in the pages of the apex
owa_util. REDIRECT_URL ('f? p ='| v ('APP_ID') |) ": 151:" | " v ('APP_SESSION'));
should work just fine.
-
How to dynamically change the names of columns LOV
Hello
I use JDeveloper 11.1.1.4
I have only one requirement, while I need to change the names of columns in the list of values dynamically.
How can I achieve it.
Please help me.
Kind regards
John.
Hello
> But I want to change the column names 'ID' and 'Name' dynamically.
Based on what? Condition? If Yes, have you tried to set the text for the label as an expression? If not based on the condition, you can also expose the VO to Java Impl and need a way to get the attribute and change its label.
Arun-
-
How to dynamically change the image depend on the input parameter
Hi all
I have a running report depend on the particular organization, I have 15 operating unit and 15 different logo for each operating unit.
How to change the Logo depend dynamically on the entrance past the user.
If I have three or four logo I can add to my disposal help if another statement and his works fine but I have more than 10 logos so it was not possible to keep these in my RTF model.
Is it possible to change the logo according to the entry without keeping this model.
I saw this link but its not very well
http://erpschools.com/articles/display-and-change-images-dynamically-in-XML-Publisher
Concerning
Srikkanth.MCan u send me the files?
-
How to dynamically change the selection mode of the listbox control?
Hello everyone
Is it possible to change the selection mode of the ListBox dynamically?
Both cases to the attached vi works the same way. I want the listbox to change the mode of selection by 1 point when the channel selected in the drop-down list box is SET.
Can anyone help please?
Thank you
Simo
There is a property for Listboxes node called selection Mode.
Do not use the control Terminal in one case and a local variable of it in the other. Moving the Terminal outside the structure of matter and son in the structure of the case.
-
How to dynamically change the color of the text in the lookout?
I wish that the color of the text to change according to a different value. How can I do this at Lookout?
I tried to find connections to text insertions and expressions but have failed.
Thank you
Dave
Change the display text property, setting the Style of background as "Transparent".
Create a gauge object. It is capable of changing color on different conditions. Put the gauge above the text display.
-
How to dynamically change the APXWS_MAX_ROW_CNT?
Hi all
I am looking for a solution dynamically set the parameter APXWS_ROW_CNT (number of lines Maximum).
That is when you call a report interactive by default must be on, for example, 10,000, due to performance.
But when the user wants to get all the records, it should be able to change this value to null or 10,000,000 (i.e. show all).
I tried the following:
- Do not set APXWS_ROW_CNT in the configuration of the report (paging = > number of lines Maximum) = > all folders should be displayed.
- Add a where clause to the view: select * from bird where rownum < =: P0_ROW_COUNT;
- Default - P0_ROW_COUNT to 10,000
- Change the value of 1,000,000 by click of a button
APEX-view in-house for the default value of P0_ROW_COUNT looks like this
Select * FROM)
Select * from bird where rownum < = "10000"
) r
This seems good.
But when you define a filter in the IR, for example SS_NAME = "PP", the APEX-view interns as this looks:
Select * FROM)
Select * from bird where rownum < = "10000"
) r
where ("SS_NAME" = "PP")
The research comes not all records in the database, but only on the first 10000.
And if there is no record in the 10000 first with SS_NAME = "PP" the result set is Null, even if there are hundreds of records in the database that meets the condition.
If this isn't a solution.
The APXWS_ROW_CNT parameter to 10000 I get the APEX-inside view
Select *.
DE)
Select * from)
Select * from bird
) r
where ("SS_NAME" = "PP")
) r where rownum < = to_number('10000')
= > Search on all of the base, the result is ok, but I don't have the possibility to get more than 10,000 records.
Does anyone know a solution?
Kirsten
Hi all
I found a solution not so nice, but it works.
At the TOP, you can enter a number in the 'Maximum lines number' section of an interactive report. I don't know why it is implemented in this way because the max_row_count field in the wwv_flow_worksheets table is of type character.
My idea is this:
1. Add dynamic action "on the new session" with plsql
Update APEX_040200.wwv_flow_worksheets set max_row_count = '& P0_ROWS' where flow_id = 111 (my app_id).
2. Add a hidden field p0_rows page 0 with the default 10,000-online 10,000 lines will be shown
3. Add a button or something to your application to change P0_ROWS to null (empty string) or 100,000,000 and update the interactive report
-online all the lines of the report will be displayed (or 100,000,000).
The only problem is that a "Maximum number of lines must be digital." error if you open the interactive report region because the value of the point "number of lines maximum.
(tab Pagination) is now the string "& P0_ROWS.". Therefore, delete this value whenever you change something in this region.
Kirsten
-
Hello
I need to change the last part of the URL sent by post in the apex dynamically. I have a requirement that a person can register itself with a new user name and other details. When the user clicks on the button register after you have entered all the required values in the page all values will be inserted into the user_details_repository table in the database. At the same time an email with a url link is sent to the user admin for the assertion. When the admin user, click on the link it is redirected to a page where all the details submitted by this particular user is displayed. The admin user can confirm or reject the new user registration. If the admin user says, all the data repository of this particular user table will be inserted in a main table named user_details and data will be deleted from the repository table. Yet once if the admin user rejects, all the data repository of this particular user table will be deleted.
For this, I have created two pages for this and all of the features mentioned above works correctly except change the link url each time a letter is sent to the admin user when a new user register itself. To send email, I created send e-mail process. I need to change the last word/part of URLs within html body according to the username provided by the new user.
for example, the url to another user will be like this:
http://localhost: 8080/apex/f? p = 103:9:3849261906471:NO:USERNAME:Namrata
http://localhost: 8080/apex/f? p = 103:9:3849261906471:NO:USERNAME:Madhura
Help, please.
If there is another way to achieve the same thing please answer.
Thank you
Nilesh
Hi Nilesh,
You can use a Page element as a substitution variable in the body of the HTML message.
for example, blah blah blah & P123_MY_PAGE_ITEM. blah blah blah
The syntax is an ampersand in front of the name of page element and a point after the name.
brgds,
Peter
-
How to dynamically change the generated query through the "query by example".
Hi all. I'm relatively new to the ADF, so I've been beating my head against a wall trying to figure out how to do this... Any help would be greatly appreciated!
What I try to do is to make a custom search (query) against a set of tables in the database. Normally, I would use just the ability to "filter" the af: table to do this (query by example). However, the query I need to run has three specific requirements:
1. I need to change the 'WHERE' clause differently according to the field in which the user enters criteria in. For example:
-If the user enters something in the field 'name' of filter, the default ADF BC will do is add '%' to the value entered, turning it into a query "begins by". I also want to prepend a '%' to the input value, (for example "doe %'), it becomes a query 'contains '. I don't want the user to see the '%', I put at the beginning of the field in the UI, however.
-If the user enters a value of 9 digits in the field 'SSN', do a query of "accurate". If they penetrate only 4 digits, do a query "ends by". (I could always just a query "ends by" - for example "% of values" - even if they have put in 9 digits, and that would work.) However, an exact match will run faster because of the index on the field, so I want to use that if we put 9-digit.)
2. I also need to change the SELECT part of the query based on which fields are used in the filter.
3. If the user enters the filter values in several fields, I need 'OR' them together. The default functionality, it's that they are 'linked' together.
Can someone point me in the right direction? My thought was somehow replace the manner in which the query is generated when the user presses ENTER to run the filter. But, I can't seem to understand where and how to connect it to this process to customize the SELECTION and WHERE the parts of the generated query. I'm sure that there is a way, and I hope more experienced ADF'ers can direct me to the solution.
Thank you!
Published by: 926392 on June 25, 2012 15:39
Published by: 926392 on June 25, 2012 15:40Check this post in the ADF Code corner for the necessary information:
http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/30-table-filter-queries-169172.PDFThank you
Nini -
How to dynamically change the graphic style css?
What is the right method to dynamically replace the graphic style of JavaFx 2.2 in the code? I modified the example in the tutorial below with or without loading the css file. So far, I am unable to replace the style from the code. My goal is to dynamically set the width of each line. We use Java with Eclipse on Windows 7 (64-bit) 7_51. The CSS generated in the code below works when it is in the file. There must be a better way than to write a new file and read it, right?
String title = "Chart Title"; stage.setTitle("Stage Title"); final LogAxis xAxis = new NumberAxis(); final NumberAxis yAxis = new NumberAxis(); final LineChart<Number, Number> chart = new LineChart<>(xAxis, yAxis); chart.setTitle(title); chart.setLegendVisible(false); chart.setCreateSymbols(false); xAxis.setLabel("x-axis"); yAxis.setLabel("y-axis"); // each bar is a line from x,0 to x,y int width = 24; // pixels for (int i = 0; i < ydata.length; i++) { String css = ""; // TODO: dynamically calculate unique width for each "bar" final XYChart.Series data = new XYChart.Series(); data.setName("Series" + (i + 1)); data.getData().add(new XYChart.Data(xdata[i], 0.0f)); data.getData().add(new XYChart.Data(xdata[i], ydata[i])); chart.getData().add(data); // Dynamically set style instead of reading from file // Assign each "bar" data series a color and line width css += ".chart-series-line{ -fx-stroke: red; -fx-stroke-width: "; css += width; css += "px; }\n"; data.getNode().setStyle(css); System.out.println("node style: " + data.getNode().getStyle()); System.out.println("node style class: " + data.getNode().getStyleClass()); width *= 3; // TODO: replace this with dynamic calculation of width } // end for final Scene scene = new Scene(chart, 800, 600); scene.getStylesheets().add("Chart.css"); System.out.println("Scene stylesheet: " + scene.getStylesheets()); System.out.println("chart style: " + chart.getStyle()); System.out.println("chart style class: " + chart.getStyleClass()); System.out.println("chart style sheet: " + chart.getStylesheets()); stage.setScene(scene); stage.show();
-
How can I change the tab Start Page for Firefox default to a tab I want
When I start my FF browser with my chosen homepage, a default 'Mozilla Firefox Start Page' tab appears. I would like to change this tab to Facebook Firefox permanently. How do I do that?
You can do this by accessing the Option-> general tab
Then change the address of the home page and apply or OK. -
How can I change the tabs start page?
I tried searching through the options, but I can't find anything related to it. Help, please.
New tabs are empty by default, there is no setting to change this in Firefox. If you have something other than a blank page appear now, an add-on that you have changed the default action.
You can use this module to specify which page you want to open in a new tab.
https://addons.Mozilla.org/en-us/Firefox/addon/NewTabURL/ -
How to dynamically change the default period fast?
Hello guys
I have a situation... I currently have a dashboard the guest on a column called sales period. The requirement is to make the default value of this prompt to the current period.
Data stored in this column are of type varchar that goes like 200903, and there are the values up to 201201. Currently, the calendar period is 200910, but the sales period should be 200903, in other words, there is still a difference of 7 months between the two, and the new date change period is always the 15th of each month...
I think to create a dynamic variable to manage this requirement, but I do not know how and what type of logic to put in...
Could someone give me some suggestions?
Thank you very muchInitlization block SQLs is actually a physical SQL with the same syntax as your database. The SQL is executed as it is on the database of the initiliztion block. Check if you are using the right connection of the inilization block pool.
-
How to dynamically change the value of a column in a report
Hi, I'm new to APEX and I have a small requirement. I have a report in a page which I query. Report will always have only one record. I need to change a value of a column in this report of the value received from another page. I was able to send the value of another page on my page of reports to a hidden page element, but I don't know how I can configure this value received to this column in the report. Is this possible? If Yes, can anyone help with this?
970829 wrote:
Please update your forum profile with a real handle instead of '970829 '.
Hi, I'm new to APEX and I have a small requirement. I have a report in a page which I query. Report will always have only one record. I need to change a value of a column in this report of the value received from another page. I was able to send the value of another page on my page of reports to a hidden page element, but I don't know how I can configure this value received to this column in the report. Is this possible? If Yes, can anyone help with this?
Not really clear exactly what it is you are trying to reach. You want to replace the value of a column in the report with the value of a page element? If so, simply replace the column in the report with a reference to the required page elementquery:
select empno , ename , job , :p2_sal sal -- Replace value of sal column with value of P2_SAL item from emp
-
How to dynamically change the language of a form?
Hello
I have a form that will be used in several countries. I needed to give the user to choose the language in a list (at least two languages, but if it can be more, that would be great )
The only way I have found so far is to have two sets of labels text boxes and to hide with the exception of the selected language, but I still have a problem with ToolTips on the fields, that the user must type...
Acrobat has its built-in function for do such things or JavaScript is my only hope?
I fear my form will receive 'a bit' messy if I do with 5 set of fields of the label: s
What is - that you want to change, exactly? I can think of: button
legends, drop-down and eventually the defaults options and ToolTips for
text fields... If it's too much work for the script, which, then you should
consider just creating different copies of the file, one for each language.
Maybe you are looking for
-
38.1.0 how to get back to the previous version?
This rev completely broke my ability to set sizes of minimum DISPLAY of characters, as well to within the e-mails received, and the components of the system TBird & menus drop down. The "downloads" page doesn't have access to earlier versions. The up
-
How can I check sound version and watch on Satellite M30 power?
I have a Toshiba Satellite M30 series and have lost my audio. I don't know if I checked something l ' turn off or what. Can someone give me some ideas on how to check it? The other is stupid - how do I know what saving use? Right now my setting is on
-
Best way to encode several digital inputs of choice / binary indicators
Hello. I need some suggestions. We have several libraries API (to control our material) written in C and distributed as a dll. For many of them, we have a library of LabVIEW VIs wrapping (using the call library function node). We have several functi
-
Change a disk 8 GB to FAT16 flash and starting it
Hello. I have a 8 GB Flash Drive and I want to change it for a with FAT16 2 GB flash drive (I know how to do this) AND boot from it. I tried to use the FORMAT + DISKPART. EXE, then I copied the files to boot, but he said: Remove disks or other bootab
-
I get error 80246007 code when you try to install Internet 8 on my laptop that is running Windows Vista. Can you help me?