HOW CAN I USE MULTIPLE VIEWS IN ONE BLOCK
What I need to do is based on a selection, I have a detail block that shows the results. My selection would determine which view to display in the detail block.
So for example, my selection is:
Source: A
Year 2005
I would then display the details by querying A_2005_VIEW
I can query a view dynamically using the QUERY_DATA_SOURCE_NAME however, my problem is, each view has different column names. How do I show different columns based on specific views?
You could use a "From Clause Query" as the block data source. You can change that dynamically.
Create generically named database items on the block COL1, COL2, ... COLn
Then depending on the users choice in the selection criteria, use the WHEN-NEW-BLOCK-INSTANCE trigger on the query block to
set_block_property(..., query_data_source_name,
'(SELECT viewcol1 COL1, viewcol2 COL2, .... , viewcoln COLN
FROM <whichever view>)');
This will work because Forms constructs the block query thus:
SELECT COL1, COL2, ..., COLN
FROM <blocks query_data_source_name>
so you are using the aliases in your query to match the forms database items names.
Similar Messages
-
Can i use multiple ipods on one account
How do i use multiple ipods on one account so that we can share the music that we own and has been downloaded from cd's
Just import the CD music into the libraries used by the different devices. Yo can use Home Sharing
Understanding Home Sharing
Troubleshooting Home Sharing
CD music is not locked to any account -
How can I convert multiple files at one time and not one at a time
How can I convert multiple files at one time and not one at a time
Hi Plissey1950,
Sorry for the lengthy delay to a response. Are you trying to convert multiple files to individual PDF files at the same time? (not combine them). If so, you'll need to use Adobe Acrobat for this function. The CreatePDF service does not have the ability to convert multiple files to multiple individual PDF files.
Thanks,
David -
How can I have multiple users on one apple id?
How can I have multiple users on one apple ID?
ie: I have my apple ID with my own credit, how can I set up credit for my son under the same apple ID, so that he can still access the same apps I've already downloaded and paid for?I've been trying to figure out a clean way to do this too. I think you may need more than one Apple ID – one that is shared and used to purchase "sharable" items and then "individual" Apple IDs for you and your son. That's the idea that I'm pursuing for the moment.
It seems that there must be a way to do this, App Store purchases for the Mac are licensed across multiple machines. iPhone app purchases have "all your devices" licensing. Makes me think that Apple has a process in mind for sharing an account (or associating a device with multiple accounts).
Other things I've learned:
- Apparently you can't merge Apple ID accounts. I asked about this once at an Apple Store and was told that there was no way to do it.
- If you share an Apple ID the Messages app behaves in a somewhat surprising manner. It must use your Apple ID to decide where messages should be sent because all users get all messages. This can make it very hard to organize a surprise party :-) -
How can I use multiple row insert or update into DB in JSP?
Hi all,
pls help for my question.
"How can I use multiple rows insert or update into DB in JSP?"
I mean I will insert or update the multiple records like grid component. All the data I enter will go into the DB.
With thanks,That isn't true. Different SQL databases have
different capabilities and use different syntax, That's true - every database has its own quirks and extensions. No disagreement there. But they all follow ANSI SQL for CRUD operations. Since the OP said they wanted to do INSERTs and UPDATEs in batches, I assumed that ANSI SQL was sufficient.
I'd argue that it's best to use ANSI SQL as much as possible, especially if you want your JDBC code to be portable between databases.
and there are also a lot of different ways of talking to
SQL databases that are possible in JSP, from using
plain old java.sql.* in scriptlets to using the
jstlsql taglib. I've done maintenance on both, and
they are as different as night and day.Right, because you don't maintain JSP and Java classes the same way. No news there. Both java.sql and JSTL sql taglib are both based on SQL and JDBC. Same difference, except that one uses tags and the other doesn't. Both are Java JDBC code in the end.
Well, sure. As long as you only want to update rows
with the same value in column 2. I had the impression
he wanted to update a whole table. If he only meant
update all rows with the same value in a given column
with the same value, that's trivial. All updates do
that. But as far as I know there's know way to update
more than one row where the values are different.I used this as an example to demonstrate that it's possible to UPDATE more than one row at a time. If I have 1,000 rows, and each one is a separate UPDATE statement that's unique from all the others, I guess I'd have to write 1,000 UPDATE statements. It's possible to have them all either succeed or fail as a single unit of work. I'm pointing out transaction, because they weren't coming up in the discussion.
Unless you're using MySQL, for instance. I only have
experience with MySQL and M$ SQL Server, so I don't
know what PostgreSQL, Oracle, Sybase, DB2 and all the
rest are capable of, but I know for sure that MySQL
can insert multiple rows while SQL Server can't (or at
least I've never seen the syntax for doing it if it
does).Right, but this syntax seems to be specific to MySQL The moment you use it, you're locked into MySQL. There are other ways to accomplish the same thing with ANSI SQL.
Don't assume that all SQL databases are the same.
They're not, and it can really screw you up badly if
you assume you can deploy a project you've developed
with one database in an environment where you have to
use a different one. Even different versions of the
same database can have huge differences. I recommend
you get a copy of the O'Reilly book, SQL in a
Nutshell. It covers the most common DBMSes and does a
good job of pointing out the differences.Yes, I understand that.
It's funny that you're telling me not to assume that all SQL databases are the same. You're the one who's proposing that the OP use a MySQL-specific extension.
I haven't looked at the MySQL docs to find out how the syntax you're suggesting works. What if one value set INSERT succeeds and the next one fails? Does MySQL roll back the successful INSERT? Is the unit of work under the JDBC driver's control with autoCommit?
The OP is free to follow your suggestion. I'm pointing out that there are transactions for units of work and ANSI SQL ways to accomplish the same thing. -
How Can I Use Multiple Weblogic Instances in a Single OS
Hello Everyone,
Actually I have to install Some different applications. Few of them need weblogic 10.3.6 and others need 10.3.4. The OS am using is Oracle Enterprise Linux 5.
Now I am able to install 2 separate(One of 10.3.4 and 10.3.6) instances with two different users,In two different directories.
I have installed the weblogic 10.3.6 version with a user webadmin and installed node manager with port 5556. This is working fine.
The main problem here is :
In the second instance (10.3.4 ) installed with a a different user and gave the port number to NodeManager as 1600 and its not getting started. Its throwing error and also after some errors in the terminal am able to see that its reverting to port number 5556 only.
What might be the issue?
I have to install 2 different versions of weblogic in a single Server. But am failing with NodeManager. What Can I do to have multiple weblogic instances with multiple versions in a single server ?
Can anyone suggest a resolution for this please ?
Thanks in advance.Pl do not spam these forums with multiple posts - How Can I Use Multiple Weblogic Instances in a Single OS
-
How can I scan multiple pages to one file with MG 7120
My printer does not have ADF. How can I scan multiple pages to one file on my MG 7120?
Hi albabynyr,
There is a program that comes with the printer called the IJ Scan Utility that can assist you with scanning multiple pages into a single file. To scan using the IJ Scan Utility, please follow these steps:
1. Start IJ Scan Utility by going to your Start menu, then selecting All Programs, then Canon Utilities, then IJ Scan Utility (folder), then IJ Scan Utility (program).
2. In the Canon IJ Scan Utility window that opens, click SETTINGS.... in the bottom right of the window. The Settings dialog box appears.
3. Click the DOCUMENT SCAN option on the left pane of the window.
4. In the right pane of the window, locate the SELECT SOURCE field and select the DOCUMENT option.
5. Set the color mode, document size, and scanning resolution as required in the rest of the fields shown in the window. Click DOCUMENT SCAN ORIENTATION SETTINGS... to specify the orientation of the documents to be scanned.
6. In the SAVE SETTINGS section of the window, you will select the save format and location of the document you are about to scan.
a.) In the FILE NAME field, specify the name you would like to give the file. By default the filename will begin with IMG; you can remove IMG and change it to whatever you would like to name the file.
b.) In the DATA FORMAT field, use the drop-down arrow to select the PDF (Multiple Pages) option.
c.) In the SAVE IN field, please navigate to the area where you would like the file to be saved once it is scanned in. By default, the file will be saved in the DOCUMENTS folder.
7. Once all settings have been selected, click the OK button at the bottom of the SETTINGS (DOCUMENT SCAN) window. The IJ Scan Utility main screen appears.
8. Click the DOCUMENT button. Scanning starts. After a page has scanned, the screen to continue or end scanning appears. If you have more pages to scan, place the next page on the platen and click Scan. Do this each time a page has completed scanning. After the last page has been scanned, click Exit. Scanned images are saved in previously selected folder location specified in the SETTINGS... window. Click the CANCEL button to cancel scanning if needed during scanning.
Hope this helps!
This didn't answer your question or issue? Please call or email us at one of the methods on the Contact Us page for further assistance.
Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well. -
How can I have multiple views for my question
When I posed a question on a forum, it indicates that I have one (1) view. How can I have multiple views on the same question?
I believe the number you are looking at is the number of times a particular thread has been looked at (viewed) by different users. When someone else opens your question, the view count should increase.
Justin -
Can you use multiple plugins on one piece of media?
can you use multiple plugins on one piece of media?
...so for example have one plugin for a UI control bar, another for tracking, and another for advertising?
If this is possible how? What types of plugin would each plugin be and what sort of media element would be required?
Or is this not the correct approach? If not what would the correct approach be?
Thanks in advance for support.I have got this plugin to set it's proxiedElement.
To do so, I needed to follow David_RealEyes advice too.
But I still can not acheive what I set out to find out, all I was trying to do was trace the current time of the videoElement, to begin to understand how plugins work. Can anyone advise please? Thanks in advance for support.
I thought to acheive this I would just need to add a listener for like this:
dispatcher.addEventListener(TimeEvent.CURRENT_TIME_CHANGE, onTimeChange);
Then write the function like this:
private function onTimeChange(e:TimeEvent):void
trace('**********onTimeChange: '+ e.time)
...But this doesn't work.
What am I doing wrong?
Here's the class now for the TraceListenerProxyElement
package
import org.osmf.elements.*;
import org.osmf.events.*;
import org.osmf.media.*;
import org.osmf.metadata.*;
import org.osmf.traits.*;
public class TraceListenerProxyElement extends ProxyElement
public function TraceListenerProxyElement(wrappedElement:MediaElement)
trace('TraceListenerProxyElement')
super(wrappedElement);
// Overrides
override public function set proxiedElement(value:MediaElement):void
trace('override set proxy')
trace('value: ' + value)
if(value)
super.proxiedElement = value;
trace('proxied element set')
enableListeners()
super.proxiedElement = value;
trace('proxied el: ' + proxiedElement)
private function enableListeners():void
trace('enableListeners')
dispatcher = new TraitEventDispatcher();
dispatcher.media = proxiedElement;
dispatcher.addEventListener(AudioEvent.MUTED_CHANGE, processMutedChange);
dispatcher.addEventListener(AudioEvent.PAN_CHANGE, processPanChange);
dispatcher.addEventListener(AudioEvent.VOLUME_CHANGE, processVolumeChange);
dispatcher.addEventListener(BufferEvent.BUFFER_TIME_CHANGE, processBufferTimeChange);
dispatcher.addEventListener(BufferEvent.BUFFERING_CHANGE, processBufferingChange);
dispatcher.addEventListener(DisplayObjectEvent.DISPLAY_OBJECT_CHANGE, processDisplayObjectChange);
dispatcher.addEventListener(DisplayObjectEvent.MEDIA_SIZE_CHANGE, processMediaSizeChange);
dispatcher.addEventListener(DRMEvent.DRM_STATE_CHANGE, processDRMStateChange);
dispatcher.addEventListener(DynamicStreamEvent.AUTO_SWITCH_CHANGE, processAutoSwitchChange);
dispatcher.addEventListener(DynamicStreamEvent.NUM_DYNAMIC_STREAMS_CHANGE, processNumDynamicStreamsChange);
dispatcher.addEventListener(DynamicStreamEvent.SWITCHING_CHANGE, processSwitchingChange);
dispatcher.addEventListener(LoadEvent.BYTES_TOTAL_CHANGE, processBytesTotalChange);
dispatcher.addEventListener(LoadEvent.LOAD_STATE_CHANGE, processLoadStateChange);
dispatcher.addEventListener(PlayEvent.CAN_PAUSE_CHANGE, processCanPauseChange);
dispatcher.addEventListener(PlayEvent.PLAY_STATE_CHANGE, processPlayStateChange);
dispatcher.addEventListener(SeekEvent.SEEKING_CHANGE, processSeekingChange);
dispatcher.addEventListener(TimeEvent.COMPLETE, processComplete);
dispatcher.addEventListener(TimeEvent.DURATION_CHANGE, processDurationChange);
dispatcher.addEventListener(TimeEvent.CURRENT_TIME_CHANGE, onTimeChange);
proxiedElement.addEventListener(MediaElementEvent.TRAIT_ADD, processTraitAdd);
proxiedElement.addEventListener(MediaElementEvent.TRAIT_REMOVE, processTraitRemove);
private function onTimeChange(e:TimeEvent):void
trace('**********onTimeChange: '+ e.time)
private function processAutoSwitchChange(event:DynamicStreamEvent):void
trace("autoSwitchChange", event.autoSwitch);
private function processBufferingChange(event:BufferEvent):void
trace("bufferingChange", event.buffering);
private function processBufferTimeChange(event:BufferEvent):void
trace("bufferTimeChange", event.bufferTime);
private function processComplete(event:TimeEvent):void
trace("complete");
private function processCanPauseChange(event:PlayEvent):void
trace("canPauseChange", event.canPause);
private function processDisplayObjectChange(event:DisplayObjectEvent):void
trace("displayObjectChange");
private function processDurationChange(event:TimeEvent):void
trace("durationChange", event.time);
private function processLoadStateChange(event:LoadEvent):void
trace("loadStateChange", event.loadState);
private function processBytesTotalChange(event:LoadEvent):void
trace("bytesTotalChange", event.bytes);
private function processMediaSizeChange(event:DisplayObjectEvent):void
trace("mediaSizeChange", event.newWidth, event.newHeight);
private function processMutedChange(event:AudioEvent):void
trace("mutedChange", event.muted);
private function processNumDynamicStreamsChange(event:DynamicStreamEvent):void
trace("numDynamicStreamsChange");
private function processPanChange(event:AudioEvent):void
trace("panChange", event.pan);
private function processPlayStateChange(event:PlayEvent):void
trace("playStateChange", event.playState);
private function processSeekingChange(event:SeekEvent):void
trace("seekingChange", event.seeking, event.time);
private function processSwitchingChange(event:DynamicStreamEvent):void
trace("switchingChange", event.switching);
private function processVolumeChange(event:AudioEvent):void
trace("volumeChange", event.volume);
private function processDRMStateChange(event:DRMEvent):void
trace("drmStateChange", event.drmState);
private function processTraitAdd(event:MediaElementEvent):void
trace("Trait Add: " + event.traitType);
private function processTraitRemove(event:MediaElementEvent):void
trace("Trait Remove: " + event.traitType);
private var dispatcher:TraitEventDispatcher; -
Can we use multiple queries on one template
Can we use multiple queries on one template
Hi,
if you're using data templates for your data set, you
can put multiple queries in the XML data template.
The queries may then be linked (or not) by the "link
name" tag ...
Grtz.Following you answer here...do you know eventually how/if possible to preview a report (with XMLP Desktop) that is using data templates for the data set?
Thanks,
Liviu -
How can I activate multiple tags at one time?
How can I activate multiple tags at one time?
I'm pretty sure you can run this on a sub tree of /etc/tags
http://dev.day.com/docs/en/cq/current/wcm/page_publish/tree_activate.html -
How can I use the button in one panel to control the other panel's appearing and disappearing?
How can I use the button in one panel to control the other panel's
appearing and disappearing? What I want is when I push the button on
one button . another panel appears to display something and when I
push it again, that the second panel disappears.> How can I use the button in one panel to control the other panel's
> appearing and disappearing? What I want is when I push the button on
> one button . another panel appears to display something and when I
> push it again, that the second panel disappears.
>
You want to use a combination of three features, a button on the panel,
code to notice value changes using either polling in a state machine of
some sort or an event structure, and a VI Server property node to set
the Visible property of the VI being opened and closed.
The button exists on the controlling panel. The code to notice value
changes is probably on the controlling panel's diagram, and this diagram
sets the Visible property node of a VI class property node to FALSE or
TRUE to show or
hide the panel. To get the VI reference to wire to the
property node, you probably want to use the Open VI Reference node with
the VI name.
Greg McKaskle -
How can we use multiple transactions by using bdc_insert.
HI
How can we use multiple transactions by using bdc_insert.Hi,
In between the Open and Close we have to use the BDC_INSERT for the Tcodes you have to do.
BDC_OPEN_GROUP
BSD_INSERT
TCODE = tcode1
BDC_INSERT
TCODE = tcode 2
BDC_CLOSE_GROUP
check the SDN for more on this.
Regards
Lekha -
How can I use two Ipods on one computer.
I was wondering if it is possible to use 2 Ipods on one computer without having to reload all of the music to the new library.
If you are adding a second iPod for your own use, just connect the new iPod to your computer and follow the on screen instructions. It will update from your existing library. Depending on the size of your library and the type of iPod you choose you can have it update all songs and playlists, selected playlists only or you can manage it manually
If the iPods belong to different users then there are actually a few methods for using more than one iPod on a single computer: How To Use Multiple iPods with One Computer
Just to summarise what's in the link above which is a little out of date:
Method one is to have individual Mac or Windows user accounts which by definition would give you completely separate iTunes Music folders and libraries.
Method two is to set your preferences so that any or all of iPods get updated with only certain playlists within one library:
Loading songs onto iPod automatically - Windows
Choosing the update option "Sync Music - Selected playlists" allows you to create a playlist specifically for each iPod and drag the tracks you want into it. If you tire of the list and want to change it, you just add or remove the songs you don't want. The ones you take out out remain in the library to be used by the other iPod. You can read more about playlists at these links:
iTunes: Creating playlists of your favorite songs
How to create a Smart Playlist with iTunes
Another option when using a single library is to set any or all of the iPods to manual update: Managing content manually on iPod -
How can i use multiple row subquery in update statement
Hai All
I using group function in my update statement.. and i need to update more rows so i need to use multiple row
subquery pls tell me how to use multiple row subquery in update statement
For example
while i am using this like this i got an error
update dail_att set outtime in (select max(r2.ptime) from temp_att where empcode=r2.enpno and
barcode=r2.cardn and attend_date=r2.pdate group by enpno,pdate,cardn);
Pls tell me how to use with example
Thanks & regards
Srikkanth.MHai Man
Thanks for ur response Let me clear what i need
First step Fetch the records as text file and stores into table T1
and the next step is i have seperated the text using substring and stores in different columns of a table
There are two shifts 0815 to 1645 and 1200 and 2000
Here I rep IN and O rep OUT
Empno date time inout
001 01-01-10 0815 I
002 01-01-10 0815 I
003 01-01-10 0818 I
001 01-01-10 1100 0
001 01-01-10 1130 I
002 01-01-10 1145 0
002 01-01-10 1215 I
004 01-01-10 1200 I
005 01-01-10 1215 I
004 01-01-10 1315 O
004 01-01-10 1345 I
001 01-01-10 1645 0
002 01-01-10 1715 0
003 01-01-10 1718 0
004 01-01-10 2010 0
005 01-01-10 2015 0
This is my T1 table i have taken data from text file and stored in this table from this table i need to move data to another table T2
T2 contains like this
Empno Intime Intrin Introut Outtime Date
001 0815 1100 1130 1645 01-01-10
002 0815 1145 1215 1715 01-01-10
003 0818 1718 01-01-10
004 1200 1315 1345 2010 01-01-10
005 1215 2015 01-01-10
This what i am trying to do man but i have little bit problems Pls give some solution with good example
And my coding is
declare
emp_code varchar2(25);
in_time varchar2(25);
out_time varchar2(25);
Cursor P1 is
Select REASON,ECODE,READMODE,EMPD,ENPNO,FILL,PDATE,PTIME,INOUT,CARDN,READERN
From temp_att
group by REASON,ECODE,READMODE,EMPD,ENPNO,FILL,PDATE,PTIME,INOUT,CARDN,READERN
ORDER BY enpno,pdate,ptime;
begin
for r2 in p1 loop
declare
bar_code varchar2(25);
begin
select barcode into bar_code from dail_att where empcode=r2.enpno and attend_date=r2.pdate;
For r3 in (select empcode,empname,barcode,intime,intrin,introut,addin,addout,outtime,attend_date from dail_att)loop
if r2.inout ='O' then
update dail_att set outtime =(select max(r2.ptime) from temp_att where empcode=r2.enpno and barcode=r2.cardn and attend_date=r2.pdate group by r2.cardn,r2.enpno,r2.pdate );
end if;
end loop;
exception
when no_data_found then
if r2.inout ='I' then
insert into dail_att(barcode,empcode,intime,attend_date)(select r2.cardn,r2.enpno,min(r2.ptime),r2.pdate from temp_att group by r2.cardn,r2.enpno,r2.pdate );
end if;
end;
end loop;
commit;
end;
Pls tell me what correction i need to do i the update statement i have used a subquery with group function but when i used it will return only one row but my need is to return many rows and i need to use multiple row subquery
and how can i use it in the update statement
Thanks In Advance
Srikkanth.M
Maybe you are looking for
-
EAS does not show Business Rules node
I'm in the process of validating an 11.1.2 Planning installation. This is the development environment, so one Essbase server, one everything else server. One of the issues I've run across is that my client install of EAS does not have a Business Rule
-
Export in QuickTime with "Only Hyperlink"
Hallo! I've a problem! When export in QuickTime from KeyNote, setting "Only hyperlink", the keys with the action back do not only work while next it works. This happens even if inserts the numeration of the page. Can you help me??!!! Thank you very m
-
TS1702 I have just installed iso6 and now no apps will open and the iphone will not power down
Help required I have just installed iso6 now the iphone4 will not open any app nor will the phone power down
-
How to to configure Firefix 5 to request Master Password on startup?
Hello everyone; I was wondering if there is anyway to be prompt for the master password every-time Firefox 5 is launched. Thank you.
-
HRMD_A07 does not include infotype 207 208 and 210.
Hi Guys, The standard message type HRMD_A07 does not include the infotype 207,208 and 210. Can some one please tell me how to create the extension and populate that extension with which user exit ? i created a extention but when i generate the idocs