conditionally define "BOLD" display property only one element on the page
How can you conditionally set a display only point in bold.
I can set the attribute of the HTML form element: style = "' make-weight: bold" "
But I want to put it under certain conditions. Has been able to set the color under the condition with below the syntax before the process of page footer:
HTP. PRN ("< script > $x("P102502_CTS025MT07").style.color = $x("P102502_HIDDEN_COLOR").value; (< /script > ');
But can't figure out how to set the "BOLD".
I tried htp.prn ("< script > $x("P102502_CTS025MT07").style.font - weight =" BOLD ";) (< /script > ');
Cannot find the correct syntax for this.
Hi pam499057,
pam499057 wrote:
How can you conditionally set a display only point in bold.
I can set the attribute of the HTML form element: style = "' make-weight: bold" "
But I want to put it under certain conditions. Has been able to set the color under the condition with below the syntax before the process of page footer:
HTP. PRN(' ') ;
But can't figure out how to set the "BOLD".
I tried htp.prn(' ');
Cannot find the correct syntax for this.
What condition are you talking about? It's an event to an element for example "onchange" or "onload event page"?
You can create a dynamic action on your event and the State that executes javascript defining the appropriate CSS code. For example your javascript code for the dynamic action can be (use ONE of the following):
- If you want to that APEX javascript API old syntax:
$x("P102502_CTS025MT07").style.color= $x("P102502_HIDDEN_COLOR").value; $x("P102502_CTS025MT07").style.fontWeight= bold;
In javascript syntax code font is defined as follows: HTML DOM Style fontWeight property
You will get the APEX API javascript here: http://docs.oracle.com/cd/E37097_01/doc.42/e35127/javascript_api.htm#AEAPI266
- If you want to APEX new javascript API (which is based on jQuery) syntax:
var clr = apex.item("P102502_HIDDEN_COLOR").getValue(); apex.item("P102502_CTS025MT07").setStyle("color", clr); apex.item("P102502_CTS025MT07").setStyle("font-weight","bold");
The new javascript API for APEX is documented here: http://docs.oracle.com/cd/E37097_01/doc.42/e35127/javascript_api.htm#AEAPI29446
- If you want syntax pure jQuery:
var clr = $("#P102502_HIDDEN_COLOR").val(); $("#P102502_CTS025MT07").css("color",clr); $("#P102502_CTS025MT07").css("font-weight","bold");
NOTE: In the answer above by Sunil he mixed the jQuery and javascript of APEX syntax, therefore, it will not work.
- If you want that more compact jQuery syntax:
var clr = $("#P102502_HIDDEN_COLOR").val(); $("#P102502_CTS025MT07").css({ "color": clr, "font-weight": "bold" });
Also the solution given by Jitendra will be static, that it will not apply CSS under certain conditions.
Finally, it is not advisable to use HTP. PRN to emit javascript, because it is intended more to dynamic HTML issue. The dynamic action is an option more appropriate in this context.
I hope this helps!
Kind regards
Kiran
Tags: Database
Similar Questions
-
How to display decimal numbers with elements of the page?
Hey everybody,
I work with APEX 4.2. I have a page with an element (element of the page displayed in the text field).
This point of displays the values the database. If the value in the database is "0.5" item only shows that ", 5" instead of "0.5".
I tried it already as digital point. Can someone help me?
Your article is using data column?
Otherwise, data recovery process:
Select to_char (number_value, '990.0')
in: point
table;
-
Want to only two elements of the page without a space between them.
I give a broader and more generic framework to an earlier application seeking a broader response.
I want two elements on the page without horizontal between space. (Don't ask why!) One is a contant, say ' * ' so I made a single display element. The other is the label of a numeric field that is referenced in the error messages generated by the ARF.
Call the label LABEL to make this easy. So, I want to see {noformat} * {noformat} LABEL. I don't want to change the label of "* LABEL" because ARF refers to "* LABEL" in error messages. I want to just fix the two elements on the form. This must be something easily done in the APEX, right?
(For the initial application, see .)
Thank you and God bless you,
HowardHello
Just change your article networking sessions (if you use apex 4.2)
Start the new grid: No.
Start the new row: No.
New section: No.FYI, you may need to use
& nbsp
in your point label to get a space
If you use apex 4.1, I remember: new field should be no.
Best of luck,
Best regards
Fateh
-------------------
If you think that my answer was correct or helpful to you, then please check the response as helpful or appropriate. -
validate if the user has entered at least one element of the page
The apex Version: Application Express 4.1.0.00.32
Web browser: Internet Explorer 8
Oracle DB: 11g Enterprise Edition Release 11.2.0.1.0
Is there a way to validate whether a user has entered at least one item on a form?
I have a function:
function hasPageValues return a Boolean value
is
Boolean v_item_found: = false;
Start
for rITM in
(select nom_element
of apex_application_page_items
where application_id = Apex_Application.g_flow_id
and page_id = Apex_Application.g_flow_step_id
)
loop
-the element's value
If v (rITM.item_name) is not null then
v_item_found: = true;
end if;
end loop;
Return v_item_found;
end hasPageValues;
I call this function returning a Boolean in my posting of the page. It doesn't seem to work. It always returns false. What am I missing and is there a better way to do this type of validation. Sorry I'm new to APEX. Thank you very much!SmV says:
Also, I added the part output in the above code and it still does not work. Always returns false.When you have a problem in the APEX you can use debug mode to trace what actually demand. It is advisable to include the code of instrumentation in your program units that will generate useful debugging information. To do this, use apex_debug_message API:
create or replace function hasPageValues ( p_app_id in pls_integer , p_page_id in pls_integer) return boolean is v_item_found boolean := false; begin for rITM in ( select item_name , display_as from apex_application_page_items where application_id = p_app_id and page_id = p_page_id) loop apex_debug_message.log_message(rITM.item_name || ' (' || rITM.display_as || '): ' || v(rITM.item_name)); -- does the item have a value if v(rITM.item_name) is not null then apex_debug_message.log_message(rITM.item_name || ' is not null: exit.'); v_item_found := true; exit; end if; end loop; apex_debug_message.log_message('hasPageValues = ' || case when v_item_found then 'TRUE' when not(v_item_found) then 'FALSE' else null end); return v_item_found; end hasPageValues;
Without data in the page, this gives the following debug trace:
... 0.19096 0.00084 Perform custom validations: 0.19180 0.00081 ...Validation "hasPageValues" - Type: FUNC_BODY_RETURNING_BOOLEAN 0.19261 0.09948 ...Execute Statement: declare function x return boolean is begin return hasPageValues(:app_id, :app_page_id); return null; end; begin wwv_flow.g_boolean := x; end; 0.29213 0.00144 P6_PRODUCT_IMAGE (File Browse...): 0.29352 0.00082 P6_IMAGE (Display Only): 0.29434 0.00075 P6_PRODUCT_ID (Hidden): 0.29509 0.00105 P6_PRODUCT_NAME (Text Field): 0.29614 0.00083 P6_PRODUCT_DESCRIPTION (Textarea): 0.29697 0.00104 P6_CATEGORY (Radio Group): 0.29801 0.00151 P6_PRODUCT_AVAIL (Radio Group): 0.29952 0.00079 P6_LIST_PRICE (Number Field): 0.30030 0.00071 hasPageValues = FALSE 0.30102 0.00066 ......Did NOT pass 0.30168 0.00080 Add error onto error stack 0.30249 0.00079 ...Error data: 0.30327 0.00299 ......message: Page has no values
While with a set of element values, we get:
0.07573 0.00107 Perform custom validations: 0.07680 0.00094 ...Validation "hasPageValues" - Type: FUNC_BODY_RETURNING_BOOLEAN 0.07774 0.00231 ...Execute Statement: declare function x return boolean is begin return hasPageValues(:app_id, :app_page_id); return null; end; begin wwv_flow.g_boolean := x; end; 0.08005 0.00105 P6_PRODUCT_IMAGE (File Browse...): 0.08109 0.00077 P6_IMAGE (Display Only): 0.08187 0.00094 P6_PRODUCT_ID (Hidden): 0.08281 0.00074 P6_PRODUCT_NAME (Text Field): 0.08354 0.00087 P6_PRODUCT_DESCRIPTION (Textarea): 0.08442 0.00072 P6_CATEGORY (Radio Group): 0.08514 0.00067 P6_PRODUCT_AVAIL (Radio Group): Y 0.08581 0.00112 P6_PRODUCT_AVAIL is not null: exit. 0.08693 0.00076 hasPageValues = TRUE
The two that appear to be the expected behaviours. What happens when you do this?
-
How can I change the automatic country setting that is displayed in the payment gateway billing address? There is only one country in the drop-down list, not my current country
A few changes/Verify account https://forums.adobe.com/thread/1465499 links that can help
-html http://helpx.adobe.com/x-productkb/policy-pricing/change-country-associated-with-adobe-id.
-
I need to create a table of contents in iPages but I want only one word for the title, not the line of holes. Or, how can I change the contents of the table? Thank you!
Yes, you can have a one word title, by assigning a paragraph style title to this one word. No, you cannot change the text in a Table of contents, but you can change paragraph style font attributes (line) and add for example, a head of points between the types of OCD paragraph and page numbers. No part of the table of contents will not provide hyperlinks in exported PDF documents.
When you look up in the menu bar, you can see the word iPages, or simply Pages. There is no product of iPages.
-
My printer works perfectly on all other programs, but when I print an e-mail message from windows mail it only prints on one quarter of the page. I looked at the properties of the printer and it is selected for the 8 1/2 x 11 papper and all other properties appear to be the same as for any other program. Think there must be something in Windows Mail which is the cause of the problem
Check your Internet Explorer (Yes, IE), margins.
IE | File | Page layout. Default is 0.75, (19mm), all around.
Bruce Hagen ~ MS - MVP [Mail]
-
Hi Please help me how to use cascade, if I don't have only one table with the customer name and the name of the product in the ADF... I use Jdeveloper 11.1.
For the client, I used customer VO with client list to fill but to populate the product that I use bind variable PrODUCT_NAME select distinct from TABLE where client_name =: bindCustomer
so first of all, I need to set the variable of liaison on behalf of the selected customer.
Can you please tell me how to set this variable binding in this case.
After you set the LOV to your product attribute, correspondting VO in the LOV will appear under view accessors.
Change the accessor of the view, you will see the variable binding. Set its value to the customer field of the parent object.
Visit this link: https://www.youtube.com/watch?v=nXwL2_RP7AQ
Kind regards
Elias.
-
I bought LR6 and installed cloud creative ok, but when you go to installation of Lr, it allows only one installation of the trial version, the other options are to buy.
Serialize Lightroom trial to activate like Lightroom 6 CC
https://helpx.Adobe.com/Lightroom/KB/serialize-Lightroom-CC-trial-to-activate-as-Lightroom - 6.html
-
How can I keep only one instance of the javafx application at the same time?
Hello
How can I keep only one instance of the javafx application at the same time?
Let not the user run the javafx application is running on your PC.Hello. This program does what you want. You can probably find a better solution.
import javafx.application.Application; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.layout.StackPane; import javafx.stage.Stage; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.FileNotFoundException; import java.io.*; import java.nio.channels.FileLock; import javafx.application.Platform; import javafx.stage.WindowEvent; public class Simpleapp extends Application { public static void main(String[] args) { launch(args); } @Override public void start(Stage primaryStage) throws Exception { final File file = new File("flag"); final RandomAccessFile randomAccessFile = new RandomAccessFile(file, "rw"); final FileLock fileLock = randomAccessFile.getChannel().tryLock(); System.out.print(fileLock == null); if (fileLock == null) { Platform.exit(); } primaryStage.setTitle("Hello World!"); Button btn = new Button(); btn.setText("Say 'Hello World'"); StackPane root = new StackPane(); root.getChildren().add(btn); primaryStage.setScene(new Scene(root, 300, 250)); primaryStage.setOnCloseRequest(new EventHandler
() { @Override public void handle(WindowEvent arg0) { try { fileLock.release(); randomAccessFile.close(); System.out.println("Closing"); } catch (Exception ex) { System.out.print(ex.getMessage()); } } }); primaryStage.show(); } } -
What elements of the page get included in the URL on doSubmit()?
It's quite perplexed me.
I have a page with 5 items on the page in a region in a table. All of them are hidden and protected.
The page is loaded with one of these items on the page specified in the URL.
If I use the button to delete one or more rows on the, or click on the button "Add new line", the page is submitted and returns with three of these five elements in the page specified in the URL.
First question: why only 3 and not all 5? Why THESE three? I see no difference between one of the page elements appear in the URL submitted from that which is not.
Second question: I've changed one of these page items to display conditionally. If a certain condition is not met, the field is never out of the page. However, EVEN THEN when I send the page using one of the buttons above, the field is included in the URL submitted! Should that even happen? That actually seems a safety hazard, unless there is something I am doing wrong.
I can probably create a test page to apex.oracle.com if necessary. (It of now on apex.oraclecorp.com, but move it will take time because I'll have to remove some sensitive data). But I hope that it is just some easy concept to explain, I'm just not grasp.
Thank you.
-KeithHi Keith,
(1) check the branch. the branch defines what happened on the next page.
(2) Yes, this is the correct behavior. condition is for rendering, but the direction is fixed.
brgds,
Peter-----
Blog: http://www.oracle-and-apex.com
ApexLib: http://apexlib.oracleapex.info
Work: http://www.click-click.at -
You will return the "Select an element in the page" button right in Inspector?
The 'select an element on the page' is to the extreme left now. Since ver.32 FF. As seen in this image:
https://MDN.mozillademos.org/files/8315/Inspector-select-element-fx32.PNG
Change for the worse in my opinion. You will return it right into the next version? Thank you.N ° it is always on the far left in the current construction of 35.0a1 of Firefox.
All Toolbox items are on the far right, including the gear button options to define what items to display.
-
Set a value of the element of the Page in Javascript
I've created two elements on the page P9_DEVELOPMENT & P9_DEPARTMENT. The two select lists that are inspired by the shared components and in the sections of the list of the value of the properties display Null = Yes and Null = text "- Select -".
I want each selection list for mutually is when I select P9_DEVELOPMENT P9_DEPARTMENT is back 'Sélection' - and vice versa. I wrote a function javascript with the following assignment.
switch (pItem)
{
case 'P14_DEVELOPMENT ':
$x('P14_DEPARTMENT').value = "- select -";
break; …
Logic sets the value of "P14_DEPARTMENT" empty, but I do not see "- select -". I get the same result with the statement
$x('P14_DEPARTMENT').value = null;
How can I reset the value of P14_DEPARTMENT and then displays the default "- select -"?Ned
If the "- Select -" is the first option in the list select below the statement defines the list select Show "- Select -"
$x('P14_DEPARTMENT').selectedIndex = 0;
CITY
-
The default value for the elements of the page get ready when the session is disabled
Hello
I am facing this problem, do not know how to solve this problem. Basically, the default value 'elements' on the page don't prepare you when the session is disabled and I visit the page for the first time. So when I check the session for the first time, all page elements are null. But when I revisit the page, page elements sometimes gets.
Don't know what I'm missing here... Someone has encountered this problem before?
Thanks in advance! Kindly let me know if you need more clarification.Is there a way that the page element can be defined at the time the page is loaded for the first time?
Yes. Create a "Page Rendering" PL/SQL process. That it is very early in the page rendering (i.e. "on charge ‑‑ after Header"). Set the value of the element of page here:
BEGIN :P10_MY_ITEM := 15; END;
-
Can I move master page elements to elements on the pages of the child?
Hello
I have a little trouble with my first website of muse. When I do the objects on the master page forward, everything works fine (even in preview mode and in the browser preview), but on other pages all the parameters of the agreement seem to have disappeared.
The items I brought forward are covered by elements which should be behind them. Now, I have to copy most of the objects on each page's master page.Thnks for your help
Best regards
FredP.S. I'll upload some screenshots of the problem as soon as possible.
This is an expected behavior in Muse. The stacking order of elements on a master page is limited to the master page. Page master are always behaind elements in the pages of the child, and you can't "release" elements on a master to display on top page (z-order) of the elements of child pages. Currently, you must copy and paste items to display on the top on all pages of the child. This has been a frequent feature request. Please add your vote:
Debloquer master page items on local pages
http://forums.Adobe.com/ideas/1433
Layers panel / order
http://forums.Adobe.com/ideas/1444
Best regards
Corey
Maybe you are looking for
-
I get these messages to Hotmail.com even, as well as the mozilla Web site. In fact, I'm on Chrome now for the first time because this is a new issue and I don't know why all of a sudden what happened. Added exceptions, I always get the message. This
-
How long before an update soak the start of tests?
I was surfing just on the web and saw a story on the Droid X soak test and thought, "HEY!, I've seen that Word before"... so I thought I'd ask. " Looking at the Droid X gingerbread release, it seemed that it was about 3 or 4 days before the release.
-
LaserJet 5 C3916A: Driver for windows 10
Drivers are available for Laserjet 5 on Windows 10
-
installation of the microsoft security updates
I can not install updates for office 2003 and service packs for office, also unable to install securty microsoft, or most updated security too. I have several different errors show as 0 x 641, ox4397 and 1601 for adobe reader.
-
Really loud and annoying beep regarding power cord
Hello I have a N500 and everything: I plug/unplug the power cable or the battery is almost discharged a really loud beep is emitted by the mobile phone, try as I might I can't seem to get rid of this sound. Is there anything I can do about it, if I c