Selecting View States and TabNavigator Canvases
Hello all Flex fans...
I have two questions for somebody who has done this before.
It will take a bit of explaining so bear with me.
I have a datagrid called "selClaimant" as the starting point
of my application. When I select something from the selClaimant
datagrid I change view states to a view called "ClaimView". In the
ClaimView state I have a TabNavigator control with several canvases
called "Claimant" and "Claims" and several others.
My first question is when I select something from the
selClaimant datagrid how do I ensure that the Claimant canvas is
displayed in the TabNavigator and not the Claims canvas???
My second question is similar to the first but with a twist.
First off the Claims canvas also has two view states (call them
"ViewOne" and "ViewMany"). ViewOne has a datagrid control called
selClaim that allows me to select a claim that has been filed by
the claimant. ViewMany allows me to see all the details about the
selected claim. When I select a claimant from the selClaimant
datagrid I query the database to see how many claims that the
selected claimant has filed. If there has only been one claim filed
I want the starting state to be the ViewMany canvas when the user
clicks on the Claims TabNavigator. If there is more than one claim
in the database then I want the ViewOne to be displayed so I can
select which claim I want the detail on.
I store the number of claims in an array so I can use the
array length to see if I have one or more claims but I am not sure
how to logically force my view state and canvas state.
Thanks in advance to the guru that helps me with this one!!!
Have an Ordinary Day...
KomputerMan ~|:-)
Question one is answered... put this into the action script
that handles the datagrid selected event.
claimantTabNav.selectedIndex = 0;
claimantTabNavigator is the ID of the tabnavigator whose
canvas I want selected. 0 is the first tab in the navigator. Good
thing I grew up on UNIX and can still remember how to count
starting with a 0 instead of a 1. :)
Have an Ordinary Day...
KomputerMan ~|:-)
Similar Messages
-
help! my first mac! and I can't get past the Welcome menu window... I try to select "united states" and want to continue but nothing happens. Any idea why?
Restart the Mac, and start over, it very well could be frozen. This is not the way you would like to start out your Mac experience!
-
Save Select List states and load it on reload
Hi all,
I have a form in which the user have to choose the values from 5 Select Lists connected with LOVs. If the user selects values in the first 3 lists, but in the fourth one the value which he/she looks for does not exist, the user clicks on a link "Other" opening a page where he/she can enter the value and this value is added to the corresponding LOV on close of the page. The problem is that on the main page the Select List is not updated. The page should be reloaded. And if the page is reloaded, all the values selected in the first three lists are gone and the user should select everything again.
So the question is how to reload one select list keeping the selected values from the others?
Thanks in advance.Hi Ivan,
Have a look at: Re: ORA-20507: Invalid numeric value This allows you to create new records for a select list without leaving the page.
Andy -
What is the difference between hidden field and view state??
Both view state and hidden field are use to store page specific information then, what is the difference between both of them??
The ViewState of a page is actually stored in a large hidden field and it contains information about the entire page whereas a single hidden field that you define yourself is used to store some single value that should not be displayed.
Please refer to the following page for more information about ASP.NET View State:
http://msdn.microsoft.com/en-us/library/ms972976.aspx
But please post your ASP.NET and web related questions at
http://forums.asp.net in the future.
Also, please remember to mark any helpful posts as answer. -
Reload data when chaning view state
Hi all,
I have a main application ("MTF.mxml") and two view states in
the application (myChallenges) and (responses). In the view states,
I have inserted two customized components.
The MyChallenges-component is a list of challenges and when a
challenge is selected, I switch from the myChallenges-view state to
the responses-view state using a costum event dispatcher.
So far so good,
The problem is that when I change to the responses-view state
and therefore to my responses-component, the data loading on the
panel of the component is only the request that I get when I for
the first time enter the responses-component. When I go forward in
my application from the responses-view state to the
myChallenges-viewstate to pick a new challenge, the responses-view
state does not reload with the new challenge id - actually, no
action script code in the responses-component is processed at all!
I figure it has something to do with the component's loading
events.
I use the creationComplete-tag property in the component to
activate an init()-function to handle my ActionScript code. But
this seems to activate the function only when the component is
created for the first time!
How do I handle this? I tried using the enterState-property,
but with no succes!
Please help me, if anyone knows the answer!Thank you for the quick feedback.
The enterState-property works fine, it seems that the Action
Script code loads every time.
Actually, what I really wish is that the component "reloads"
every time. The problem is that my actionscript code adds elements
to the scene, edits properties and so forth, everything depending
on what challengeId there is given to the component. When the
component has completed the code once, variable-values, elements
and so forth are still kept until the state is entered again. Is it
not possible to actually reload the component - not just making
"show/hide" it, as I do now? -
Application View States -vs- Windows
Hello,
I'm a new Flex user, and have just gotten started using Flex
2. I have lots of experience developing web apps using ASP.NET. I
have poured over all the downloadable documentation, and most of
what I see in the docs are single window samples. I have a flex
application to develop that will probably end up being about 25
different screens. I am wondering what the proper way to partition
the source code should be. Do I need to create one "MXML
Applicaton" per screen? If so, that would result in a different SWF
file for each screen, right? When I move from screen to screen, is
it going to keep the same session object so I can retain the
context of the user's actions? Or, is it the standard practice to
try to cram all of the screens into a single MXML Application file
as different "View States" and have the entire application load up
when they hit the huge single SWF file?I have the same question !!
I too have to develop a rather complex
Ordering-Production-Shipping-Billing application. Many screens and
lots of business logic.
I will use ColdFusion for the backend and lots of data logic
will be in the database and CFC. Flex will handle the user
interface part.
But I am not quite sure how to handle the windows part and
also the "modal" aspect of the interface.
For now my prototype uses ViewStacks and some panels uses
states depending on customer type or product type selected. The
user needs to be at the top most view of a main function to access
other main functions like Production or Shipping. If a user digs
into a main function I remove the options (using states) to jump to
other main functions.I want them to close the transactions before
jumping to other things in the application.
The main MXML file contains the application bar and
MainViewStack. Each main function is in a separate MXML file (as
per examples in the documentation).
The swf is likely to be large but I do not mind so much, it
will be used on the Intranet on a 1gb network.
Steve -
Feature Request: "View States" (layer visibility state)
Hi all,
I've been using Illustrator now for many years. A large majority of the graphics I create are used in Flash for many of the games I develop. Some of the graphics are exported from Illustrator as vector art, some are output as raster.
There is a game that we've been working on recently that demonstrated a large need for a feature I came up with known as "View States."
Why this is important to me:
When you have an Illustrator file that contains many graphical elements, no matter how they are arranged in Illustrator using multiple layers or not, it is very, VERY challenging to be able to remember which layers and/or graphical elements should be kept visible, and which shouldn't be kept visible when you are outputing graphics in various ways.
Going back to the game that my co-worker and I were working on, we have an Illustrator file that has 4 layers at the root level, in those layers, many more graphical elements and sub-layers each containing many, MANY more elements and sub-layers. The game we are working is designed such that the background of the game is raster art; however, other foreground elements are output as vector art. Anytime a change needs to be made to the artwork, I have to remember which layers I should hide and which should be kept visible in order to output the necessary graphics in whatever format I need to.
The first question you may ask is, "Why not simply create a layer structure that allows you to simply hide the foreground or background elements so that you can output exactly what you need?" That is a very good approach at producing the artwork. And I'm completely open to changing the way I work being that is the only way I've been able to grow as a digital artist. However, I feel that this feature has merit in providing a simpler way for designers to work if they are unwilling or don't care to change the way they work. In addition, some of the graphics we developed are grouped in such a way that splitting them could make it more challenging to find pieces of art in a file that has many many layers.
How this feature may work:
Basically a new panel titled "View States" would be in the interface. This panel would allow you to create "view state" instances. In each instance you provide a name for it to make it easier for you to remember what it is for.
Each view state, when selected, would hide or show the layers you've set to be visible or not visible for that particular view state, thereby making it easier for the designer to know which graphics need to be output for a particular element of their artwork. If you want to change the visible properties of a layer for a particular view state, simply select the view state and then alter the visibility property of that layer and it will remember that information for that particular view state.
There are many other options that could be added for this feature, but I just wanted to get the feature information out there to see what you guys think.Hello Sly,
I did exactly thuch beast for freehand some years ago. It's called Layersets. Perhaps we can discuss this off list first.
My Email is [email protected]
regards
Michael -
I don't know the correct terminology, so I don't think that I've posed my question very well. Employees will be using the form that I'm trying to make, and I want for them to be able to select a city from a large number of cities, and for that city to ultimately show up on the form (not merely in the data that is output.)
I thought that the clearest way for them to select a city would be for them to start by selecting the pertinent state first. That would allow the list of cities in that state to be shorter and more manageable. So I'd like for them to be able to select a state, and then by virtue of that selection, have a list of cities pop up. I sort of achieved that by using buttons for the states, and then under "actions", I chose "open a file". Then I set it up to open a file that contained the cities that are options,and set each city with a button.
The result is that it goes from my form to a second window, containing states and then to a third window, containing cities. (Actually, there are multiple "city" windows because there's a list of cities for each state.) But then I'd like for the city that they select to wind up being on my original form. Is there an "action" that I can choose that will make that happen?
Or is there a better way to accomplish what I'm trying to accomplish? Maybe I'm just going about this all wrong(?) Any suggestions would be very much appreciated Thank you!Yes, there is a much better way. I'd recommend using a combo box for the list of states. When the user selects a state, the list of associated cities would populate a second combo box, allowing the user to select a city. This type of functionality relies on JavaScript. If you are unfamiliar with with JavaScript in Acrobat, I'd suggest starting with the following article: http://acrobatusers.com/tutorials/2007/js_list_combo_livecycle/
Ignore anything to do with LiveCycle Designer. If you get stuck, post again. -
Hi hoping someone could help. I understand view states and can use them. However in this situation I want to have a view state for a control bar but I already have 2 view states for another component (a panel component) in my Flex app and want to separate the control bar view state from the panel view state.
Therefore when I set the currentState = 'showBtn' it's affecting the panel view state and I don't want it to. I've tried putting the <mx:states> tag in under the component i'm trying to add the button view state to but i'm getting an "Initializer for the property 'states' is not allowed here" error.i've tried that... when i start using the id of the component like myPanel.currentState = "whatever" it tells me the currentState whatever is undefined. it only seems to work if i do currenState = "whatever". here is some of my code to help you see my problem:
<mx:Script>
<![CDATA[
private function toggleFilter():void{
if (p1.currentState == 'viewRequests'){p1.currentState =
'searchFilter';filterButton.label =
'Hide Filter';}
else{p1.currentState =
'viewRequests';filterButton.label =
'Show Filter';
private function buttonBar():void{
if (changeQueue.selectedItem.REQ_BY_ID == Application.application.parameters.emplid){queueControlBar.currentState =
'showRecallBtn';}
else{queueControlBar.currentState =
]]>
</mx:Script>
<mx:states>
<mx:State name="viewRequests">
<mx:AddChild relativeTo="{p1}" position="firstChild">
<mx:HBox id="resultBox" width="100%" height="100%">
<mx:DataGrid id="changeQueue" x="0" y="0" width="100%" height="100%" dataProvider="{SAMService.getRequests.lastResult}" change="buttonBar();">
<mx:columns>
<mx:DataGridColumn headerText="Change ID" dataField="CHANGE_ID" visible="false"/>
<mx:DataGridColumn headerText="Change Type" dataField="CHANGE_TYPE"/>
<mx:DataGridColumn headerText="Status" dataField="STATUS"/>
<mx:DataGridColumn headerText="Request Date" dataField="REQ_DT" labelFunction="doDateLabel"/>
<mx:DataGridColumn headerText="Requested By ID" dataField="REQ_BY_ID" />
</mx:columns>
</mx:DataGrid>
</mx:HBox>
</mx:AddChild>
</mx:State>
<mx:State name="searchFilter">
<mx:AddChild relativeTo="{p1}" position="secondChild">
<SearchPanel id="searchPanel" width="100%" height="100%"/>
</mx:AddChild>
</mx:State>
<mx:State name="showRecallBtn">
<mx:AddChild relativeTo="{queueControlBar}" position="lastChild">
<mx:Button label="Recall Item" icon="@Embed(source='images/recall.gif')" enabled="{changeQueue.dataProvider.length > 0}"/>
</mx:AddChild>
</mx:State>
</mx:states>
<mx:HBox x="0" y="360" width="95%" horizontalAlign="center" paddingLeft="25" paddingRight="25">
<mx:Panel id="p1" width="100%" height="90%" layout="absolute" title="Change Request Queue" currentState="viewRequests">
<mx:ControlBar>
<mx:HBox id="queueControlBar" width="100%" horizontalAlign="center" currentState="">
<mx:Button label="Details" icon="{detailsIcon}" enabled="{changeQueue.selectedIndex>-1}" click="WindowManager.add(getDetails(), this, true);"/>
<mx:Button id="filterButton" label="Show Filter" icon="@Embed(source='images/search.png')" click="toggleFilter();"/>
<mx:Button id="OICbutton" label="Export OIC Changes" icon="@Embed(source='images/export.png')" enabled="{changeQueue.dataProvider.length > 0}" click="oicChanges();"/>
</mx:HBox>
</mx:ControlBar>
</mx:Panel>
</mx:HBox> -
Reading MS Project column names and data on the fly from a selected View
Hi guys,
I have several views on my project file (MSPROJECT 2010) and I want to build a macro so that;
1. User can select any view ( Views can have diffrent columns and the user may add new columns as well)
2. User runs the Macro and all the coulmns along with the tasks displayed in the view will be written to a excel file. ( I don't want to build several macro's for each view, I'm thinking of a common method which would work for any selected view)
The problem I'm facing is that how will i read the column names and data for a particular view on the fly without hard coding them inside the vba code ?
The solution needs to work on a master schedule as well.
Appreciate your feedback.Just to get you started the following code writes the field name and data for the active task to the Immediate window.
Sub CopyData()
Dim fld As TableField
For Each fld In ActiveProject.TaskTables(ActiveProject.CurrentTable).TableFields
If fld.Field >= 0 Then
Debug.Print Application.FieldConstantToFieldName(fld.Field), ActiveCell.Task.GetField(fld.Field)
End If
Next fld
End Sub
Rod Gill
Author of the one and only Project VBA Book
www.project-systems.co.nz -
Bind Variable in SELECT statement and get the value in PL/SQL block
Hi All,
I would like pass bind variable in SELECT statement and get the value of the column in Dynamic SQL
Please seee below
I want to get the below value
Expected result:
select distinct empno ,pr.dept from emp pr, dept ps where ps.dept like '%IT' and pr.empno =100
100, HR
select distinct ename ,pr.dept from emp pr, dept ps where ps.dept like '%IT' and pr.empno =100
TEST, HR
select distinct loc ,pr.dept from emp pr, dept ps where ps.dept like '%IT' and pr.empno =100
NYC, HR
Using the below block I am getting column names only not the value of the column. I need to pass that value(TEST,NYC..) into l_col_val variable
Please suggest
----- TABLE LIST
CREATE TABLE EMP(
EMPNO NUMBER,
ENAME VARCHAR2(255),
DEPT VARCHAR2(255),
LOC VARCHAR2(255)
INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (100,'TEST','HR','NYC');
INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (200,'TEST1','IT','NYC');
INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (300,'TEST2','MR','NYC');
INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (400,'TEST3','HR','DTR');
INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (500,'TEST4','HR','DAL');
INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (600,'TEST5','IT','ATL');
INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (700,'TEST6','IT','BOS');
INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (800,'TEST7','HR','NYC');
COMMIT;
CREATE TABLE COLUMNAMES(
COLUMNAME VARCHAR2(255)
INSERT INTO COLUMNAMES(COLUMNAME) VALUES ('EMPNO');
INSERT INTO COLUMNAMES(COLUMNAME) VALUES ('ENAME');
INSERT INTO COLUMNAMES(COLUMNAME) VALUES ('DEPT');
INSERT INTO COLUMNAMES(COLUMNAME) VALUES ('LOC');
COMMIT;
CREATE TABLE DEPT(
DEPT VARCHAR2(255),
DNAME VARCHAR2(255)
INSERT INTO DEPT(DEPT,DNAME) VALUES ('IT','INFORMATION TECH');
INSERT INTO DEPT(DEPT,DNAME) VALUES ('HR','HUMAN RESOURCE');
INSERT INTO DEPT(DEPT,DNAME) VALUES ('MR','MARKETING');
INSERT INTO DEPT(DEPT,DNAME) VALUES ('IT','INFORMATION TECH');
COMMIT;
PL/SQL BLOCK
DECLARE
TYPE EMPCurTyp IS REF CURSOR;
v_EMP_cursor EMPCurTyp;
l_col_val EMP.ENAME%type;
l_ENAME_val EMP.ENAME%type;
l_col_ddl varchar2(4000);
l_col_name varchar2(60);
l_tab_name varchar2(60);
l_empno number ;
b_l_col_name VARCHAR2(255);
b_l_empno NUMBER;
begin
for rec00 in (
select EMPNO aa from EMP
loop
l_empno := rec00.aa;
for rec in (select COLUMNAME as column_name from columnames
loop
l_col_name := rec.column_name;
begin
l_col_val :=null;
l_col_ddl := 'select distinct :b_l_col_name ,pr.dept ' ||' from emp pr, dept ps where ps.dept like ''%IT'' '||' and pr.empno =:b_l_empno';
dbms_output.put_line('DDL ...'||l_col_ddl);
OPEN v_EMP_cursor FOR l_col_ddl USING l_col_name, l_empno;
LOOP
l_col_val :=null;
FETCH v_EMP_cursor INTO l_col_val,l_ename_val;
EXIT WHEN v_EMP_cursor%NOTFOUND;
dbms_output.put_line('l_col_name='||l_col_name ||' empno ='||l_empno);
END LOOP;
CLOSE v_EMP_cursor;
END;
END LOOP;
END LOOP;
END;user1758353 wrote:
Thanks Billy, Would you be able to suggest any other faster method to load the data into table. Thanks,
As Mark responded - it all depends on the actual data to load, structure and source/origin. On my busiest database, I am loading on average 30,000 rows every second from data in external files.
However, the data structures are just that - structured. Logical.
Having a data structure with 100's of fields (columns in a SQL table), raise all kinds of questions about how sane that structure is, and what impact it will have on a physical data model implementation.
There is a gross misunderstanding by many when it comes to performance and scalability. The prime factor that determines performance is not how well you code, what tools/language you use, the h/w your c ode runs on, or anything like that. The prime factor that determines perform is the design of the data model - as it determines the complexity/ease to use the data model, and the amount of I/O (the slowest of all db operations) needed to effectively use the data model. -
In iPhoto if I select View, then Sort Photos by title, how do I stop it reverting to sorting by date when I close iPhoto and re-open it later?
In what mode, Events, Photos or in an Album, are you when you select View ➙ Sort ➙ By Title?
As a first fix attempt try the following:
1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
User/Home/Library/ Preferences folder.
2 - delete iPhoto's cache file, Cache.db, that is located in your
User/Home/Library/Caches/com.apple.iPhoto folder (Snow Leopard and Earlier).
or with Mt. Lion from the User/Library/Containers/com.apple.iPhoto/
Data/Library/Caches/com.apple.iPhoto folder
3 - launch iPhoto and try again.
NOTE 1: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto. You'll also have to reset the iPhoto's various preferences.
NOTE 2: In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
OT -
I am currently deployed and was using my iMessage to be able to talk to family back in the states and my iMessage stopped working. It will no longer select my number to use as the send/receive. How do I fix this so I can continue to talk to family?
Read here:
http://support.apple.com/kb/TS2755 -
Case statement and Decode function both are not working in Select cursor.
I have tried both the Case statement and Decode function in Select cursor, but both the things are not working. On the other hand both the things work in just select statement.
See the first column in select (PAR_FLAG), I need to have this evaluated along with other fields. Can you please suggest some thing to make this work. And also I would like to
know the reason why decode is not working, I heard some where Case statement do not work with 8i.
Author : Amit Juneja
Date : 06/20/2011
Description:
Updates the Diamond MEMBER_MASTER table with the values from
INC.MEM_NJ_HN_MEMBER_XREF table.
declare
rec_cnt number(12) := 0;
commit_cnt number(4) := 0;
cursor select_cur is
Select DECODE(1,
(Select 1
from hsd_prov_contract R
where R.seq_prov_id = PM.seq_prov_id
and R.line_of_business = H.line_of_business
and R.PCP_FLAG = 'Y'
and R.participation_flag = 'P'
and SYSDATE between R.EFFECTIVE_DATE AND
NVL(R.TERM_DATE,
TO_DATE('31-DEC-9999', 'DD-MON-YYYY'))),
'Y',
'N') PAR_FLAG,
H.SEQ_ELIG_HIST,
H.SEQ_MEMB_ID,
H.SEQ_SUBS_ID,
H.SUBSCRIBER_ID,
H.PERSON_NUMBER,
H.EFFECTIVE_DATE,
H.TERM_DATE,
H.TERM_REASON,
H.RELATIONSHIP_CODE,
H.SEQ_GROUP_ID,
H.PLAN_CODE,
H.LINE_OF_BUSINESS,
H.RIDER_CODE_1,
H.RIDER_CODE_2,
H.RIDER_CODE_3,
H.RIDER_CODE_4,
H.RIDER_CODE_5,
H.RIDER_CODE_6,
H.RIDER_CODE_7,
H.RIDER_CODE_8,
H.MEDICARE_STATUS_FLG,
H.OTHER_STATUS_FLAG,
H.HIRE_DATE,
H.ELIG_STATUS,
H.PREM_OVERRIDE_STEP,
H.PREM_OVERRIDE_AMT,
H.PREM_OVERRIDE_CODE,
H.SEQ_PROV_ID,
H.IPA_ID,
H.PANEL_ID,
H.SEQ_PROV_2_ID,
H.SECURITY_CODE,
H.INSERT_DATETIME,
H.INSERT_USER,
H.INSERT_PROCESS,
H.UPDATE_DATETIME,
H.UPDATE_USER,
H.UPDATE_PROCESS,
H.USER_DEFINED_1,
H.SALARY,
H.PEC_END_DATE,
H.REASON_CODE,
H.PEC_WAIVED,
H.BILL_EFFECTIVE_FROM_DATE,
H.BILLED_THRU_DATE,
H.PAID_THRU_DATE,
H.SUBSC_DEPT,
H.SUBSC_LOCATION,
H.USE_EFT_FLG,
H.BENEFIT_START_DATE,
H.SEQ_ENROLLMENT_RULE,
H.MCARE_RISK_ACCRETION_DATE,
H.MCARE_RISK_DELETION_DATE,
H.MCARE_RISK_REFUSED_DATE,
H.COMMENTS,
H.USER_DEFINED_2,
H.USER_DEFINED_3,
H.RATE_TYPE,
H.PCPAA_OCCURRED,
H.PRIVACY_ON,
H.PCP_CHANGE_REASON,
H.SITE_CODE,
H.SEQ_SITE_ADDRESS_ID,
PM.seq_prov_id rendered_prov
from hsd_member_elig_history H,
INC.PCP_REASSIGN_RPRT_DATA P,
hsd_prov_master PM
where P.subscriber_id = H.subscriber_id
and P.rendered_pcp = PM.provider_ID
and H.elig_status = 'Y'
and (H.term_date is NULL or H.term_date >= last_day(sysdate))
order by H.Seq_memb_id;
begin
for C in select_cur loop
rec_cnt := rec_cnt + 1;
update hsd_member_elig_history
set term_date = TRUNC(SYSDATE - 1),
term_reason = 'PCPTR',
update_datetime = SYSDATE,
update_user = USER,
update_process = 'TD33615'
where seq_elig_hist = C.seq_elig_hist
and seq_memb_id = C.seq_memb_id;
INSERT INTO HSD_MEMBER_ELIG_HISTORY
(SEQ_ELIG_HIST,
SEQ_MEMB_ID,
SEQ_SUBS_ID,
SUBSCRIBER_ID,
PERSON_NUMBER,
EFFECTIVE_DATE,
TERM_DATE,
TERM_REASON,
RELATIONSHIP_CODE,
SEQ_GROUP_ID,
PLAN_CODE,
LINE_OF_BUSINESS,
RIDER_CODE_1,
RIDER_CODE_2,
RIDER_CODE_3,
RIDER_CODE_4,
RIDER_CODE_5,
RIDER_CODE_6,
RIDER_CODE_7,
RIDER_CODE_8,
MEDICARE_STATUS_FLG,
OTHER_STATUS_FLAG,
HIRE_DATE,
ELIG_STATUS,
PREM_OVERRIDE_STEP,
PREM_OVERRIDE_AMT,
PREM_OVERRIDE_CODE,
SEQ_PROV_ID,
IPA_ID,
PANEL_ID,
SEQ_PROV_2_ID,
SECURITY_CODE,
INSERT_DATETIME,
INSERT_USER,
INSERT_PROCESS,
UPDATE_DATETIME,
UPDATE_USER,
UPDATE_PROCESS,
USER_DEFINED_1,
SALARY,
PEC_END_DATE,
REASON_CODE,
PEC_WAIVED,
BILL_EFFECTIVE_FROM_DATE,
BILLED_THRU_DATE,
PAID_THRU_DATE,
SUBSC_DEPT,
SUBSC_LOCATION,
USE_EFT_FLG,
BENEFIT_START_DATE,
SEQ_ENROLLMENT_RULE,
MCARE_RISK_ACCRETION_DATE,
MCARE_RISK_DELETION_DATE,
MCARE_RISK_REFUSED_DATE,
COMMENTS,
USER_DEFINED_2,
USER_DEFINED_3,
RATE_TYPE,
PCPAA_OCCURRED,
PRIVACY_ON,
PCP_CHANGE_REASON,
SITE_CODE,
SEQ_SITE_ADDRESS_ID)
values
(hsd_seq_elig_hist.nextval,
C.SEQ_MEMB_ID,
C.SEQ_SUBS_ID,
C.SUBSCRIBER_ID,
C.PERSON_NUMBER,
trunc(SYSDATE),
C.TERM_DATE,
C.TERM_REASON,
C.RELATIONSHIP_CODE,
C.SEQ_GROUP_ID,
C.PLAN_CODE,
C.LINE_OF_BUSINESS,
C.RIDER_CODE_1,
C.RIDER_CODE_2,
C.RIDER_CODE_3,
C.RIDER_CODE_4,
C.RIDER_CODE_5,
C.RIDER_CODE_6,
C.RIDER_CODE_7,
C.RIDER_CODE_8,
C.MEDICARE_STATUS_FLG,
C.OTHER_STATUS_FLAG,
C.HIRE_DATE,
C.ELIG_STATUS,
C.PREM_OVERRIDE_STEP,
C.PREM_OVERRIDE_AMT,
C.PREM_OVERRIDE_CODE,
C.SEQ_PROV_ID,
C.IPA_ID,
C.PANEL_ID,
C.SEQ_PROV_2_ID,
C.SECURITY_CODE,
SYSDATE,
USER,
'TD33615',
SYSDATE,
USER,
'TD33615',
C.USER_DEFINED_1,
C.SALARY,
C.PEC_END_DATE,
C.REASON_CODE,
C.PEC_WAIVED,
C.BILL_EFFECTIVE_FROM_DATE,
C.BILLED_THRU_DATE,
C.PAID_THRU_DATE,
C.SUBSC_DEPT,
C.SUBSC_LOCATION,
C.USE_EFT_FLG,
C.BENEFIT_START_DATE,
C.SEQ_ENROLLMENT_RULE,
C.MCARE_RISK_ACCRETION_DATE,
C.MCARE_RISK_DELETION_DATE,
C.MCARE_RISK_REFUSED_DATE,
C.COMMENTS,
C.USER_DEFINED_2,
C.USER_DEFINED_3,
C.RATE_TYPE,
C.PCPAA_OCCURRED,
C.PRIVACY_ON,
C.PCP_CHANGE_REASON,
C.SITE_CODE,
C.SEQ_SITE_ADDRESS_ID);
commit_cnt := commit_cnt + 1;
if (commit_cnt = 1000) then
dbms_output.put_line('Committed updates for 1000 records.');
commit;
commit_cnt := 0;
end if;
end loop;
commit;
dbms_output.put_line('Total number of MEMBER_ELIG_HISTROY records inserted : ' ||
rec_cnt);
exception
when others then
raise_application_error(-20001,
'An error was encountered - ' || sqlcode ||
' -error- ' || sqlerrm);
end;user10305724 wrote:
I have tried both the Case statement and Decode function in Select cursor, but both the things are not working. Please define what you mean by not working even if your computer screen is near the internet we can't see it.
You should also look at the FAQ about how to ask a question
SQL and PL/SQL FAQ
Particularly *9) Formatting with {noformat}{noformat} Tags* and posting your version.
know the reason why decode is not working, I heard some where Case statement do not work with 8i.
Does this mean you are using 8i? Then scalar sub queries - selects within the select list, are not supported, along with CASE in PL/SQL.
Select DECODE(1,
* (Select 1
from hsd_prov_contract R
where R.seq_prov_id = PM.seq_prov_id
and R.line_of_business = H.line_of_business
and R.PCP_FLAG = 'Y'
and R.participation_flag = 'P'
and SYSDATE between R.EFFECTIVE_DATE AND
NVL(R.TERM_DATE,
TO_DATE('31-DEC-9999', 'DD-MON-YYYY')))*,
'Y',
'N') PAR_FLAG,
>
exception
when others then
raise_application_error(-20001,
'An error was encountered - ' || sqlcode ||
' -error- ' || sqlerrm);
http://tkyte.blogspot.com/2008/01/why-do-people-do-this.html -
View State question - changing states and custom states
Hi all,
I'm working on an application that lets a user register for an event. Each event has associated child information: conferences, tickets, etc. associated with it. What I'm trying to do is create some sort of checkbox list so that, when a user clicks on an event to add it to his registration, the associated child information appears in the display so he can choose all this information at once. I have the list working and I've been trying to use a custom ItemRenderer to pop in the extra info for the user to select when he clicks on an event. The problem I'm having is that, when the user goes to click on a child to add it to his registration, my state is changing back from "selected" to "normal" and the child information disappears. So I guess I have two questions. One, am I even remotely on the right track here? If not, can someone suggest a better approach? Two, if this is the right approach, how do I solve the "disappearing child" problem? I tried creating a custom state that would set everything to visible, but I can't seem to figure out how to get into it...I tried just putting a click event on it and just doing an Alert.show(currentState) to see if I was even getting into my custom state, but I just kept switching between "normal" and "selected."
Code:
ItemRenderer:
<s:ItemRenderer name="eventItemRenderer"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
focusEnabled="false" xmlns:mx="library://ns.adobe.com/flex/halo" xmlns:registrationapi="services.registrationapi.*">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.events.FlexEvent;
//this gets my data to populate the dropDown list when the parent event is selected
protected function checkbox1_clickHandler(event:MouseEvent, selectedEventCode:String):void
showPrimaryConferences = true;
getEventConferencesResult.token = registrationAPI.getEventConferences(selectedEventCode.name);
protected function comboBox_creationCompleteHandler(event:FlexEvent):void
getEventConferencesResult.token = registrationAPI.getEventConferences(data.EventCode);
]]>
</fx:Script>
<s:states>
<s:State name="normal"/>
<s:State name="hovered"/>
<s:State name="selected"/>
</s:states>
<s:Rect top="0" left="0" right="0" bottom="0">
<s:fill>
<s:SolidColor id="backgroundColor" color="0xFFFFFF" />
</s:fill>
</s:Rect>
<!-- checkmark -->
<s:Path data="M 3.5 6.5 l 2 2 l 6 -7" includeIn="selected" right="2" verticalCenter="1">
<s:stroke>
<s:SolidColorStroke weight="2" caps="square" color="0x000000" />
</s:stroke>
</s:Path>
<fx:Declarations>
<s:CallResponder id="getEventConferencesResult"/>
<registrationapi:RegistrationAPI id="registrationAPI" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
</fx:Declarations>
<s:VGroup left="3" right="10" top="3" bottom="3">
<s:CheckBox name="{data.EventCode}" label="{data.EventTitle}" id="selectedEventCode" fontWeight="bold" click="checkbox1_clickHandler(event, selectedEventCode.name)" />
<s:Label text="{data.EventTitle}" id="selectedEventCodeLabel" fontWeight.selected="bold" />
</s:VGroup>
</s:ItemRenderer>
Thanks in advance for any suggestions!
~ amandaI simplified the problem to it's essence and came up with this:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal"
creationComplete="init()">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var lProvider:ArrayCollection;
private function init():void
var la:Array = [{label: "Conference", checked: true},
{label: "Tickets", checked: false}];
lProvider = new ArrayCollection(la);
]]>
</mx:Script>
<mx:List id="cList" width="200" dataProvider="{lProvider}" itemClick="lProvider.refresh()">
<mx:itemRenderer>
<mx:Component>
<mx:HBox width="100%">
<mx:CheckBox selected="{data.checked}" click="data.checked = event.target.selected"/>
<mx:Label text="{data.label}"/>
</mx:HBox>
</mx:Component>
</mx:itemRenderer>
</mx:List>
<mx:VBox width="600">
<mx:Panel title="Conference component" width="100%" height="200"
visible="{lProvider.getItemAt(0).checked}"
includeInLayout="{lProvider.getItemAt(0).checked}"/>
<mx:Panel title="Ticket component" width="100%" height="200"
visible="{lProvider.getItemAt(1).checked}"
includeInLayout="{lProvider.getItemAt(1).checked}"/>
</mx:VBox>
</mx:Application>
Does this help?
Dany
Maybe you are looking for
-
I have 4 devices under my apple ID. 1 iPAD is used by my wife and has her own mail account setup. With family sharing, I would like to move that account to an Apple ID of her own and add her to the family list. How do I do that?
-
Running Oracle Text Manager w/o DBA
We've been using the Oracle Text KB and our own thesaurus to index documents on help.unc.edu for two years now. We upload the new thesaurus files with ctxload each time new terms need to be added. I have to ask my DBA to run it in the shell on the DB
-
User forgot to add delivery costs to purchase order
Got a user that forgot to add delivery costs to a purchase order, now it has been GR and IRd, now they want to add the delivery costs, of course they have to reverse the IR and possibly the GR as well, go to change mode and add this missing condition
-
Frame-by-frame animation by adobe
I am trying to do the tutorial about learning flash by Jen deHaan: http://www.adobe.com/designcenter/flash/articles/flacs3it_firstflash_pt1.html) I am not sure how to go further when I reach step 4 in Creating a frame-by-frame animation since I canno
-
I have tried uninstalling firefox and reinstalling it and it's still not working. Why won't it establish a connection all of a sudden? I'm browsing using internet explorer just fine, but I want to use firefox.