How to reuse UIComponent in another UIComponent
Hi. ALL.
I want to reuse an UIComponent in another UIComponent.
Here is the scenario i want to implement.
UIComponent: Comp1
Controller1
View1.js
UIComponent: Comp2
Controller2
View2.js
I implement some logic and ui control in Comp1.
Now I want to embeded comp1 into comp2 and view1 is part of view2.
How can I do this? Can anyone give me some suggestion or example?
Thanks a lot.
Hi Louis,
I got this from SAPUI5 documentation.
https://sapui5.hana.ondemand.com/sdk/#docs/api/symbols/sap.ui.html#.component
var oComponent = sap.ui.component({
name: "my.Component",
url: "my/component/location",
id: "myCompId1" });
Thanks,
Naga
Similar Messages
-
How to reuse a jar file in another application
i have created a jar file.Now i want to reuse this jar file in another java program.Could anyone please guide me with the steps of how to reuse a jar file
i have created a jar file.Now i want to reuse this
jar file in another java program.Could anyone please
guide me with the steps of how to reuse a jar fileput your jar file in class path and import the class which u want to reuse in your code so that u can access all the methods in that class in ur code. -
How to reuse popup component?
Hi,
I have a <af:popup> defined in my jspx page which will show up when mouse over the last column in the table. This mouse over popup shows standard information like "Created By", "Creation Date", "Last Updated By", "Last Updated Date". Hence, many other UI pages have the same requirement. So my question is how can reuse this popup component? Currently, its codes in embedded in the jspx page. Here is a code snipplet in the jspx:
<af:table>
<af:column sortable="false" headerText="Std Info"
id="c16">
<af:image source="/images/activity_status.gif"
id="i1">
<af:clientAttribute name="createdBy"
value="#{row.bindings.CreatedByUser.inputValue}"/>
<af:clientAttribute name="creationDate"
value="#{row.bindings.CreationDate.inputValue}"/>
<af:clientAttribute name="lastUpdatedByUser"
value="#{row.bindings.LastUpdatedByUser.inputValue}"/>
<af:clientAttribute name="lastUpdatedDate"
value="#{row.bindings.LastUpdatedDate.inputValue}"/>
<af:showPopupBehavior popupId=":::p1"
triggerType="mouseOver"
align="endAfter"/>
</af:image>
</af:column>
</af:table>
*<af:popup id="p1" contentDelivery="lazyUncached"*
launcherVar="source" eventContext="launcher">
*<af:panelFormLayout id="pfl1">*
*<f:facet name="footer"/>*
*<af:panelLabelAndMessage label="Created By" id="plam1">*
*<af:outputText value="#{viewScope.createdBy}" id="ot2"/>*
*</af:panelLabelAndMessage>*
*<af:panelLabelAndMessage label="Creation Date" id="plam2">*
*<af:outputText value="#{viewScope.creationDate}"*
id="ot3"/>
*</af:panelLabelAndMessage>*
*<af:panelLabelAndMessage label="Last Updated By"*
id="plam3">
*<af:outputText value="#{viewScope.lastUpdatedByUser}"*
id="ot4"/>
*</af:panelLabelAndMessage>*
*<af:panelLabelAndMessage label="Last Updated Date"*
id="plam4">
*<af:outputText value="#{viewScope.lastUpdatedDate}"*
id="ot5"/>
*</af:panelLabelAndMessage>*
*</af:panelFormLayout>*
*<af:setPropertyListener from="#{source.attributes.createdBy}"*
*to="#{viewScope.createdBy}"*
*type="popupFetch"/>*
*<af:setPropertyListener from="#{source.attributes.creationDate}"*
*to="#{viewScope.creationDate}"*
*type="popupFetch"/>*
*<af:setPropertyListener from="#{source.attributes.lastUpdatedByUser}"*
*to="#{viewScope.lastUpdatedByUser}"*
*type="popupFetch"/>*
*<af:setPropertyListener from="#{source.attributes.lastUpdatedDate}"*
*to="#{viewScope.lastUpdatedDate}"*
*type="popupFetch"/>*
*</af:popup>*
Thanks.
-MinaYou can try this too..
have a popup in a seperate jspx like popup.jspx.
<af:popup binding="#{backingBeanScope.backing_popup.p1}" id="p1">
I could open that popup in another jspx page by using subview.
<f:subview id="popupView">
<jsp:include page="/popup.jspx"/>
</f:subview>
Within command button:
<af:showPopupBehavior popupId="popupView:p1"/> -
How to copy file to another server from database using FTP in oracle
How to copy file to another server from database using FTP in oracle.
Please do the needfaul.Billy Verreynne wrote:
BluShadow wrote:
Not to mention that some FTP servers can return more than one return message per operation whereas others may return one message for the same operation.I had the problem using the LIST command to determine if a file exists on the server. Cannot be determined via the FTP server's return code. Which means parsing and checking the text response from the server to the command. And this vary from server to server.
But the basics were quite easy to code. The entire package is 500 lines, includes comments and blank lines for formatting, and supports the basic FTP client command set. Not really a complex piece of software to write - but I found that many developers seem to think that writing network socket software is complex. Not really the case...Mine's a big larger, but incorporates functionality similar to what Chris provided in his, such as being able to use SQL to query a remote file using pipelined functions, or functionality to write the results of a query directly to a remove file.
:) -
How to copy images from another MC in reversed order??
Hi everyone,
I'm new to AS3 and have been fighting and searching for a solution to this problem for a week now, and I'm VERY close!
I crated a MC holding of a series of images (about 50) and I jump around in it using plenty AS3 scripts (most of which I don't fully understand yet, but I'm working on that to! )
I had to find a way to "rewind" (= play backwards) the MC. Since there is a stop(); command in almost every frame, prevFrame does not work and if I put that in a loop, it goes WAY to fast (but worked).. So I could think of only one way...
Create a new (reverserd) MC with the same image sequence ald reverse it manually and play that one.
This all works fine (very proud of it ).
Now my question:
To get this to work for multiple image sequences, I have to load all images twice (once in MC_1 and again in MC_2 and select them and reverse them).
Not a big one, unless you want to create MANY of those SWF's...
Is it possible to load the 50 images of the first MC in reverse into the second MC dynamically? JUST the images, noting else.
extra info: the MC_2 is already in the lib(empty) and placed on the stage.
something like:
var pointer:Number=1;
for (var:i:Number=50;i>=0;i--) {
get MC_1.picure(var);
put it in MC_2.frame(pointer);
pointer = pointer + 1;
All help is welcome and please take into account that I have little experience and copy most of my scripting from people like you
T.I.A.
MelluwI tried your advice (thanks for that)
The event I already have is the mouse leave
I //-d out the part I removed (what did work)
The code I ended up with is:
function Start() {
stage.addEventListener(Event.MOUSE_LEAVE, cursorHide);
function cursorHide(evt:Event):void {
var currFrame = MC_1.currentFrame;
if (CCW == true) { //it is true in this case
movStart = (50 - currFrame);
else {
movStart = currFrame;
if (movStart>25) {
MC_1.prevFrame();
// removed swapChildren(MC_1, MC_2); // This is the part I removed
// removed MC_2.gotoAndPlay(movStart);
else {
MC_1.gotoAndPlay (movStart);
And if I leave the stage on the part where movStart is indeed >25
Nothing happens,
So I guess this is not what you meant
Subject: Action Script 3 how to copy images from another MC in reversed order??
I cannot direct you in the loading of the images approach, it will be too complicated, and will probably not work anyways... when you move away from a frame that has dynamic content, you lose the content. So basically, there is nothing practical in taking that approach.
I do niot understand what the problem will be with the enterFrame/prevFrame approach. If everything you can do with the mouse is already used (which I doubt) by the first mc, then there is nothing else you can do with this file. You probably just need to rethink your control scheme. You should search Google for "AS3 slideshow tutorial", and to lighten up your design, add "XML" in that search.
> -
How to use XML on another server?
I need help figuring out how to consume XML from another
domain. It's a domain that is providing search functionality for a
website. The domain indexes my site, and I can "post" searches to
an URL with my search terms URL-escaped. It returns an XML
document. I want to use Spry to consume that XML.
I'm pretty experienced consuming XML and using it in Spry
pages, but to date have not done anything that crosses domains. I
will have access to Perl on the production box that hosts my site,
with a remote chance that I could get PHP enabled. This is a public
web server for a very very large financial company, so my choices
of what can go on a production server outside our firewall are
limited by corporate policy.
What are the basic steps that need to happen? Can someone
bullet-point how this might work from one end to the other? I have
the basic theory down of what needs to happen, but not much else at
this point.
Here is what I understand:
1 - user fills in search form and hits enter
2 - form posts to a Perl script on my box
3 - Perl takes the form variables and appends them to a URL
request to the 3rd party search domain
4 - 3rd party search company returns an xml file
5 - not sure what Perl needs to do here with the xml so that
my HTML page with Spry can read it....it does something, let's just
say
6 - Perl writes out a page, based on a template in my site
that then consumes the XML that is somehow available on my domain
now...
This raises so many questions...like if I save the results
XML on my server, how do I get rid of them after they are consumed
and also how do I prevent other sessions from accessing that "saved
copy" of XML...I know I'm thinking wrong here. That can't be how
it's done...Hence...my question about all this.
Where do I start?
Thanks,
Douguser12004297 wrote:
thank you so much - however on the source database I dropped tables and users- then I did an "alter system switch logfile;" - copied the archivelogs to the / test DRP and loaded the archivelogs and the users and tables were not dropped like i did in source
RMAN> tartup mount
Oracle instance started
database mounted
Total System Global Area 1119043584 bytes
Fixed Size 2227624 bytes
Variable Size 620757592 bytes
Database Buffers 469762048 bytes
Redo Buffers 26296320 bytes
RMAN> CATALOG START WITH '/oradb1/backup';
using target database control file instead of recovery catalog
searching for all files that match the pattern /oradb1/backup
List of Files Unknown to the Database
=====================================
File Name: /oradb1/backup/1_345_819727387.dbf
Do you really want to catalog the above files (enter YES or NO)? YES
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: /oradb1/backup/1_345_819727387.dbf
RMAN> recover database;
Starting recover at 20-NOV-13
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=249 device type=DISK
starting media recovery
media recovery complete, elapsed time: 00:00:02
Finished recover at 20-NOV-13
RMAN> alter database open;
database opened
RMAN
Simply making the database aware of the archivlogs does NOT mean rman will determine they need to be used for a specific recovery operation. What all had you done to/with this database prior to this? Keep firmly in mind the effect of any OPEN RESETLOGS. -
How to reuse a response from a server in the next request?
Hello all,
I am invoking the doGet method to get authenticated by the clickatell's server... the server responds with a "Ok: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" (not exact values) message in a fresh html page. This is the status code and its session_id after authentication.
The problem is, how to reuse the session_id value in a request to invoke the doPost method?
Can anyone help with an idea?
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
String urlStr = new String ("http://api.clickatell.com/http/auth?api_id="
+ api_id + "&user="
+ username + "&password=" + password);
res.sendRedirect(res.encodeRedirectURL(urlStr)) ;
public void doPost (HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
String msg, to;
msg = req.getParameter("msg");
to = req.getParameter("to");
String urlStr = new String ("http://api.clickatell.com/http/sendmsg?session_id=" +sessionID + "&to=" + to + "&text=" + msg);
HttpServletResponseWrapper hsrw = new HttpServletResponseWrapper(res);
res.sendRedirect(res.encodeRedirectURL(urlStr));
}Hello,
Can you try with the following code after doing appropriate modifications for your requirements.
package servlet;
import javax.servlet.http.*;
import javax.servlet.*;
import java.io.*;
import java.net.*;
public class TestServlet extends HttpServlet {
public void service(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException{
System.out.println("Start ..........................................................");
URL url = new URL("Your Portlet URL");
HttpURLConnection urlConn = (HttpURLConnection)url.openConnection();
String toPost = "Your string";
System.out.println("URLConnection object\t" + urlConn);
urlConn.setDoInput(true);
urlConn.setDoOutput(true);
urlConn.setUseCaches(false);
urlConn.setRequestProperty ("Content-Type", "Appropriate content type");
//urlConn.setRequestProperty("Content-Length","Appropriate content length");
urlConn.setRequestMethod("POST");
OutputStream out = urlConn.getOutputStream();
out.writeBytes(toPost.getBytes());
out.flush();
out.close();
PrintWriter outStream = new PrintWriter(res.getOutputStream(),true);
DataInputStream in = new DataInputStream(urlConn.getInputStream());
String inputLine = in.readLine();
while(inputLine!=null){
outStream.println(inputLine);
inputLine= in.readLine();
outStream.close();
in.close();
System.out.println("End ...........................................................");
As long as you do not get input stream from your URL Connection you will experience problems. Also the parameters should be passed as query string in the url. Rather pass them using output stream object obtained from URL connection. Also in your responding servlet you will be required to read the parameters using an Input Stream something like this.
DataInputStream in = new DataInputStream(request.getInputStream());
String inputLine = in.readLine();
while(inputLine!=null){
System.out.println("Input Received by servlet\t" + inputLine);
inputLine = in.readLine();
HTH
VJ -
I am not able to open your answer for some reason my computer is not opening it in Explorer, it’s not responding and I keep getting error messages and I don’t know how to open it in another browser when Explorer experiencing issues.
HeatherIf you have IE version 10 go to TOOLS and change the option to use Compatibility View
-
HT5467 How do I switch to another AppStore ? (From US to Israel)?
How do I switch to another AppStore ? (From US to Israel)?
If you do not have a credit card tied to a physical address in the country's store that you want to buy from, you will not be able to purchase from that store.
Settings>iTunes and App Stores>Apple ID
Tap your ID
Tap View Apple ID
Enter your password
Go to country/region in the popup window to change the store -
How to reuse deleted personnel number in sap
Dear All.
how to reuse deleted personnel number in sap
please help me
Regards,
Baqar IqbalIqbal
We can reuse the deleted number
Say once u have deleted all the information relaed to the pernr . Go to PA04 in the current no status give the deleted no and hire an employee in PA40
Note : this will applicable only in cretain cased so i would like to know in which context u want this -
Dear all,
I install a sap netweaver trial version i my office pc.
creat a sample web dynpro application and execute it is working but
when i use same URL in another pc it is not working all pc are network.
URL = http://localhost:8000/sap/bc/webdynpro/sap/ztest1
can you suggest me how can i access in another pc.
if any setting required.
Regards
Raju.Dear Dzed Maroz,
Thanks for your reply but when i enter ip address in place of localhost
that time internet explorer showing error
""Error when processing your request
What has happened?
The URL http://192.168.1.10:8000/sap/bc/webdynpro/sap/zz_service_call_demo was not called due to an error.
Note
The following error text was processed in the system NSP : Die URL enthält keine vollständige Domainangabe (192.168.1.10 statt 192.168.1.10.).
The error occurred on the application server intercode_NSP_00 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: CHECK of program CX_FQDN=======================CP
Method: LATE_CONSTRUCTOR of program CL_WDR_UCF====================CP
Method: HANDLE_REQUEST of program CL_WDR_UCF====================CP
Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
Module: %_HTTP_START of program SAPMHTTP""
Can you suggest me why this error is showing
Regards
Raju -
Incorrect link to "OS X: How to migrate data from another Mac using Mountain Lion and earlier". Should be http://support.apple.com/kb/HT6025
I think the OP is saying OS X: How to migrate data from another Mac using Mountain Lion and earlier (which should be a link to HT4889) just links back to OS X: How to migrate data from another Mac using Mavericks (HT5872).
It does indeed do that, & HT4889 seems to be MIA. -
How to reuse some components of the scripts layout to other programes
how to reuse some components of the scripts layout to other programes
You can't reuse components; the only solution would be to copy a script and to remove all components not needed.
Regards,
John. -
How to use once SC in Another SC, and How use one DC in another DC
Hi all,
I am new to DC and SC's concetp.
we have got two abc.sca and xyz.sca files which contains some DC's kind of the functionality. So, now we need to create new SC called MyComp.sca and i need to create one new DC caleed "display_dc" in this.
So this DC need to call the DC's which are available in the above .sca files. how to build this.
How to use once .sca file in another.
How to call dc from another sca of the dc.
how to use from one dc to another dc.
do i need to define the depency in the SLD when i am create the new SCA with using SCA files.?
REgards
VijayI will try to give you a place to begin...
SC are Software Components. Think of them as development products, like MS Word or Adobe Reader. They include sets of DCs, development components. DCs are smaller units, like programs and libraries in the SCs.
Software architects define SCs in SLD and also define two types of dependencies between them:
- build time (required to compile and build)
- runtime (required during execution)
SCs themselves are "buckets" for DCs, so dependencies between SCs describe dependencies between DCs they include. Think of that the same way as we we say "SAP Visual Admin (SC) depends on JDK (SC)". It means that swing apps of Visual admin (DCs) need java classes packaged in JDK (DCs).
This will help:
http://help.sap.com/saphelp_nw70/helpdata/EN/42/d27865d006136ae10000000a1553f7/frameset.htm
DCs interact between themselves by exposing "public parts" (SAP webdynpro terminology), allowing one DC to access objects of another DC.
Here it explained in more details:
http://help.sap.com/saphelp_nw70/helpdata/EN/62/06108b6af0264a9a5393fd787ea3c9/frameset.htm
http://help.sap.com/saphelp_nw70/helpdata/EN/3b/13d6de881a8f4daac3d28e1652a2bb/frameset.htm
I tried to explain it in asimple terms.
Hope it helped.
Regards,
Slava -
How do I switch to another partitioned drive
How do I switch to another partitioned drive?
Am I missing something?
Yes, the partition has to be bootable to be used as a startup partition. You would need to install OSX on the partition.
Since you're not the original poster, you may be better served by starting your own post.
Maybe you are looking for
-
Itunes cannot detect my i phone 4 after restoring.. lost all data help!!
I was trying to update my I phone 4 with the latest Ois system when i tunes crashed. I had to restore my iPhone as it was irresponsive. To restart it when I tried to restore; itunes first showd me the the progress as : Extracting Software.. (complete
-
Help please: iOmega external HDD not mounting
Hello, I hope someone can help me 1) solve this problem and 2) give me some tips on how to avoid if it was self induced. My iOmega external HDD won't automatically mount. It does not display in Disk Profiler. In System Profiler I can see an unknown F
-
Determine Max Value from Lower level?
Hi, I have requirement to determine maximum value from lower levels. Please post your ideas to resolve this requirement using BEx Query designer. Level_A1 MAX (KF1 of lower level - B1 to B2 or C11 to C1n + C21 to C2n) Level_B1 MAX (KF
-
Different Method to valuate sales order stock
Dear expert, I came across a problem and I need your help: Scenario: Make-To-Order production without sales order controlling. Uses standard price in material master record. As we know, There are a predefined sequence to valuate sales
-
Bug in Data Modeler / phy. model
Hi I tried to implement a view creation with "force option". Therefore I that the force flag in my phy. definition but it is ignored on script generation. Is this a known bug? Regards Joe