Dynamically change the img URL
Hi all,
I have developped an application for that I need to display four images depending some condition.
My all images are in source-mimes-components-com.ram-img1,img2,img3.img4.
These images are I mapped My view UI element InterctiveForm Object URL.
Here I only mapped statically.but I need to set the URL path dynamically how to do it.
Any suggestions welcome.
Thanks
Lohi.
Hi
public java.lang.String Z_Ff_Ar_Invoice_Copy_InputImageUrl(IPrivateInvoiceAppView.IZ_Ff_Ar_Invoice_Copy_InputElement element)
//@@begin getZ_Ff_Ar_Invoice_Copy_InputImageUrl(IPrivateInvoiceAppView.IZ_Ff_Ar_Invoice_Copy_InputElement)
String path ="";
String title = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("title");
if(title.equalsIgnoreCase("ONE"))
try {
path =
WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getDeployableObjectPart(),"ONE.jpg");
} catch (WDURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return path;
else
try {
path =WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getDeployableObjectPart(),"LII.bmp");
} catch (WDURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return path;
This is my gettter method.
In context rootnode mapped to Interactive element contain the my attribute imageUrl that have created as calculate attribute.
This imageUrl Attribute only getting the images that need to be mapped into Interactiveform UI element.
And getting the path variable to setted to imageUrl then it shows error like this.
Root Cause
The initial exception that caused the request to fail, was:
java.lang.StackOverflowError .
This is my problem.
Please suggest me.
Thanks
Lohi.
Similar Messages
-
Podcast is having issues since I changed the feed url
Ever since I changed the feed url for my podcast in itunes I have problems with the feed not working properly.
http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=157571623
When I try to download random files or episodes in this podcast it wont download in itunes. I get an error code (-50) saying it could be a network problem. But if I go to the direct feed url which is this in safari browser. I can click on the mp3 link and it plays just fine. Then after doing that I can go back into itunes and click "get" on the exact same file that wasnt downloading earlier and now it downloads. Very odd. Once that is done all files in itunes download without any problems. I thought it was just something wrong with my itunes. But it only happens for my feed when I subscribe to it. I tried it on my windows system in itunes and having the exact same problem. I called a couple people up and its happeing with them in itunes also. When one of us accesses the feed by way other than itunes it will then work for awhile then go back to not working again. It started happening when I changed the url in itunes to have it point to the feedburner url. Im having the issue right now as a matter of fact. I cant even listen to the preview of each episode. Maybe someone can try the itunes feed and check it out for me. Any ideas?
Its frustrating. Im wondering if I need to just submit a new podcast to itunes.
PS: I posted this in itunes for windows, Im using both mac and windows. Its not specific to either OS.Im pretty sure the problem has been resolve. We own both the .org and the .com extensions of our website. The primary being the .org and a redirect if a user goes to the .com address. I use feeder to create the podcast feeds and it has an autofill feature in it. Somewhere along the line on the enclosures I inputed the .com address instead of .org. Why the redirect works just fine in most feed readers. Apparently itunes doesnt support it. One of the users in the feedburner forum picked up on this. I corrected all the enclosure urls to .org as they should be and everything so far works fine.
-
How to dynamically change the text of a TextObject with embedded DataField?
Hi
I'm trying to dynamically change the text of a TextObject at runtime, by using the .NET library. My problem is that if one or more DatabaseFieldDefinition is embedded inside my text, I'm unable to change the "static text" only, by keeping the field, e.g. I have :
Text1 => "Contact Name: {Contact.Name}"
and I'd like to change it to anything else like:
Text1 => "Nom du Contact: {Contact.Name}"
Half of my TextObject is static text while second part comes from the dataset.
(of course the translation is dynamic - it is called at run-time and the new value to be set depends on the calling application language)
If I simply modify the Text property of my TextObject, the {Contact.Name} embedded field is not evaluated anymore by the Crystal Engine, but considered as a single text.
Using formulas or parameters looks quite difficult, because it means having many ones just for translation needs - I cannot control the way my users will create their reports and "force them" to use complex methods just in order to put a text and a value together...
Anyone knows how to deal with that ?Only way I can think of doing this:
1) Create a formula (call it lang) and enter the string "Contact Name" in it
2) Place the {Contact.Name} field next to the string
3) So now you have:
ContactName: {Contact.Name}
4) Check what localization you are after. If you need "Nom du Contact", change the lang formula so it shows "Nom du Contact" using the code below:
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Public Class Form1
Inherits System.Windows.Forms.Form
Dim Report As New CrystalReport1()
Dim FormulaFields As FormulaFieldDefinitions
Dim FormulaField As FormulaFieldDefinition
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
FormulaFields = Report.DataDefinition.FormulaFields
FormulaField = FormulaFields.Item(0)
FormulaField.Text = "[formula text]"
CrystalReportViewer1.ReportSource = Report
End Sub
I realize this may not give you consistent spacing as the translations may have strings of differnt length. Perhaps someone has other idea(s)... -
Dynamically change the Binding of a view object
I want to reuse a panel several times in my application. The VO has one bind parameter (:1). The same panel should be reused several times with different bind variables.
I found a technical note concerning this issue called: How to Dynamically Change the binding of a View Object to a JClient Panel. This works for JDeveloper 9i but not for JDeveloper 19g. Does anybody know how to dynamically change the binding in JDeveloper 10gYou may use bindRowSetIterator() and pass in a custom fetched ViewObject or a RowSetIterator to the iterator binding that is displayed in your panel.
-
Dynamically change the Priority Group of Logical Table Sources in OBIEE 11g
Hi All,
I have 2 Logical Table Sources(LTS 1 and LTS 2 for a Logical Table in BMM Layer).
Example: Logical Table : Sample
LTS Source 1 : Sample 1(Priority Group Set to 1)
LTS Source 2 : Sample 2(Priority Group Set to 0)
I have set the Priority Group of Sample 1 LTS Source to 1 and Priority Group of Sample 2 LTS Source to 0.
I need to dynamically change the Priority Group of Sample 1 LTS Source to 0 if my role is DEVELOPER where role is a column in database.
If my role is not equal to DEVELOPER then the Priority Group of Sample 1 LTS Source will remain same(1).
Please suggest how can i achieve this.
Thanks,
Soukath Alihello Soukath Ali,
didi you find a way to dinamically changing Priority Group?
thanks,
Maria Teresa Marchetti -
Dynamically changing the name of the .dll file to load in call Library
Our current model is to use dll files as "plug-in" modules for instruments and a top layer test step calls the appropriate driver dll.
For instance
the TestStep is called with the kenmore.dll passed as a parameter so the kenmore.dll file is loaded, the functions are registered and the functions are called. Next the TestStep is called with whirlpool.dll as a parameter now the whirlpool.dll is loaded the functions are registered and the functions are called. This works very well in our current CVI/LabWindows environment. Now we plan to work with LabView, we wish to retain this model (as DLL files, there are advantages in our model for us). We have not found a way to load these dll files from LabView without hard coding the path and filenames in.
Any suggestions on how to dynamically change the path in the Call Library module, or another suggested method of loading the dll via LabView?
Thanks,John Stuart wrote:
Our current model is to
use dll files as "plug-in" modules for instruments and a top layer test
step calls the appropriate driver dll.
For instance
the TestStep is called with the kenmore.dll passed as
a parameter so the kenmore.dll file is loaded, the functions are
registered and the functions are called. Next the TestStep is
called with whirlpool.dll as a parameter now the whirlpool.dll is
loaded the functions are registered and the functions are called.
This works very well in our current CVI/LabWindows environment.
Now we plan to work with LabView, we wish to retain this model (as DLL
files, there are advantages in our model for us). We have not
found a way to load these dll files from LabView without hard coding
the path and filenames in.
Any suggestions on how to dynamically change the path in the Call
Library module, or another suggested method of loading the dll via
LabView?
Thanks,
As Ben has pointed out LabVIEW
scripting may be a possibility but you are going with that in highly
unsupported area. Also I happen to know that changing the library name
of a Call Library Node through scripting has produced unsupported
feature errors previous to LabVIEW 7.1 eventhough the method was there.
And LabVIEW 8 hides the whole scripting business behind the license
manager.
Another approach at least if the different DLLs do not change to often
thier functions and parameters would be to create a wrapper DLL. Have
it a method that loads the desired DLL and links its functions to
internal function pointers. Then when calling the actual function entry
points just redirect directly to the correct fucntion through that
function pointer. Since you are already working in CVI creating such a
DLL should be only a matter of taking out a little bit of your already
existing code and put it into a DLL project.
Rolf Kalbermatter
Message Edited by rolfk on 04-12-2006 07:40 AM
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
Dynamically changing the flatfile name..
Hi friends,
I 'm Getting data from 30 Flat files...all are with same structure but different data.. .. all these files are now in Application server...
now i want to upload data into with a single DataSource and to ODS with process chains..
so, how can i dynamically change the file name in Data Source level.. i saw previous threads.. in that.. through Routines.. we can solve this problem.. but I dont know ABAP code... so, can any one plz give me the exact code.. what i have to write...exact coding..
<b>
I already post this question in forums.... but evry one gave different options.. some one gave the function module..
BAPI_IPACK_CHANGE and BAPI_IPACK_START.
and some one gave other function module.. like .. EPS_GET_DIRECTORY_LISTING
i tryd for All these options.. but i'm not getting the exact solution... even i'm unable to pass the parameters also.. beacuse.. in that function what parameters can i pass....</b>
can u plz suggest me the solution..
Thanks
BabuHi Friends,
for the above requirement i had write the bellow coding in the routine.. it is working.. but the problem is.. it was loading only the last file..(30 th file data only..)
data : z1(50) type c,
z2 type c,
z3(50) type c,
z4(50) type c.
Z2 = 1.
Do 5 times.
z1 = 'C:\Documents and Settings\e10035\Desktop\'.
z3 = '.csv'.
concatenate z1 z2 z3 into z4.
p_filename = z4.
z2 = z2 + 1.
Enddo.
SO, CAN YOU PLZ SUGGEST ME.. when ever the file name was changing in the loop.. that automatically should load into the PSA ..
plz... plz.... help regarding this..
Bbau -
Dynamically changing the color of nodes in a JTree
I have created a JTree and want to dynamically change the color of some of the TreeNodes as my program runs. The JTree is displayed in a JPanel. There is an algorithm built into which identifies the nodes whose color I need to change. No user actions is performed (everythign is internal to the program).
It seems that in the TreeCellRender only kicks in when the tree is first displayed. How do I get it to re-render the tree when the TreeModel changes? It seems that the Listeners are only looking for external user interactions.
Any help would be greatly appreciated.
Thanks!I think I was a bit too vague in my question. Let me try again...
I have changed an attribute in a node in a JTree. This attribute is changed after the tree was initially rendered, but while the program is still running. I want to tell the TreeCellRenderer to look again at this node since that attribute that was changed will effect how the node should be renderered. I tried using the nodeChanged() method, but it did not work (the colot of the node did not change). Any advise how I can do this?
Thanks! -
Changing the Site URL of a Sharepoint site changes the content type order
Description
Changing the Site URL of a Sharepoint site changes the content type order of all lists that
* contain folder content types
* and have a custom content type order
* where a folder content type is the first content type in order.
Reproducible behaviour
1. Create a Team Site in Sharepoint
2. Create a Task List "Test" on the Team Site
3. Go to List Settings
4. The Content Type order is by default
a. Task
b. Summary Task
5. Change the Content Type Order to
a. Summary Task
b. Task
6. Go To Site Settings "Title, description and icon"
7. Change the Site Url
8. Go To List "Test" List Settings
9. The Content Type order now is
a. Task
b. Summary Task
10. Select "Change New button order and default content type"
11. Here, the Content Type order still is
a. Summary Task
b. Task
Is this a bug? Has anyone noticed this behaviour before?
Kind Regards,
JoachimHi Joachim,
You are not missing something or doing something wrong. i Hope :). This behavior is reproductible.
The granularity of change is better by Powershell. But by the interface is most user-friendly.
Maybe that's the reason of this behavior.
Gilles Martinez
Twitter
Blog
Please mark as helpful/answer if this resolved your post -
Alle experts:
In ALV layout report, how to dynamic change the layout int ABAP porgram?
e.g. I have save 5 layout, I need to change them base the my selection in ABAP program? How to do this?
Thanks in advance!Try to call fieldcatlog dymnamically. Refer tofollowing code. Reward if helpful.
REPORT zfir0001 MESSAGE-ID ztax.
Tables
TABLES : glt0, t001, skat.
Internal Tables
DATA: BEGIN OF itab OCCURS 0,
racct LIKE glt0-racct, "Account number
txt20 LIKE skat-txt20, "G/L account short text
co_1000 LIKE glt0-hslvt, "Balance carried forward for company code 1000
co_1100 LIKE glt0-hslvt, "Balance carried forward for company code 1100
co_1200 LIKE glt0-hslvt, "Balance carried forward for company code 1200
DATA : BEGIN OF itab1 OCCURS 0,
bukrs LIKE glt0-bukrs,
waers LIKE t001-waers,
END OF itab1.
DATA : BEGIN OF it_itab1 OCCURS 0.
INCLUDE STRUCTURE glt0.
DATA : END OF it_itab1.
Data Declarations
DATA : w_total LIKE glt0-hslvt,
w_count LIKE glt0-bukrs,
w_flg TYPE c,
lv_count TYPE i.
w_slash TYPE c VALUE ' '.
Selection screen
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE tit1.
SELECT-OPTIONS : s_bukrs FOR glt0-bukrs OBLIGATORY,
s_racct FOR glt0-racct OBLIGATORY,
s_ryear FOR glt0-ryear OBLIGATORY,
s_rldnr FOR glt0-rldnr OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b1.
INITIALIZATION.
tit1 = 'Please select:'(004).
TYPE-POOLS: slis. "ALV Declarations
DATA: i_fieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
gd_tab_group TYPE slis_t_sp_group_alv,
gd_layout TYPE slis_layout_alv,
gd_repid LIKE sy-repid.
********Geting the selected company code in table itab1****
START-OF-SELECTION.
IF NOT s_bukrs-high IS INITIAL.
itab1-bukrs = s_bukrs-low.
APPEND itab1.
w_count = s_bukrs-low.
DO.
IF s_bukrs-high = w_count.
EXIT.
ELSE.
w_count = w_count + 1.
ENDIF.
SELECT SINGLE * FROM t001
WHERE bukrs = w_count.
IF sy-subrc = 0.
itab1-bukrs = w_count.
APPEND itab1.
CLEAR itab1.
ENDIF.
ENDDO.
ELSE.
itab1-bukrs = s_bukrs-low.
APPEND itab1.
ENDIF.
SELECT * FROM glt0 INTO CORRESPONDING FIELDS OF TABLE it_itab1
WHERE rldnr IN s_rldnr
AND bukrs IN s_bukrs
AND ryear IN s_ryear
AND racct IN s_racct.
SORT it_itab1 BY bukrs.
LOOP AT it_itab1.
AT END OF racct.
w_flg = 'X'.
ENDAT.
SELECT SINGLE txt20 INTO (itab-txt20) FROM skat
WHERE spras = sy-langu
AND saknr = it_itab1-racct.
PACK it_itab1-racct TO it_itab1-racct.
itab-racct = it_itab1-racct.
w_total = it_itab1-hsl01 + it_itab1-hsl02 + it_itab1-hsl03 + it_itab1-hsl04 +
it_itab1-hsl05 + it_itab1-hsl06 + it_itab1-hsl07 + it_itab1-hsl08 +
it_itab1-hsl09 + it_itab1-hsl10 + it_itab1-hsl11 + it_itab1-hsl12 +
w_total + it_itab1-hslvt.
IF w_flg = 'X'.
READ TABLE itab1 WITH KEY bukrs = it_itab1-bukrs.
IF sy-subrc = 0.
SELECT SINGLE * FROM t001
WHERE bukrs = itab1-bukrs.
IF t001-waers = 'JPY' OR
t001-waers = 'HUF'.
w_total = w_total * 100.
ENDIF.
CASE it_itab1-bukrs.
WHEN '1000'.
itab-co_1000 = w_total.
WHEN '1100'.
itab-co_1100 = w_total.
WHEN '1200'.
itab-co_1200 = w_total.
ENDCASE.
COLLECT itab.
CLEAR: itab, w_flg, w_total.
ENDIF.
ENDIF.
ENDLOOP.
SORT itab BY racct.
IF NOT itab[] IS INITIAL.
PERFORM field_cat1.
lv_count = 1.
LOOP AT itab1.
PERFORM field_cat USING itab1-bukrs.
ENDLOOP.
PERFORM display_alv_report .
ELSE.
MESSAGE s000 WITH 'No records Found'(003).
ENDIF.
*& Form display_alv_report
text
FORM display_alv_report .
gd_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = gd_repid
is_layout = gd_layout
it_fieldcat = i_fieldcat[]
i_save = 'X'
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDFORM. "display_alv_report
*& Form field_cat1
text
FORM field_cat1 .
i_fieldcat-col_pos = 0.
i_fieldcat-fieldname = 'RACCT'.
i_fieldcat-seltext_m = 'Account'(001).
i_fieldcat-fix_column = 'X'.
i_fieldcat-emphasize = 'X'.
APPEND i_fieldcat TO i_fieldcat.
CLEAR i_fieldcat.
i_fieldcat-col_pos = 1.
i_fieldcat-fieldname = 'TXT20'.
i_fieldcat-seltext_m = 'Description'(002).
APPEND i_fieldcat TO i_fieldcat.
CLEAR i_fieldcat.
ENDFORM. "field_cat1
*& Form field_cat
text
-->XV_BURKS text
FORM field_cat USING xv_burks TYPE char4.
lv_count = lv_count + 1.
i_fieldcat-col_pos = lv_count.
CONCATENATE 'CO_' xv_burks INTO i_fieldcat-fieldname.
i_fieldcat-seltext_m = xv_burks.
i_fieldcat-just = 'C'.
i_fieldcat-no_zero = 'X'.
i_fieldcat-do_sum = 'X'.
APPEND i_fieldcat TO i_fieldcat.
CLEAR i_fieldcat.
ENDFORM. "field_cat
Edited by: dhanashree wadkar on Apr 30, 2008 6:00 AM -
OBIEE 10g AGO Function Dynamically Change the Heading
I created columns in my rpd named Sales Previous Month, Sales 2 months ago and Sales 3 months ago using the AGO Function. This is working fine.
My problem is when displaying these headings the users would like to see the Month Name instead of the Headings I created. For example if looking at a report for January the users would like to see:
Sales Previous Month = December
Sales 2 Months ago = November
Sales 3 Months ago = October
Is there any way to dynamically change the value of the column header to show the name of the month?Hi SriniVEERAVALLI,
Thanks for the reply. I have found that I might haven't created the relationship between dimension and fact tables correctly.
I initially created the foreign key relationship (instead of creating complex join) in physical diagram between the dimension and fact table. And the relationship type is hence greyed out.
I have deleted the foreign key relationship in physical diagram. Then
1. In physical diagram, create complex join between dimension and fact . The relationship is 'inner' and can't be changed.
2. In Logical table diagram, create foreign key between dimension and fact . The relationship can be changed (inner, outer, etc).
Is this the correct way?
I tried these on two newly created dummy tables and it worked. -
I just installed Firefox 4 today. When I try to change the keyword.url settings in about:config to do a "I'm Felling Lucky" Google search, it just resets to chrome://browser-region/locale/region.properties whenever I restart Firefox.
Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
* Don't make any changes on the Safe mode start window.
See:
* [[Troubleshooting extensions and themes]]
See also:
* http://kb.mozillazine.org/Preferences_not_saved -
Is it possible to dynamically change the image in a Picture Field?
Is it possible to dynamically change the image in a Picture Field?
Thank youTry using the In Proc RAS SDK.
[Here are the sample applications.|http://www.sdn.sap.com/irj/boc/samples?rid=/webcontent/uuid/b02c1cac-ad86-2b10-88ae-cb36551bab06] Take a look at the 'Add Image' sample.
Insert the picture at design or runtime and change the location / name of the image at runtime.
- Bhushan. -
Dynamically change the document when the user opens it through a PDF Portfolio
Hello
I'm generating a PDF Portfolio using LiveCycle PDF Generator. I need to dynamically change the document that is presented when the user opens a PDF portfolio.
Can anyone give ideas on how to accomplish this using the portfolio and navigator API?
Thank youThat was it. What an operating system. It is very helpful to view files you are looking for. But if you have preview on you cannot save files.
-
Dynamically changing the report path
Is there any way to dynamically change the path where the reports are saved. Teststand 4.1.1
Message Edited by glennjammin on 04-21-2010 03:30 PM
Test Engineer
L-3 Communications
Solved!
Go to Solution.Yes you can run a VI in the ReportOptions Sequence, add it to the Setup of that sequence. If you dont use FileGlobals.Dated anywhere else then use a Local instead. Just remeber FileGlobals are only global to sequences that are contained in a SequenceFile. They are not global across SequenceFile unless you are using the Batch Process Model.
You will probably have to set a number of other parameters up to work with ReportOptions.Directory. The best way to handle this is to setup up you exact conditions statically (ie via the Config | Report Options... menu ). Place a breakpoint in the ReportOptions (use a label if you dont have any steps in the ReportOptions sequence at the moment) and run your Sequence. Remeber to use Test UUTs or Single Pass. You dont have to use your full test sequence just create a simple one step sequence.
When you reach the break point, then you can browse the Parameters.ReportOptions and see what properties are required to ensure your reports are setup correctly.
Hope this helps.
Regards
Ray Farmer
Regards
Ray Farmer
Maybe you are looking for
-
Adding pages and Text Frames to emulate the behaviour of "Smart Text Reflow"
I am creating a large number of tables in a document. If I have Smart Text reflow turned on, my script does not work properly. I have the start of the processing: 1. Add a new table 2. If the last page text frame overflows then Add a new page With
-
Hi, I have developed a application in visual studio to create and view reports. Now I would like to make this application as default viewer for viewing .rpt files instead with sap report viewer programatically in c# in all the systems i install this
-
Help Oracle APEX Report Filter.
I have an report with oever 10,000 rows. Currently it is displaying 15 rows per page. I want to filter the report based on a value on one of the columns. When I click on the column, it shows a drop down list. The value I see on the report is not show
-
Security Manager - Cannot add 877 router
Hi, I have 3.1.1 SP3 security manager. I added IPS 28xx routers but I cant add 877 routers to it. It gives the error message below. Do you know the workaround for this? My 877 router has C870-ADVIPSERVICESK9-M), Version 12.4(22)T Failed to communicat
-
I can't find the "start up" option in the tools - options - general tab.
I have lost the "restore previous session" action from Firefox at start up. Looked in Tools - Options - General and there is no option to change behavior at start up.