Whether condition
Hello
He is Abdelkrim, I am working on oracle apex5.0.
My requirement is that I must display LED function if condition as below table column Database_Status
If the condition where database_status = 'active', then it should give a green light. LED red or other.
Could you please help me how to achieve this.
Kind regards
T..
Hi YUMASHANKAR,
YUMASHANKAR wrote:
He is Abdelkrim, I am working on oracle apex5.0.
My requirement is that I must display LED function if condition as below table column Database_Status
If the condition where database_status = 'active', then it should give a green light. LED red or other.
Could you please help me how to achieve this.
What do you mean do green/red LED? Do you mean image color green/red filled circle/square?
You can do with the help of the instruction box in your SQL query.
- Start by downloading the images to display in the status column:
Reference:
NOTE: Rename the names appropriate as in query image before loading on the shared components.
- Transfer to request->-> static files of the Application, the shared components
- Change your query to include the case statement:
select db_startup_time , status , database_status , instance_role , active_state , case when upper(trim(database_status)) = 'ACTIVE' then '' when upper(trim(database_status)) = 'INACTIVE' then '' else '' end as db_status from my_table
- Change db_status column Standard report column display as if you use the component view. If you use Page Designer view, and then set the column of Type plain text and No special escape characters .
Refer to a similar thread: eHref and a Case statement in Sql Query
Kind regards
Kiran
Tags: Database
Similar Questions
-
HOW TO ADD HYPERLINK IN THE INTERACTIVE IN APEX 5 REPORT COLUMN?
Hello
I'm new apex.i oracle uses apex 5.
I want to do a column in my report to a hyperlink.
When I put the following SQL query there are no errors, but in the report, it shows that a text.it is not rendered as a hyperlink.
Select
BL_BUG. BUG_TITLE as BUG_TITLE,
"BUG_ID" BUSINESS SUCKS SO "
" ELSE ' < a href =" http://LCS.corpnet.ifsworld.com/login/secured/buglnw/BlBug.page? & BUG_ID = ' | BUG_ID | "' target = '_blank' > ' |" BUG_ID | "< /a > ' END like BUG_ID,
BL_BUG. DESCRIPTION as DESCRIPTION,
CASE WHEN BL_BUG. CASE_ID = 0
THEN NULL
OF OTHER BL_BUG. CASE_ID
END as case_id,
BL_BUG. BUG_SOURCE_REFERENCE as BUG_SOURCE_REFERENCE,
BL_BUG. MODIFIED_BY as MODIFIED_BY,
BL_BUG. Date_modified as DATE_MODIFIED
BL_BUG. CREATED_BY as CREATED_BY,
BL_BUG. Date_created as DATE_CREATED,
BL_BUG. BUG_CATEGORY as BUG_CATEGORY,
BL_BUG. BUG_IMPACT_DESC as BUG_IMPACT_DESC,
BL_BUG. BUG_SOURCE as BUG_SOURCE,
BL_BUG. TASK_ID as TASK_ID,
BL_BUG. ORIGINATING_SOLUTION_ID as ORIGINATING_SOLUTION_ID
AT THE BEGINNING OF THE BL_BUG WITH BUG_ID =: P405_NEW CONNECT PRIOR BUG_ID = BUG_SOURCE_REFERENCE ORDER BY BUG_ID, BUG_SOURCE_REFERENCE
bl_bug is my table.can someone tell me why is that?
Thanks in advance!
Hi geslin,.
Garza says:
I'm new apex.i oracle uses apex 5.
I want to do a column in my report to a hyperlink.
When I put the following SQL query there are no errors, but in the report, it shows that a text.it is not rendered as a hyperlink.
bl_bug is my table.can someone tell me why is that?
Yes. As narrated by Sunil, you must change the property view as of column DESCRIPTION Standard report column if you use the component view. If you use Page Designer view, and then set the column of Type plain text and No special escape characters .
If you use followed by "Designer's Page" the following suggestions:
- Whether condition
- Denes Kubicek ApEx BLOG: APEX 5.0 and standard report column
- Re: Standar report missing column in Apex 5.0.
Kind regards
Kiran
-
Question on the issue of whether or not a site is secure
HI -.
I had a question about whether or not a site is secure.
With Internet Explorer it will say https:// and there will also be a closed padlock.
With Firefox, it says https://, but I do not see a padlock anywhere.
I just wanted to be sure that it always passes through a secure site, even without the padlock.
Is there anything else I should check or I'm OK as long as there is the letter ' after 'http '? -even if there is no padlock?
Thank you
RandyPadlock
Therefore, the lock is more part of Firefox; It has been removed from Firefox 4. The padlock shows that there is a secure connection, but does not provide any additional information. You could make a typographical error, and have always been connected to a secure connection. The lock was replaced in Firefox 3 with the Site identity button. Familiarize yourself with the Site identity button at the left end of the address bar:- https://www.Mozilla.com/en-us/Firefox/security/identity/
- https://support.Mozilla.org/en-us/KB/site+identity+button
- http://www.dria.org/WordPress/archives/2008/05/06/635/
You can install this module if you want:
http:// and https://
The Protocol (http://) was removed from the URL in the location bar for http:// only pages in Firefox 7 and newer versions. Secure pages will always show the https:// Protocol. This can be confusing for some users. There is also a bug known, where if you copy the URL after selection of the awesome bar dropdown (but before loading the page) it does not include the http:// part.Users can revert to the old behavior (showing http://) by setting browser.urlbar.trimURLs to false in about: config
- type of topic: config in the URL/address bar and press the Enter key
- If you see a cautionary, accept it (promise to be careful)
- Search = browser.urlbar.trimURLs
- Double-click the pref in the lower panel of toggle it on 'false' OR , do a right-click on the pref in the lower panel, then choose "Toggle" switch it on "false."
- close the topic: config tab
If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.
Not related to your question, but...
You may need to update some plug-ins. Check your plug-ins and update if necessary:
- Plugin check-> http://www.mozilla.org/en-US/plugincheck/
- Adobe Shockwave for Director Netscape plug-in: install (or update) the Shockwave with Firefox plugin
- Adobe PDF plug-in for Firefox and Netscape: Installation/update Adobe Reader in Firefox
- Shockwave Flash (Adobe Flash or Flash): updated Flash in Firefox
- If you have trouble with the Flash after update, download and save the installer 32 bit Adobe at the following address, close all browsers (Firefox button > output or File > Exit), run the installation program that you downloaded (checking the box I have read and I accept the conditions... , then click on install, when finished, click the 'done' down).
- If you have trouble with the Flash after update, download and save the installer 32 bit Adobe at the following address, close all browsers (Firefox button > output or File > Exit), run the installation program that you downloaded (checking the box I have read and I accept the conditions... , then click on install, when finished, click the 'done' down).
- Next-generation Java plug-in for the Mozilla browser: install or update Java in Firefox
-
Dynamic action - two types of options of "condition"?
I would like to create a dynamic action that runs when a SQL condition exists is met. If this is the case, then it will run several true Actions. If this isn't the case, it will run several wrong Actions.
I see there is an option of Condition in the when section of her DA, however, seems to be limited to static value comparisons or Javascript. There is also another section of Condition where you can select SQL exists or various other PL/SQL expressions. What is the difference between these options two condition?
Also, when I set the status section to Exists and in the SQL query include an equivalence to an element of the page it does not seem to recognize the value of the page element. For example:
Select * from my_table
where PARTY_NUMBER =: MY_PARTY_NUMBER
It still fails the condition even when a valid part number is entered on the page (him DA is run when MY_PARTY_NUMBER is changed). I should be able to enter a reference point of page here, Yes?
Thank you
Steve
P.S. I use 5 APEX
Steve. 1234555 - Oracle wrote:
I would like to create a dynamic action that runs when a SQL condition exists is met. If this is the case, then it will run several true Actions. If this isn't the case, it will run several wrong Actions.
I see there is an option of Condition in the when section of her DA, however, seems to be limited to static value comparisons or Javascript. There is also another section of Condition where you can select SQL exists or various other PL/SQL expressions. What is the difference between these options two condition?
Also, when I set the status section to Exists and in the SQL query include an equivalence to an element of the page it does not seem to recognize the value of the page element. For example:
Select * from my_table
where PARTY_NUMBER =: MY_PARTY_NUMBER
It still fails the condition even when a valid part number is entered on the page (him DA is run when MY_PARTY_NUMBER is changed). I should be able to enter a reference point of page here, Yes?
N ° you won't achieve what you're trying to do. The standard Condition section in dynamic action controls if the code of the dynamic action is rendered the see page. It has no impact on the question of whether the actions of true or false are performed during the intervention of the user. Control conditions which are those defined in the when the properties of the dynamic action. As they are evaluated in the browser, they must be specified as JavaScript.
To perform actions conditionally based on the existence of rows in a table requires DA type body of the PL/SQL function or SQL, submitting the values of the requested page, runs the necessary query and returns a value to an element of [probably hidden] page, followed by either an action to run Javascript Code containing conditional logic , or another DA triggered by a change on the hidden element event.
-
Conditional multitable inserts
Hi guys
Below is a question of sample size of the heading "inserts conditional multi-table. I do not understand the explanation given by the author in support of his answer.
insert when (part_no < 500) then into store_inventory (num, product) values (spare_id, part_name) into port_inventory (num, product) values (spare_id, part_name) when (part_no >= 500) then into ship_inventory (num, product) values (spare_id, part_name) select spare_id, part_no, part_name from spares;
Which of the following statements are true for this SQL query.
(A) if the first WHEN the condition on line 2 is true, the INTO clause in line 3 by line 4 will be performed, after which the respites will jump to the next line that is returned by the subquery.
(B) if the first condition WHEN line 2 is true, the condition WHEN in line 7 will not be evaluated.
(C) any IF condition is true, the line 5 INTO clause will be executed without worrying.
(D) apart from the question of whether the first WHEN condition is true or not, WHEN the second condition is evaluated.
The author says that the answer is D. He says "both WHEN the conditions will be evaluated because the conditional INSERT is an INSERT ANY State. The explanation of the authors to support the answer is no not any sense for me! Can someone explain to me?
Hello
What don't you understand? By default a multi-table insert takes as WELL as the evaluation criteria, which means all WHEN clauses will be evaluated.
This is explained in the manual SQL:
multi-table insert
http://docs.Oracle.com/CD/E11882_01/server.112/e41084/statements_9014.htm#i2095116
-
Tabular forms – test whether cursor/focus in the last line (Apex 5.0)
I would like to optimize my sub fast data entry form. I have already added dynamic actions for Excel style and down navigation with up and down keys and also auto-insert new line when you press enter on the last field.
The last thing that I want to achieve is to creata a dynamic action trigger that fires only when cursor is in the last row of tabular presentation. I tried to do that with the function. is() JS, but without success.
Is there a way to test whether the current row (the row with focus) is the last line in the form of tables?
Yes, look that I wanted to accomplish was that, if the cursor is in the last line (column_name1) that if the user presses THE button the last row is deleted and cursor is focused on the previous line (column_name2).
After numerous tests that would be a DA who works for me:
Event: Down key
Selection type: jQuery Selector
jQuery selector: .column_name1
Condition: Expression JavaScript: (event.keyCode = $. ui.keyCode.UP) & (.closest("tr").is$ (this.triggeringElement) (": last-child"))
Code:
$(this.triggeringElement).closest("tr").remove ();
$('input.column_name2:last').focus ();
-
Determine whether a LOV all values
I have an application that uses a dynamic list of values (LOV), which is based on a component of demand. This is used in a select list, and there are cases where there is no entry in the LOV. Is there a function like:
Function Has_Lov_Rows (lov_name in varchar2) return Boolean;
(Alternatively, function Has_Lov_Rows(Item_name in varchar2) return a Boolean value ;) )
or generalizing a bit:
function Count_Lov_Rows (lov_name in varchar2) return whole;
(or Count_Lov_Rows(item_name in varchar2) function return whole ;)
Since I wrote the LOV in question (is be a PL/SQL function in pipeline), I could return PL/SQL package and add a function, or the courage of the definition of LOV and put that in the conditions (SQL returns at least 1...) But from a coding perspective, I would rather the name LOV or point - so if I change the definition of LOV, my conditions will still work.
In this particular application, if the user has the appropriate roles, a selection list and the button will be displayed to allow them to do some extra steps.
You can do this by using a function that retrieves the dynamic LOV query for the LOV, an element is based on views metadata APEX and assesses whether it returns all rows. Something like:
create or replace function has_lov_rows (p_item_name in varchar2) return boolean is l_lov_exists_sql varchar2(4096); l_lov_rows signtype; begin select 'with lov as (' || lov.list_of_values_query || ') select count(*) n from dual where exists (select * from lov)' lov_exists_sql into l_lov_exists_sql from apex_application_page_items item join apex_application_lovs lov on item.lov_named_lov = lov.list_of_values_name and item.application_id = lov.application_id where item.item_name = has_lov_rows.p_item_name and item.application_id = (select v('app_id') from dual); execute immediate l_lov_exists_sql into l_lov_rows; return l_lov_rows > 0; end has_lov_rows;
-
Dynamic action with multiple values of PL/SQL Expression as a condition
Hel
I am currently using Apex 4.0 for a schoolproject.
I have two selectlists (P8_BUSINESSRULETYPE - which has al businessruletypes) and (P8_OPERATOR) that has a select statement based on the businessruletype.
I want to hide the selectlist operator when P8_BUSINESSRULETYPE = 7,8,9 and 10 or P8_OPERATOR = 9
When: change
SelectionType article (s)
Elements P8_BUSINESSRULETYPE
condition: equal to 10
Real actions: hide items p8_operator
False actions: show p8_operator items
ConditionType PL/SQL EXPRESSION
: P8_BUSINESSRULETYPE = 10 OR: P8_BUSINESSRULETYPE = 8 OR: P8_BUSINESSRULETYPE = 7 OR: P8_BUSINESSRULETYPE = 9
What is the problem with my dynamic action? Because he does not hide the operatorfield when businessruletype 10 or 9 are selected in the selectlist. Sessions has also said operator = 9 and Businessruletype = 10
I hope you guys can help out me.
Thank you very much.
2843640 wrote:
Please update your forum profile with a real handle instead of '2843640 '.
I am currently using Apex 4.0 for a schoolproject.
I have two selectlists (P8_BUSINESSRULETYPE - which has al businessruletypes) and (P8_OPERATOR) that has a select statement based on the businessruletype.
I want to hide the selectlist operator when P8_BUSINESSRULETYPE = 7,8,9 and 10 or P8_OPERATOR = 9
When: change
SelectionType article (s)
Elements P8_BUSINESSRULETYPE
condition: equal to 10
Real actions: hide items p8_operator
False actions: show p8_operator items
ConditionType PL/SQL EXPRESSION
: P8_BUSINESSRULETYPE = 10 OR: P8_BUSINESSRULETYPE = 8 OR: P8_BUSINESSRULETYPE = 7 OR: P8_BUSINESSRULETYPE = 9
What is the problem with my dynamic action? Because he does not hide the operatorfield when businessruletype 10 or 9 are selected in the selectlist. Sessions has also said operator = 9 and Businessruletype = 10
The first thing is that a Condition that is applied to a control of dynamic action if the dynamic action is made the see page. She has therefore no impact on the question of whether the actions of true or false are performed. Control conditions which are those defined in the when the properties of the dynamic action. As they are evaluated in the browser, they must be specified as JavaScript.
Secondly, this expression is not valid because it is a space between the colon and the identifiers. Link the names of rating, the colon and the variable element must be contiguous:
:P8_BUSINESSRULETYPE = 10 OR :P8_BUSINESSRULETYPE = 8 OR :P8_BUSINESSRULETYPE = 7 OR :P8_BUSINESSRULETYPE = 9
However the latter is only of academic interest, in this case you need to remove the condition of dynamic action.
In the dynamic of change when action section, P8_BUSINESSRULETYPE, P8_OPERATOR, Condition of JavaScript Expressionand value to the value of the item (s)
($v('P8_BUSINESSRULETYPE') == '7') || ($v('P8_BUSINESSRULETYPE') == '8') || ($v('P8_BUSINESSRULETYPE') == '9') || ($v('P8_BUSINESSRULETYPE') == '10') || ($v('P8_OPERATOR') == '9')
If you are using a browser that supported, this can be simplified to
(['7', '8', '9', '10'].indexOf($v('P8_BUSINESSRULETYPE')) >= 0) || ($v('P8_OPERATOR') == '9')
-
CCA for WF SCRM transition conditions are configurable?
We are on v6111 in Production and v6114 in DEV.
Prod, we have MOBILE workflows with transition conditions that indicate whether the user is a member of Group B, it can proceed to step 4 or step 5. If the user is not a member of Group B, they can only move to step 4. I am now faced with a request to have the same scenario with a SCRM workflow and I don't see the transition state in the user interface model of workforce adjustment. Is there a configuration setting to enable this for the SCRM WFs?
Thank you. -Beckie
Thank you, Kelly. Our business needs is more immediate to wait an ER so I'll build a workforce around the limitation. Appreciate your quick response. Best, Beckie
-
Of what has been posted on this topic, found no one who has covered the how to get the value of a checkboxtablecell located in the same line as the selected cell and use this condition in an if() {else} {}.
what I would do is to check the status of the checkboxtablecell located in the same line as the cell selected; If that's true then run code for the selected cell, if true then have the value of the cell selected to a default value.
In reading; have developed the idea that an ObservableValue can be returned.
Have you tried: (pseudocode)
If (getCellInfo ()! = true) {}
do the instructions placed here
} else {}
take the value "default".
};
private ObservableValue getCellInfo() { table.getSelectionModel().setCellSelectionEnabled(true); table.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE); table.getSelectionModel().getSelectedCells().addListener(new ListChangeListener<TablePosition>() { @Override public void onChanged(Change<? extends TablePosition> c) { Book selectedItem = (Book) table.getSelectionModel().getSelectedItem(); ObservableList<TablePosition> selectedCells = table.getSelectionModel().getSelectedCells(); int selectedIndex = table.getSelectionModel().getSelectedIndex(); ObservableList<Integer> selectedIndices = table.getSelectionModel().getSelectedIndices(); ObservableList<Book> selectedItems = table.getSelectionModel().getSelectedItems(); for (TablePosition tp : selectedCells) { System.out.println("Cell content=" + tp.getTableColumn().getCellData(selectedItem)); } } }); return null;//<-- for now till the wanted rusult is obtained.
Like this don't get me the value of the selected cell, it is I'm agree that it could be modified to produce the result desired.
Could someone please point me in the right direction?
OK this works but;... need have some explanation as to why.
the labour code:
table.getSelectionModel().selectedItemProperty().addListener( (ObservableValue ObservableValue, Object oldValue, Object newValue) -> { //Check whether item is selected and set value of selected item to Label TableView.TableViewSelectionModel selectionModel = table.getSelectionModel(); ObservableList selectedCells = selectionModel.getSelectedCells(); TablePosition tablePosition = (TablePosition) selectedCells.get(0); tablePosition.getTableView().getSelectionModel().getTableView().getId(); //gives you selected cell value.. Object GetSinglevalue = tablePosition.getTableColumn().getCellData(newValue); //Both these return same value ???? String getbothvalue = table.getSelectionModel().getSelectedItem().toString(); //String Cvatr = getbothvalue.split(",")[0].substring(4); System.out.println("The Value of the selected cell: " + GetSinglevalue /*+ "\nThe column value of selected row...:" + Cvatr*/ + "\n" + "The getbothvalue which is split by Cvatr.: " + getbothvalue + "\n" ); if (getbothvalue != "true") { System.out.println("Returned: FALSE"); } else { //Set the value to the default 'InLibrary' System.out.println("Returned: TRUE"); } });
Initially the value inside the String Cvatr = getbothvalue.split(",") [0] .substring (4); went from 5 to 4, and then it was fully subscribed. He comes back and correct assessment in both cases.
Thanks for ANY help in this. !
-
I am one of my apps Android AIR of CS5.5 to animate the portage.
I can't download it to devices that run Android 2.3.x versions. The problem seems to be that by default what android SDK of AIR conditioning with Animate is version 20, but the devices running Android 2.3.x seem to be stuck on the AIR 19 runtime. I downloaded Android SDK of AIR 19, but when I tried to switch to it using 'manage AIR SDK... "I get an error message saying that I can't upgrade to a version of AIR lower than the preinstalled version. Still, I have many users using devices that run Android < 4 versions and won't leave stranded. What can I do to fix this?
Yet can the old way to overlay a term I used in CS5.5, be used? I never tried to superimpose an OLDER version of the SDK on CS5.5, then perhaps it would not have worked either.
In the part of the descriptor XML app Android, you can set the minimum level of SDK, like this:
This has been very convenient for the times where I wanted to make sure someone is on Android 4.0 or later. But it may be worth trying as a way to override the default used by AIR. You can try to use the 9 or 10, depending on whether you think that your users would have at least to 2.3.4.
Or, do not worry them, they always take advantage of your old version.
-
Merge the queries based on the conditional
Apex 4.2
I have a pretty complex question. I have a page that will have a selection list on the data entry form. The selection list contains a list of both 1) Active only or 2) active and inactive areas. We show the active areas when we create a new record (P101_ID IS NULL), we appear active and inactive sectors when you edit a record (P101_ID IS NOT NULL). I have therefore two separate queries to account for each case. Simple so far.
Problem I am seeing that create two lists of selection on the page and put a separate condition on each one (hiding one of selection lists depending on the case the ID IS NULL or the ID IS NOT NULL) does not work. So I was wondering if there was a way to combine queries for that to work based on a conditional statement. I did experiment with the instructions box and unions, etc., but my questions are a bit complicated. They are as follows:
LIST OF ASSETS SECTORS (P101_ID is NULL)
Select unique ISEC.inspection_sector_name, ISEC.inspection_sector_id From INSPECTION_SECTORS ISEC left join HWE_INSPECTION_SCHEDULING SCH on ISEC.inspection_sector_id = SCH.inspection_sector_id Where (ISEC.hurricane_protection_flag = :P157_IS_HURR and ISEC.river_protection_flag = :P157_IS_RIV) AND ISEC.superseded_date is null AND ISEC.commenced_date is not null AND ISEC.inspection_sector_id not in ( Select ISEC.inspection_sectors_id From INSPECTION_SECTORS ISEC left join HWE_INSPECTION_SCHEDULING SCH on ISEC.inspection_sector_id = SCH.inspection_sector_id Where SCH.high_water_event_id = :P157_high_water_event_id AND SCH.inspection_date = :P157_inspection_date) OR ISEC.inspection_sector_id = :P157_inspection_sector_id AND ISEC.superseded_date is null Order by inspection_sector_name
LIST ACTIVE AND INACTIVE SECTORS (P101_IS is NOT NULL)
Select inspection_sector_name, inspection_sector_id From ( Select ISEC.inspection_sector_name, ISEC.inspection_sector_id, '0' as this From dual, INSPECTION_SECTORS ISEC left join HWE_INSPECTION_SCHEDULING SCH on ISEC.inspection_sector_id = SCH.inspection_sector_id Where (ISEC.hurricane_protection_flag = :p157_IS_HURR and ISEC.river_protection_flag = :P157_IS_RIV) AND ISEC.superseded_date is null AND ISEC.commenced_date is not null AND ISEC.inspection_sector_id not in ( Select ISEC.inspection_sector_id From inspection_sectors ISEC left join HWE_INSPECTION_SCHEDULING SCH on ISEC.inspection_sector_id = SCH.inspection_sector_id Where SCH.high_water_event_id = :P157_high_water_event_id AND SCH.inspection_date = :P157_inspection_date) OR ISEC.inspection_sector_id = :P157_inspection_sector_id AND ISEC.superseded_date is null UNION Select unique ISEC.inspection_sector_name|| ' [CLOSED]', ISEC.inspection_sector_id, '1' as this From dual, INSPECTION_SECTORS ISEC left join HWE_INSPECTION_SCHEDULING SCH on ISEC.inspection_sector_id = SCH.inspection_sector_id Where ISEC.superseded_date is not null and ISEC.commenced_date is not null AND ISEC.river_protection_flag =:P157_IS_RIV and ISEC.hurricane_protection_flag = :P157_IS_HURR AND ISEC.inspection_sector_id not in ( Select ISEC.inspection_sector_id From INSPECTION SECTORS ISEC left join HWE_INSPECTION_SCHEDULING SCH on ISEC.inspection_sector_id = SCH.inspection_sector_id Where SCH.high_water_event_id = :P157_high_water_event_id AND SCH.inspection_date = :P157_inspection_date) OR ISEC.inspection_sector_id = :P157_inspection_sector_id NAD ISEC.superseded_date is not null Order by this, inspection_sector_name asc
If the requests are quite complex. I tested the times and they work in APex, separately from the course. Forgive me if I have mispeled anything. But any help on this would be greatly appreciated. Thanks in advance.
Thank you for taking to your friend Frank. You are a bird-guy (my attempt at sarcasm). Nobody has questioned whether its knowledge base; more so in the way he responded to my original post did not «do» Like the people who come on this forum looking for help to those who have greater knowledge, it would be nice to be greeted a little more friendly, lol. Just my thoughts. But, feel free to correct my spelling test, grammar and syntax in my sentences so (the effort once again to emphasize that I misspelled 'AND', and that the request would not be performed--> of course... smh... you are funny)
Apparently I failed to explain the issue in its entirety. I should start by saying... "I have two separate petitions that I tested and already working and am looking to put on a list of selection (at the top) with a conditional execution statement one or the other, through the conditional statement, but again, I was looking for more so for syntax and structure." I'm sorry, I forgot to mention that.
Anyway, enough of this. I found a solution to my problem:
Within the Apex 4.2, you can have a list of selection as a page element. I want to display different results depending on whether Yes or no P101_ID is set to Null or NOT NULL
P101_ID is a primary key for a table.
P101_ID is not the exact name I use in my application / request however.
In addition, you don't need to include double; It's not make or break the query. Something that I forgot to omit them.
In addition, something along the lines of
Select inspection_sector_name, inspection_sector_id From ( .....all the stuff in query 1.......) Where P101_ID is null UNION Select inspection_sector_name, inspection_sector_id From ( ....all the stuff in query 2.....) Where P101_ID is not null
will work on a selection list in the APex. So problem solved. Thank you for all your wonderful insight, of words and thoughts. Thank you.
-
How to use pagebreak with conditions
Hello
My requirement is to use pagebreak conditionally. I need to print the declaration of copyright at the end of all the "RECORD TYPE" data. (Record type is the Group of contour lines)
I am able to print on the next page, but if the record group type doent contain all data, then it sends the copyright page.
If the type recrd doent group contains no data COPYRIGHT should print on the first page after the header itself.
Here is my template:
HEADER DATA
BECAUSE IF RECORD_TYPE: RECORD_VALUEEND end if end for each
STATEMENT OF COPYRIGHT
Client Disclaimer
The information contained in the databases of first database (FDB) is designed to complement the
knowledge of doctors, pharmacists and other health care professional regarding the problems of the drug therapy and patient advice information. This information is advisory only and is not intended to replace clinical judgement in the provision of health services.
FDB disclaims any warranty, express or implied, including any warranty as to the quality, accuracy and relevance of this information for any purpose.
FOR IFRECORD_VALUEENDIFER
Call your doctor for medical advice on the effects on your side. You can report side effects to FDA at the 1-800-FDA-1088
Ask your pharmacist for more information on this drug. You have the right to consultation of our pharmacists. If you have any questions about this medicine, please call the Pharmacy
By signing below, I acknowledge receipt of this document and my consent to accept this medication.
Sig _________________________________________________end for eachYou can check whether or not the group data available and then call a model conditionally.
Example:
0? > - THE GROUP DOMAIN NAME
page break
<>
Set copyright_template as:
Client Disclaimer
The information contained in the databases of first database (FDB) is designed to complement the
knowledge of doctors, pharmacists and other health care professional regarding the problems of the drug therapy and patient advice information. This information is advisory only and is not intended to replace clinical judgement in the provision of health services.
FDB disclaims any warranty, express or implied, including any warranty as to the quality, accuracy and relevance of this information for any purpose.
Thank you
Bipuser -
Left join between two tables using two different conditions
I have following three tables with their data, as shown below.
CREATE TABLE TIREMASTERPROCESS_TEMP
(
PRODUCTIONCODE TANK (12 BYTES),
FIELDNAME CHAR (12 BYTES),
DATACHR VARCHAR2 (60 BYTE),
REVISIONNO TANK (3 BYTES),
DATANUM NUMBER (9.4)
)
Whether the table c. and its sample data are like
FIELDNAME DATACHR REVISIONNO DATANUM PRODUCTIONCODE
AB No. Nch 1 100 0
AB No. Nch 1 108 0
AB No.-of-Nch 1 1 0
Ass42 teased dishes 1 0
Ass42 BTDrumNo1 BTD-051 1 0
AB53 BTDrumNo1 BTD-051 104 0
CREATE TABLE materialcode
(
UPPERMATERIALCODE CHAR (20),
PROCESSNO TANK (3),
PROCESSADOPTDATE TANK (9)
)
Whether the table b. and its sample data are like
UPPERMATERIALCODE PROCESSNO PROCESSADOPTDATE
Ass42 1 20120717
AB53 108 20121121
111 20111104 AS05
104 20120928 AS30
CREATE TABLE BUILDINGSCHEDULEMASTER
(
BUILDINGSIZE TANK (5 BYTES),
GTCODE FLOAT (4 BYTES),
TIREPERCART NUMBER (3.0).
BUILDINGLOT NUMBER (3.0)
)
Whether table and its sample data are like
BUILDINGSIZE GTCODE TIREPERCART BUILDINGLOT
AB42A 4 12 ass42
AB53A 4 88 AB53
AS30A AS30 4 80
BF03A 1 90 BF03
Now, I need to get some data in these fields by using the suite of mappings.
« PR_ » || Trim (a.BUILDINGSIZE) | ' / MPL2' Processid,--PRIMARY KEY
TO_DATE (substr (NVL(b.PROCESSADOPTDATE,'19800101'), 7, 2) |) » /'|| SUBSTR (NVL(b.PROCESSADOPTDATE,'19800101'), 5, 2) | » /'|| SUBSTR (NVL(b.PROCESSADOPTDATE,'19800101'), 1, 4). (' 01:00:00 ',' dd-mm-yyyy hh24:mi:ss') starteff, to_date (SUBSTR (NVL(b.PROCESSADOPTDATE,'19800101'), 7, 2) |) » /'|| SUBSTR (NVL(b.PROCESSADOPTDATE,'19800101'), 5, 2) | » /'|| SUBSTR (NVL(b.PROCESSADOPTDATE,'19800101'), 1, 4). (' 01:00:00 ',' dd-mm-yyyy hh24:mi:ss') startDate.
b.PROCESSNO revisioncodeid,
a.BUILDINGLOT tirepercart ,
CASE WHEN c.FIELDNAME = 'BTDrumNo1' then c.DATACHR end drumtype1.
BOX WHEN (trim (C.DATACHR) = '1' and trim (C.FIELDNAME) = "No. Nch") and THEN click 'YES '.
ANOTHER 'NO '.
END may-BUG,
case
When c.FIELDNAME = 'Wavy'
AND c.DATACHR = 'Use' THEN on 'YES '.
When c.FIELDNAME = 'Wavy'
AND c.DATACHR <>'Use' THEN 'NO '.
fine wavy
Now for the tables A and B I have the simple join as condition
a.GTCODE = b.UPPERMATERIALCODE
But I have to use two different left join conditions to join the table B and C to calculate the RESP fields according to the condition.
Now, I have to use
(trim (b.UPPERMATERIALCODE)). » -'|| Trim (b.PROCESSNO) = Trim (c.PRODUCTIONCODE) | » -'|| Trim (c.REVISIONNO)
condition to get the data for the WAVY and DRUMTYPE1 fields.
But at the same time, I have to use
substr (Trim (b.UPPERMATERIALCODE), 1, 2). » -'|| Trim (b.PROCESSNO) = Trim (c.PRODUCTIONCODE) | » -'|| Trim (c.REVISIONNO)
conition to derive the CHAFER field.
And for this reason I am come so many duplicates and do not correct results for JUNEBUG, WAVY, DRUMTYPE1, and STARTDATE field.
I need some advice as how can I do so that I get the correct results without duplicates for the PRIMARY KEY.
Thank you
MaheshIt would have been easier to answer if you gave us your example query that gives incorrect results - which both show us what you are doing and give us a starting point.
Insert instructions for data, rather than only the data would have helped too, making it more quick to test this point.
You do not show what you have done with your two outer join criteria, but I think you need to list TIREMASTERPROCESS_TEMP in your query twice, with alias names. Here's what I did:select a.BUILDINGSIZE, a.GTCODE, b.PROCESSNO , c1.FIELDNAME, c1.DATACHR, C2.FIELDNAME, C2.DATACHR , CASE WHEN c1.FIELDNAME='BTDrumNo1' then c1.DATACHR end drumtype1 , CASE WHEN (trim(c2.DATACHR) = '1' and trim(c2.FIELDNAME) = 'No-of-Nch') THEN 'YES' ELSE 'NO' END CHAFER , case when c1.FIELDNAME='Wavy' AND c1.DATACHR='Use' THEN 'YES' when c1.FIELDNAME='Wavy' then 'NO' else null end wavy from BUILDINGSCHEDULEMASTER A join materialcode b on a.GTCODE=b.UPPERMATERIALCODE left outer join TIREMASTERPROCESS_TEMP c1 ON trim(b.UPPERMATERIALCODE)||'-'||trim(b.PROCESSNO) = trim(c1.PRODUCTIONCODE)||'-'||trim(c1.REVISIONNO) left outer join TIREMASTERPROCESS_TEMP c2 ON substr(trim(b.UPPERMATERIALCODE),1,2)||'-'||trim(b.PROCESSNO) = trim(c2.PRODUCTIONCODE)||'-'||trim(c2.REVISIONNO)
C1 is an alias for the TIREMASTERPROCESS_TEMP line which is necessary for drumtype1 and wavy, c2 is an alias for the TIREMASTERPROCESS_TEMP line required for JuneBug. There was some minor errors in your calculations of field I tried to correct.
The results are:
BUILD GTCO PRO FIELDNAME DATACHR FIELDNAME DATACHR DRUMTYPE1 CHA WAV ----- ---- --- ------------ ---------- ------------ ---------- ---------- --- --- AB53A AB53 108 No-of-Nch 1 YES AB42A AB42 1 BTDrumNo1 BTD-051 No-of-Nch 1 BTD-051 YES AB42A AB42 1 Wavy NotUse No-of-Nch 1 YES NO AS30A AS30 104 NO
Hope this helps,
David -
Hi Experts
We are in a situation where we need to invoke the Siebel takeover rules for trigger points different as button clicks, save records etc.
Contributions of Siebel and expected outcome of the OPA are owned by entities that are common to all these trigger points.
So, instead of having individual OPA and therefore rulebases (OPM projects) mappings for each trip point different, we want to examine whether we can use a single modules (project OPM) and correlatively an OPA Mapping in Siebel to invoke it.
This is required to maintain all the rules of membership in a business district in a place or project to the OPM.
During this operation, we understand we must separate rule files in the project to the OPM for each trigger points and the corresponding rule documents in these subfolders.
He must also understand how to change the value of trigger point to OPA as 'Submit button', 'Field1 save' etc.
But we don't know how for a trigger point special, we can say the modules to run the rules of this particular trigger only point and ignore the rules for other trigger points.
A solution is to add the condition to check the trigger to each rule point, but has held the multitude of rules each having mutiple conditions, which is a good option or y at - it an easier way to do this?
Help, please!
Thank you
Swati
Published by: 927439 on February 13, 2013 23:53
Published by: 927439 on February 13, 2013 23:54927439 wrote:
According to my understanding, is the name of OPA mapping port for outgoing in determining server Web Service in Siebel, and while the integration, it searches a zip file of modules of the same name in the deployment directory of the server determination, which is generated by compiling the OPM project or one. If I have only one of the modules, then I'll have only 1 file zip for her determination Server deployment directory. How can I call it using several maps each with a different name and the name of the output corresponding to the webservice port. To develop.
The "output Port name" in the mapping of Siebel BO serves two purposes. For a call from Server determinations, it is used for the outgoing port. For the Web appeal determinations it is used as the name of modules during the call to an interview of Siebel.
When you use the server of determinations, the module name is never referenced directly, the only thing that matters is the url specified in the output Port.
So, if you use a server of determinations only, its possible to have several mappings pointing to the same modules.
It is also possible for the determinations of the Web, as long as you have another way to get the name of modules at the launch of a URL of determinations of the web.
The best way to reproduce a mapping of Siebel, OPA is to export it, rename it and then import the mapping with the new name.
The port mapping outbound example for AdminSmokeTest
In the example below, two different outbound ports point to the same endpoint. The only thing different in this regard is the name.
Name: AdminSmokeTest
Full name of service: server automation determination strategy
Transport: HTTP
Address: http://localhost:8888/siebel-determinations-server/assess/soap/generic/10.0/AdminSmokeTest
...Name: CopyOfAdminSmokeTest
Full name of service: server automation determination strategy
Transport: HTTP
Address: http://localhost:8888/siebel-determinations-server/assess/soap/generic/10.0/AdminSmokeTest
...I hope this helps.
See you soon
FrankPublished by: frank.hampshire on February 18, 2013 08:47
Published by: frank.hampshire on February 18, 2013 09:01
Maybe you are looking for
-
Since there is no deletion batch for reminders on iPhone or iPad, I went to iCloud.com to remove reminders of old, duly completed. Alas, I could delete successfully a SINGLE reminder completed a total of 1221. Try to delete both does that to my getti
-
Link to my psge email sent by mistake-how the stop open?
I sent an email with a string of previous exchanges of e-mail copied to it. By mistake, a link was sent with him reading the 'documents '. This link opens on my email page Outlook.com . The recipient of the email can access my email by opening the li
-
I downloaded the main installer and let it can work, it says download. I left it for 30 minutes, always downloaing. My internet connection is fine, it is on the internal network of my company. I tried to download the Installer https://www.mozilla.org
-
I installed Quick Books Pro 2008 on a new computer HP P6124C-B and restore a company backup file. Everything seems to work fine except when I try to create a new invoice. This horrible tire will just around and around and I have to start the task a
-
Hello I have a .dll file with many header files (.h) how can I generate a .fp? Thank you