Display module dynamically
Hey guys,
I have tried this in the past but it hasn't worked for me, so I moved on with states. Now with Flex 4, I hoping I will have better luck. I haven't be able to find any examples so far, so I am wondering if any here has come across a similar UI issue, and perhaps implemented it.
Base of my application is an Application NavBar and a ViewStack, each component in my view stack is displayed with wipeup/down effect. One component of a view stack is search, which displays a form and an empty panel next to it, when user submits the form, panel is populated with a DataGrid with results of the search.
What I want to do now is if user clicks on one of the rows in the DataGrid, a module be loaded, pass an ID of the row, and populate some details in the module, and have the display the module with wipeup/down effect in the view stack. If user clicks on browser back button, the module in unloaded and search page is displayed again as it was before. (I hope get the picture of what I am trying to accomplish)
I can load a module, pass an ID and get detail from db, but I can't seem to get it to display correctly, and I haven't tried the browser behavior, although I have deep linking already setup. If I add the module to my view stack then and empty button is displayed on my NavBar (which is undesirable). In the past I had created a state, but that gets really messy considering all the subcomponents that are displayed in my detail state.
Any pointers? an example would really help. Thanks for you help
Jay
Hi,
you cannot change button text dynamically in a dynpro itself.
But you can place each button that may be shown on a different subscreen (if there are not too many). In PBO you choose the fitting subscreen in accordance to your needs.
Good luck!
Jo
Edited by: Joachim Ardelt on May 13, 2008 9:39 AM
Similar Messages
-
Not able to display a dynamic image
I'm not able to display a dynamic image on Adobe print form.
Here is what I did.
Please let me know what I need to do to get this working...
1. Created a Graphics node in the Context of the Adobe form.
2. In the URL tab of the graphics node defined the following two lines:
<URL pointing to the MIME repository folder>
IM_FILENAME_1
Where IM_FILENAME_1 is being passed to the Adobeform function module.
3. In the Layout mode, dragged and dropped the Graphics node from the
contenxt tab to the form layout. On doing so it appears as a image field in the form layout.
4. Activated the form.
BUT, when I run the form , the image is not showing up.
The idea is to pass the image file name to the form so that it will show up a dynamic image at run time.
PLEASE HELP.Hi Atul,
Try this, that should work.
In the interface , define a parameter type string where you will store the URL of the image .
In the initialization part of the interface , check if the URL is defined, in case it's empty define a default URL . You should put the compelte URL of the image like "http://www.company.org:8080/logo.logo.jpg" .
Then link this parameter to the Grpahic Node in the URL parameters .
Let me know if that works -
How to display a dynamic image file from url?
Hey,I want to display a dynamic image file from url in applet.For example,a jpg file which from one video camera server,store one frame pictur for ever.My java file looks like here:
//PlayJpg.java:
import java.awt.*;
import java.applet.*;
import java.net.*;
public class PlayJpg extends Applet implements Runnable {
public static void main(String args[]) {
Frame F=new Frame("My Applet/Application Window");
F.setSize(480, 240);
PlayJpg A = new PlayJpg();
F.add(A);
A.start(); // Web browser calls start() automatically
// A.init(); - we skip calling it this time
// because it contains only Applet specific tasks.
F.setVisible(true);
Thread count = null;
String urlStr = null;
int sleepTime = 0;
Image image = null;
// called only for an applet - unless called explicitely by an appliaction
public void init() {
sleepTime = Integer.parseInt(getParameter("refreshTime"));
urlStr = getParameter("jpgFile");
// called only for an applet - unless called explicitely by an appliaction
public void start() {
count=(new Thread(this));
count.start();
// called only for applet when the browser leaves the web page
public void stop() {
count=null;
public void paint(Graphics g) {
try{
URL location=new URL(urlStr);
image = getToolkit().getImage(location);
}catch (MalformedURLException mue) {
showStatus (mue.toString());
}catch(Exception e){
System.out.println("Sorry. System Caught Exception in paint().");
System.out.println("e.getMessage():" + e.getMessage());
System.out.println("e.toString():" + e.toString());
System.out.println("e.printStackTrace():" );
e.printStackTrace();
if (image!=null) g.drawImage(image,1,1,320,240,this);
// called each time the display needs to be repainted
public void run() {
while (count==Thread.currentThread()) {
try {
Thread.currentThread().sleep(sleepTime*1000);
} catch(Exception e) {}
repaint(); // forces update of the screen
// end of PlayJpg.java
My Html file looks like here:
<html>
<applet code="PlayJpg.class" width=320 height=240>
<param name=jpgFile value="http://Localhost/playjpg/snapshot0.jpg">
<param name=refreshTime value="1">
</applet>
</html>
I only get the first frame picture for ever by my html.But the jpg file is dynamic.
Why?
Can you help me?
Thanks.
JoeHi,
Add this line inside your run() method, right before your call to repaint():
if (image != null) {image.flush();}Hope this helps,
Kurt. -
Is it possible to display only dynamically selected fields in the out put?
Is it possible to display only dynamically selected fields in the out put? i need to display set of columns in the selection criteria, but in the output i have display only input given fields. because i need to convert it into .csv file. So i have to display selected fields from internal table. In oracle they are using"execute immediate". is there any equivalent in SAP?
thanks in advance.Hi Remya,
Are you talking about dynamic programming in ABAP ?
If yes, there are concepts like RTTS which facilitates it.
Yes, the select query also supports dynamic selection of fields. ( Please care about ( ) in dynamic sql ).
Do more research on Field Symbols and statements like ASSIGN COMPONENT OF.
Regards,
Philip. -
After having to re-install my start-up drive recently I am getting a message with Adobe Premiere Pro CS5 that it can't find any "capable video play modules" and asks me to "update" my "video display modules". I am using a mid-2010 iMac 27" with OSX 10.7.3. How do I do this?
Premiere is an Adobe application and is supported in their forums.
Good luck.
x -
Displaying a dynamic image in a jsp
I am interested in the way of dynamically generating an image in a web browser. The image should be formed on the servlet, more precisely with the aid of a servlet, and reloaded in the web browser every time it suffers modifications (for example, elements are drawn). The drawing and displaying part is already functioning not as a server application, but as a desktop one. The result of the drawing actions are displayed in a Bufferd Image view. What I have to do is to display this image in the browser, encoded as a gif (I already know how to do the encoding part).
//code from TheServlet.java
ImageViewPort view = new ImageViewPort(600, 600); // BufferedImage type
Image image = view;
g = image.getGraphics();
response.setContentType("image/gif");
GifEncoder encoder = new GifEncoder(image, out);
encoder.encode();
How would I correctly reference in the HTML form this servlet? In the HTML form I have to display the dynamically created GIF image as a server side image map?
// code from the HTML form
<img WIDTH=600 HEIGHT=600 BORDER="2" src="http://localhost:8080/servlet/TheServlet");
ISMAP/>
How should be written the source of these image map?you can use AJAX for this.. google maps is using ajax for rendering their maps..
-
How to display the dynamic region in full size
Hi,
I'm not able to display the dynamic region in full size.
In my page, i attached a dynamic region which refers a page fragment. This dynamic region contents are showing as small (scroll is there but i want to display fully).
How to do this?
Thanks in advance,
SundarMore than likely it has something to do with your parent layout element. I'd suggest putting your region in an af:panelStretchLayout or similar container that stretches its children. Some of the elements can be a little tricky though, such as af:panelTabbed. It has an attribute that must be set to stretch its first child.
-
How to display the dynamic text in the selection screen
Hi All,
I want to display the dynamic text in the selection screen .... ( I searched in forums , didnt get the any answer fot this sort of qustion ).....
EX: If i have the date of today 31st it has to show message like " today date is 31 like some thing " when i execute the report .
Could any one face this sort of requirment, Please let me know.
Thanks in advance.
Reagrds,
BharaniWhere would you like this dynamic text being displayed? As an "message" or in some parameter field?
If first
parameters date type d.
data: text type string.
at selection-screen.
concatenate 'Today is' date into text.
message text type 'I'.
If second
parameters pa_text type c length 50.
at selection-screen on date.
if date is not initial.
concatenate 'Today is' date into pa_text.
enidf.
at selection-screen output.
"show it as read only
loop at screen.
if screen-name = 'PA_TEXT'.
screen-input = abap_false.
modify screen.
endif.
endloop.
Regards
Marcin -
Dear Vinod,
IMHO i don't think this is a spec dumping. I did try to search and even tried hands on it. Unfortunately i didn't get any luck with that.
Morever i'm not asking for any spoon feeding...It's just about some pointer's or any ideas that would help me.
Hope that clarifies much better.
Thanks in advance,
Arya.
My selection screen has a parameter P_WEEK.
Suppose if user enter's a week no for ex: 5. My ALV header should display as
Week5 Week6 Week7 Week8 Week9 Week10
i.e. Up to next 5 weeks. How to design a ALV that would display a dynamic header?
Any ideas or suggestion would be of great help.
Thanks,
Arya
Moderator message : Search for available information. Moved to basic(points-free) forum.
Edited by: Vinod Kumar on Oct 19, 2011 3:37 PM
Edited by: arya.soumya on Oct 19, 2011 12:22 PM
Edited by: Suhas Saha on Oct 19, 2011 4:08 PMHi,
you just try to write below logic in TOP-OF-PAGE routine in your program.
parameter: p_week(3) type c.
Form top_of_page .
do p_week times.
pass the required data to your internal table and append it.
enddo.
Endform.
Ram. -
Where can I buy original LCD display module for iPhone 5?
I have my iPhone broken! Is it real to buy a ORIGINAL display module for iPhone 5?
officially nowhere
apple don't sell spare parts
and don't reapir such issues
3th party repair places does where they get their parts and if they are "official" parts I have no idea -
How to call a function module dynamically?
Hi
I am doing a smartform development and here my scenario.
<b>Scenario:</b>
There will be a simple report which will trigger a smartform output. The report has a selection screen and and in one of the field the user will enter the layout name or the layout name will be stored in the variant so that the user need not remember the layout name.
Based on the layout selected i need to show the output.
<b>What i have coded:</b>
In my program after selecting the data i am calling the FM SSF_FUNCTION_MODULE_NAME which will return the function module name to be called.
<b>Question:</b>
How do i call the function module dynamically. I cannot do a single call to the function module using the FM name derived from the above function call. I want to make the interface calling dynamic. We dont want to hardcode the function calls coz we may have many layouts to be called so how is it possible in SAP to call the FM interface dynamically.
~SureshActually you can call the FM dynamically in by taking it into one variable and than use the CALL FUNCTION V_FM_NAME.
But the problem here is, you need to take care about the importing, exporting and tables parameters. They needs to be same for all FMs which you are planning to call. Otherwise system will give you a run time error.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING FORMNAME = LF_FORMNAME
* variant = ' '
* direct_call = ' '
IMPORTING FM_NAME = LF_FM_NAME
EXCEPTIONS NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
CALL FUNCTION LF_FM_NAME
EXPORTING
ARCHIVE_INDEX = TOA_DARA
ARCHIVE_PARAMETERS = ARC_PARAMS
CONTROL_PARAMETERS = LS_CONTROL_PARAM
* mail_appl_obj =
* mail_recipient = ls_recipient
MAIL_SENDER = LS_SENDER
Regards,
Naimesh Patel -
How to display servlet dynamically generated image ?
Hi,
How to display servlet dynamically generated image ?
I have a servlet generating a buffered image in the doGet. I want to display the image in a jsp page with other information. I'm not able to get it properly displayed.
**Try n# 1 **************************************************************
This displays my image but nothing elle :
ServletOutputStream sos = pResponse.getOutputStream();
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(sos);
encoder.encode(img);
**Try n# 2 ****************************************************************
I tried also :
In the servlet :
request.setAttribute("renderedImage", img);
and in the jsp page :
BufferedImage image = (BufferedImage) request.getAttribute("renderedImage");
<img src="<%=ImageIO.write(image,"jpeg",response.getOutputStream())%>" width="300" height="280"/>
This last try draws big crap in the jsp page, thank you in advance.
NelsonCall another servlet from the IMG tag. Have the servlet stream out the image using ImageIO (instead of writing HTML).
-
ALV display using dynamic field catalog and dynamic internal table
hi ,
please guide me for ALV display using dynamic field catalog and dynamic internal table.
Thank you.Hi Rahul,
maybe thread dynamic program for alv is helpful for you. More information about the [SAP List Viewer (ALV)|http://help.sap.com/saphelp_nw70/helpdata/EN/5e/88d440e14f8431e10000000a1550b0/frameset.htm]. Also have a look into the example programs SALV_DEMO_TABLE*.
Regards Rudi -
Calling Function Modules Dynamically
Hi All,
Is it possible to call a function module dynamically i.e. to pass the module name and the import and export parameters dynamically at runtime. Please provide a way of achieving this.
Regards,
Milan ThakerHello,
Read this SAP documentation on calling function modules dynamically: [http://help.sap.com/abapdocu_70/en/ABAPCALL_FUNCTION_DYNAMIC.htm|http://help.sap.com/abapdocu_70/en/ABAPCALL_FUNCTION_DYNAMIC.htm] Here you have an example explaining the technique.
Also check this link on [ABAP FAQs|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/840ad679-0601-0010-cd8e-9989fd650822#q-29].
Cheers,
Suhas
Edited by: Suhas Saha on Mar 9, 2010 3:33 PM -
How to delete Thr created functional module dynamically
Hi All,
How to delete Thr created functional module dynamically
Regards,
Lisa
Message was edited by:
Lisa RoyHi,
You can use the function module RS_FUNCTION_DELETE to do that.
Make sure you are not deleting any standard FM's.
Example
call function 'RS_FUNCTION_DELETE'
exporting
funcname = 'ZFM_NAME" " Function modue name
suppress_popups = 'X' " TO suppress any pop-ups that come when you delete
exceptions
error_message = 1
cancelled = 2
function_released = 3
others = 4.
Regards,
Sesh
Maybe you are looking for
-
Having problem installing Win7 using Bootcamp on Mac Mini 2011
I'm trying to install Win7 using bootcamp on my new Mac Mini 2011. I first partitionned the disc using Bootcamp assistant. Then during Win7 installation I select Partition 4 BOOTCAMP, format it to NTFS, then when I try to select the drive, it says th
-
Uneven 24" Display, is this normal?
I have an Intel iMac with the 24" LCD. I had noticed that the screen's brightness was uneven. Lighter on the left, gradually getting darker towards the center and getting a little lighter towards the right. I have Apple Care and brought it to the App
-
How to minimize GL for bank?
Hi, I need your advice. My company have many bank account and also my subsidiaries. At present, we put the bank account number in the GL account text such as GL 100100 Bank Standard Chater # 43212 This means that it's the standard charter bank and
-
HTML DB Delete confirm Message
I have a Delete button and I have TWO QUESTIONS for this Delete button. 1- How do I implement confirm message to allow the user to either confirm or cancel? 2- How do I have a popup that was three buttons, namely [Delete One Record], [Delete All Reco
-
WebDynpro for Java: Standard Components for SM02 en rrMX?
Hi, Are there standard Components WebDynpro for Java for the transaction codes SM02(SM02_READ_MESSAGES) and RRMX(?)? Which Business Package do i have to use? Kind regards, Joris Meeuwsen