ListView, title change to header based on the stored value.
Hello
I'm new to native development, always trying to get a hang of how things are done in QML. I was wondering how it was possible to format the header in the ListView based on the value of the header. For example, the datamodel is sorted by name and status. Status is stored as an integer 0,1,2,3,4,5 in the database. Whenever the ListView displays the headers, I want to show the actual title of the State (for example in progress, completed) instead of display 0 or 1.
Thank you for your help.
If... else if... else must have worked well, please send your code.
Tags: BlackBerry Developers
Similar Questions
-
Block based on the stored procedure cannot modify Default_where clause
Hi all
I tried to create a block based on the stored procedure that it works very well with the result set for the refcursor. But if I need to add filters on the block using where clause in the palette of goods or
using the property block set in where clause, it does not error but does not review filters .
tried everything to you please let me know. This is a restriction whereby we can set filters on the block when we create the block based on the stored procedure.
Thank you
Check in Form Builder Help:
Creating a block of data from a procedure that uses a ref cursor
... You can't pass a WHERE or ORDER BY clause clause in a stored procedure.
But you can send your WHERE condition using the query Source Arguments.
If the procedure is on the side of the database (not in the forms module), ensure that the procedure is not vulnerable to injection of SQL code.
Kind regards
Zlatko
-
based on the prompt value see the FDF anayasis
Hello
I have a situation like this
I use obiee 11g
Based on the prompt value in him would like to show 3 different analayses.
I mean that if the value of guest in the page has as abc data it should show the anlaysis1
If the prompt value data as def it should show the anlaysis2
If the prompt value data as the IGS, it should show the anlaysis3
If the prompt value data as jkl it should show the anlaysis3
Why 3 diff analysis is because I have my list 2 columns in each anayaiss and they are 3 different tables.
One more thing
Obiee do we have a show and a return value for a radiobutton/drop-down list. As show us abc how invites and returns 1. is possible?
Thank you
Published by: user123 on July 12, 2011 12:29You can have n number of reports, simply use the union all in the dash prompt sql results and this will give you the choice to select any report you want.
-
How to find the bpel instance in 11 g based on the index values
We have 10 GB BPEL processes where we define the 4 index values for all instances. Whenever the support request comes, ask us the values of index and based on what we're looking for the process instance.
We have now migrated bpel 10g and 11g process. How to find the bpel instance in 11 g based on the index values?You can go there. http://soasphere.blogspot.com/2011/04/how-to-Serch-composites-for-index.html. Do a join on the cube_instance and ci_indexes tables.
-
Change the text displayed, based on the threshold value
Hi users of Labview,.
I need help with display and editing text in labview.
The text should display and change according to the following conditions:
0 volt - "no power".
1 volt - "controller ON".
2 Volt - "Rotor Running"
3 volt - "Rotor stopped".
Based on the voltage read by the channel, the text must be displayed and modified on the same area of the front panel. For example, initially it will be 0 Volt and the text "No power" should appear as an indicator of text (and not as a warning message). He needs to change ' controller we ' when the chages of voltage from 0 to 1 volt. The canal reads the analog input voltage (range 0 - 5V).
I'm relatively new to labview. So please give me pointers or from suggestions on how can be done. Any help is greatly appreciated.
Thank you
REDA
Hello
Thanks for the crossrulz of notes, have not used the front threshold. For this simple example, it is "symmetrical", but I can see how the values in the table have been does not correspond to the index position that is so true useful. Learn something every day, I could not resist, wanted to try.
OK, here's a sample VI that puts a custom message based on the crossing of a threshold. Home work is to study the components before asking to :-)
The dice are the analog signal of 0 to 6. He rounded to the whole number to provide the index number. Power is the index number in the index table, the table being hard-coded text messages.
Two additional indicators may be deleted, useful to see what is happening.
And get rid of the value 0 if you want the text to match the number, he he he
Enjoy.
-
How to change template name based on the parameter in bipublisher
Hi all
I want to change the model based on the selected report parameter.
For example: If A is selected it should use a model, if B is selected it should use the B model.
Thank you
KSSHII,
can you clarify pls.
If you have any what example it would help me a lot... I use a model RICH in BIpublisher.Published by: André on November 12, 2009 20:10
-
Make visible subform based on the dropdown value
I use this script successfully.
Form1. #subform [0]. typeOfIncidentDdl::change - (JavaScript, client)
assocInfoSubform.presence = 'hidden ';
custInfoSubform.presence = 'hidden ';If (xfa.event.newText == "associate injuries") {}
assocInfoSubform.presence = "visible";
} else {}
custInfoSubform.presence = "visible";
}But I would like to know how can I use numeric values in the object palette instead. For a drop-down list in the object > tab link, I click on the checkbox 'specify item values', where the values are, by default, the numbers, and the text is something I've specified in the tab field under "Items in the list." What is the syntax for the use of these numerical values instead of text? Here's what I tried without success.
If xfa.resolvNode(form1.#subform[0].typeOfIncidentDdl).value = "1"; {
[fields become visible and required with error messages]
} else {}
[fields are hidden and not required]
}And this:
var oSubform = xfa.resolveNode("form1.#subform[0].typeOfIncidentDdl.Value");
If (oSubform = 1); {etc.
And this:
var oSubform = xfa.resolveNode("form1.#subform[0].typeOfIncidentDdl.rawValue");
If (oSubform = 1); {etc.
I need to be close, but I don't quite have the correct syntax. Thank you for pointing me in the right direction.
Hello
Good man Jono, I cracked switch statements based on his examples
I suspect that this is part of the reverse lookup that explained Paul.
My understanding (now):
- xfa.event.newText is the new value, but it is not yet fully committed to the value of the drop-down list.
- With the help of this.boundItem (xfa.event.newText); you use this newly modified (but not yet posted) value and it controls against known display items.
- The switch statement then uses this display element, rather than the uncommitted newText.
I still think I have uses the event exit and rawValue, but "if it ain't broke, don't fix it!"
Good luck
Niall
-
Popup is not refreshing based on the current value of the row in a table
Hi all
1.I have created an entity object View for the Table Emp
2. then I created an editable view object based on the EMP table
3. create a Page like jspx
4 drag and drop the View object as read-only Table in this homepage
5 drag and drop the view even object as in this homepage
6 goto the shape and dressing with Popup
7. then create a dialog inside the pop-up window
8. then, go to the Table and then surround with a collection of panels
9. create a button in the toolbar of the collection Panel name it as edit
10. drag and drop the showpopupbehaviour the button change
When I run the application. It displays all records in the emp table. If I'm in line 6. It shows the values of line 6 in the pop-up window, but if I moved to the next line which is the 7th and then press the button to change is to always show the 6th place of the values only.how to display the values in the pop-up window based on the cursor line .pls guide me in this.
Thanks in advance
C.KarukkuvelHello
Make sure you use contentDelivery = "lazyUncached" in the context menu
Gabriel
-
void / vi based on the Boolean value
Hello
I have a main vi and I want to call a subvi based on a Boolean value, that is when the Boolean entry gets the true value, the sub - vi must run, otherwise it shouldn't.
To do this, I added the Boolean control component connector of the sub - vi and I added a while loop in the sub - vi, which has 'continue if true' condition. I also made this point prescribed to the subvi.
However, I noticed that even if the Boolean value false maintains execution of the sub - vi.
Can you get it someone please let me know what the problem with this approach?
Thank you
Despres
Put the Subvi code (or the Subvi set) inside the true case of a case structure and wire your boolean to that. I prefer the second option.
-
How to change input during execution of the VI values?
Hi, I am involved in a project of I am responsible to implement the code for a stepper motor. A problem that I face is how to do a "update" button, I have 5 input values that I need, but is it possible to change the values without having to restart the VI? Basically I'm looking for a way to update my variables and run the same block of code every time.
At first I thought to use a for loop and have a each press on the button update a new iteration of the loop with the updated values but that doesn't seem to work, can someone point me in the right direction?
Thank you.
In my view, that a simple event structure you get. Check out the attached VI. If you need additional assistance, please your postal code. Note that this code uses a button (update) to update all 5 digital inputs. You can simply right-click in the structure of the event and select "Change events managed by this case" to make sure that change the any digital inputs generates the event.
-
Order based on the particular values
Hello
Here is an example of data from the table I,
ID CAT_DESC OVERDUE_DAYS
1 DEPOSIT 45
1 DEPOT 48
10 FT 30
10 FT 40
10 FT 50
1 DEPOSIT 40
2 45 LOAN
2 43 LOAN
2 LOAN 40
My request here is to show records with CAT_DESC = "Pi" FIRST and then sort the another recordset based on the OVERDUE_DAYS DESC.
I tried the query below and I do a sort, showing all records in FT first with overdue_days desc, and other records also sorted by the column ID of the rest...
Select * from test_order
order by case when id = 10 then 1 else 2 end, id, overdue_days desc;
The result retrieved is
ID CAT_DESC OVERDUE_DAYS 10 FT 50 10 FT 40 10 FT 30 1 DEPOSIT 48 1 DEPOSIT 45 1 DEPOSIT 40 2 LOAN 45 2 LOAN 43 2 LOAN 40
BUT THE RESULT I WANT IS
ID CAT_DESC OVERDUE_DAYS 10 FT 50 10 FT 40 10 FT 30 1 DEPOSIT 48 1 DEPOSIT 45 2 LOAN 45 2 LOAN 43 1 DEPOSIT 40 2 LOAN 40 Help, please... Is this feasible?
.. Deleted...
Try
Select * from table_t
order by case when id = 10 then 1 other end null, overdue_days desc, cat_desc
-
Materialized view, based on the stored procedure
Hi all
is it possible to create a materialized view on the results returned by a stored procedure?
If this is not the case, do you think that any other way except for filling a table with data from the stored procedure and then founded the MV on it?
Thanks in advance.
MichaelTsilikidis wrote:
Sorry I don't speak properly. In fact the procedure does not return a value, it fills one of its parameters (of the ref cursor type) of data. That's what I wanted.
No it's not.
REF CURSOR don't store data, so it's not possible.
A Ref cursor is just a pointer to a query... and you can't "select from" a ref cursor, you can retrieve only one open.
PL/SQL 101: Understand the Ref Cursor
As correctly stated above, you can't question from a procedure to a function, and a materialized view is based on a query, you cannot use a procedure in a materialized view.
You could use a function pipeline instead of a procedure, or have the pipeline function obtain the results of the procedure and pipelines, and then the materialized view could be based on the results of this function in the pipeline.
example of function pipeline:
SQL > CREATE or REPLACE TYPE AS OBJECT num_descript (num number, descript varchar2 (30))
2.Type of creation.
SQL >
SQL > CREATE or REPLACE TYPE tbl_num_descript AS TABLE OF THE num_descript
2.Type of creation.
SQL >
SQL >
SQL > CREATE or REPLACE PACKAGE AS-reftest
2 FUNCTION pipedata (number p_choice) tbl_num_descript RETURN PIPELINED;
3 END;
4.Package created.
SQL >
SQL > CREATE or REPLACE PACKAGE BODY AS-reftest
2 FUNCTION pipedata (number p_choice) tbl_num_descript RETURN PIPELINED IS
3 v_obj num_descript: = num_descript (NULL, NULL);
4 v_rc sys_refcursor;
5 BEGIN
6. IF p_choice = 1 THEN
7 v_rc OPEN to SELECT empno as num, ename like descript FROM emp;
8 ELSIF p_choice = 2 THEN
9 OPEN v_rc to SELECT deptno as num, dname as descript OF THE Department;
10 END IF;
11 LOOP
12 FETCH v_rc INTO v_obj.num, v_obj.descript;
EXIT 13 WHEN v_rc % NOTFOUND;
14 PIPE ROW (v_obj);
15 END LOOP;
16 v_rc NARROW;
RETURN 17;
18 END;
END 19;
20.Package body created.
SQL > select * from table (reftest.pipedata (1));
DESCRIPT NUM
---------- ------------------------------
7369 SMITH
7499 ALLEN
7521 WARD
7566 JONES
7654 MARTIN
7698 BLAKE
7782 CLARK
7788 SCOTT
KING 7839
7844 TURNER
7876 ADAMS
JAMES 7900
7902 FORD
7934 MILLER14 selected lines.
SQL > select * from table (reftest.pipedata (2));
DESCRIPT NUM
---------- ------------------------------
10 ACCOUNTING
SEARCH 20
30 SALES
40 OPERATIONS -
Increment sequence based on the existence value
Hello
I have a requirement,
I need the value sequence based on the values exist in the database.
Let me explain with an example of a column, I have values such as 1,2,3,4,5,6,7,8,10,12,14, etc...
Here I have to generate the value of the sequence 9,11,13 follows...
Logically it please suggest me... I try with While loop I could not reach again.
We want to help you.
Concerning
Rambeauselect level missing_values from dual connect by level <= (select max(your_column) from your_table) minus select your_column from your_table /
For example:
with t as ( select level n from dual connect by level < 9 union all select 10 from dual union all select 12 from dual union all select 14 from dual ) -- end of on-the-fly data sample select level missing_values from dual connect by level <= (select max(n) from t) minus select * from t / MISSING_VALUES -------------- 9 11 13 SQL>
SY.
-
Conditional display in the text box based on the calculated value
Hello
I have radio buttons that each have a numerical value. For example = 1 A = 2 C = 0. In the example below, the total is equal to 5.
The sum is displayed at the bottom of the document and is passed to another text box:
Instead of '5' displayed in the text box on the right, it should display a "Control" Word like this:
The displayed word is based on the totals through this range:
1-2 = 'absorbing '.
3-4 = 'practitioner '.
5 to 6 = "control".
The script I used to pass the value from the left to the right text box in the chart above is:
name of the field to text box;
var cTextBox = 'Cabinet Talent strategy knowledge - total';
get the value of the field with the name in cTextBox;
var sTextBox = this.getField ("cTextBox") .value;
Set the value of this field;
Event.Value = sTextBox;
That I need to add to this script to show one of the words, such as "control" above?
I am a complete novice to scripting. I found the above script online and somehow got it to work.
I thank very much for any help or pointers, you can provide.
Best regards
Sorry, there were some errors in the code that I provided above. Try this:
If (sTextBox > = 1 & sTextBox)<= 2)="">=>
Event.Value = "absorbing";
} ElseIf (sTextBox > = 3 & sTextBox)<= 4)="">=>
Event.Value = "practitioner";
} ElseIf (sTextBox > = 5 & sTextBox)<= 6)="">=>
Event.Value = "master";
} else {}
Event.Value = "";
}
If it still does not respond, you can send me the file at [email protected] and I'll check...
-
Passing DB values to the text based on the Select Value box
Hello
I'm very big thing back to the Oracle APEX. In my project, I have a requirement in which I need to pass different values for the corresponding text boxes on a different page based on the value I select in the item "Select Value".
I tried using processes calling for demand, but could not get the desired result.
Please suggest!Hello
Can you repeat your scenario on apex.oracle.com? It will be easier to fix it this way.
Kind regards
Maybe you are looking for
-
secure, Web site log auto password when the password turn off
When I go on a website that is secure such as Amazon, Paypal and others. When I click on connect my password is automatically filled in. I don't want, I enter the password I. Firefox options: history and cookies are all cleared, don't forget no passw
-
which backup to use local or Roaming
I need my FF profile please on a USB backup. Can I save the profile Local or roaming profiles please Thank youpingu70
-
I just upgraded to the new Iphone 6 s more and tactile 3D on everything works expect applications on the home screen when I long press she made sure you can move the apps autour with x, but does not have the menu of dialogue that its supposed to come
-
Aperture library files gone!
I opened opened today as usual and found about 85% of my photo files are more listed in the library. I can not find them. There are about 5 things listed under 'Projects' that are a few years old but I used to have listed dozens. I have Aperture
-
Add content to the constant of typedef
I created a typedef strict compelled constant references to the controls and indicators which makes a .ctl file. Now I wish to add control references to the typedef but can not understand how... I tried to add new references to command directly to th