Dynamically changing size of JList items?
Hello!
I'm working on an application which kind of revolves around a JList with a custom ListCellRenderer. Now, it all works rather good as it is, but I want the selected JList item to show more detailed information about the selected value, and thus I need it to be bigger then the not selected items. The thing is that no matter what I do I can't seem to make the JList adopt to the new size of the selected item, which results in only half of the stuff in the selected item being shown.
Is there any way to do this it would be great! (I bet there is some really simple way which I have simply overlooked.)
And, fyi: The component returned by getListCellRendererComponent is a JPanel which consists of three JLabels using a GridLayout. The selected component is generally the same, but with an extra row in the GridLayout.
Any help/suggestions will be greatly appreceated!
Yours, Jiddo.
I have tried with a couple of different layout managers, and none of them (except for this one) seems to offer me the layout I need. Also, I have tried making it return different instances depending on if it is selected or not. The non-selected one has only one row in the layout while the selected has two. Here is a screenshot of how it looks:
http://img211.imageshack.us/img211/2779/jlistes1.jpg
Yours, Jiddo.
Similar Messages
-
Dynamically changing LOV whenever another item changes
I have two items on a page that are implemented as select lists based on LOVs, product and product category. The query for the product category lov references the product item. However, changes made to the product item are not reflected in the list of values for the product category item. As I understand, javascript is needed to make the LOV for product category dynamically change whenever the product item changes. Can somebody point me to documentation which details how to do this. Thanks for your help.
See this and some other examples on that topic:
http://apex.oracle.com/pls/otn/f?p=31517:119
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
Dynamically changing size of textbox in list
All- I have been having a bit of a problem solving this.
Perhaps you can help?
I have created a window that opens and displays a dictionary.
At the top of the window is a line of link buttons (A-Z). Below, is
a list component (I have tried both the list and tile list
components). When the end-user selects a link button, data from a
corresponding xml file loads into an item renderer containing two
text fields (one for the word, and one for the definition) which
gets displayed in the list component. Since each letter will have a
different number of word entries, and each word entry will have
various lengths of text, I need the the text box containing the
definition to dynamically resize, thereby resizing the item
renderer. Once this happens, I need the list to distribute the item
renderer evenly.
I have successfully loaded the text, wrote script to handle
the resize and have the list displaying the item renderers.
However, on the letters that have more than one word entry, the
list box displays the item renderers oddly. Some will have a gap
between the entries large enough to get another item renderer in.
However, when I click around on different letters, the multiple
entried ones will sometimes load correctly. When I go back to the
ones that did not, they will load correctly. Sometimes requiring
several tries. Any ideas as to what might be causing this? Any
simpler ways to accomplish my task? Thanks. -David"dbStroud" <[email protected]> wrote in
message
news:gq89nb$4fh$[email protected]..
> All- I have been having a bit of a problem solving this.
Perhaps you can
> help?
>
> I have created a window that opens and displays a
dictionary. At the top
> of
> the window is a line of link buttons (A-Z). Below, is a
list component (I
> have
> tried both the list and tile list components). When the
end-user selects
> a
> link button, data from a corresponding xml file loads
into an item
> renderer
> containing two text fields (one for the word, and one
for the definition)
> which
> gets displayed in the list component. Since each letter
will have a
> different
> number of word entries, and each word entry will have
various lengths of
> text,
> I need the the text box containing the definition to
dynamically resize,
> thereby resizing the item renderer. Once this happens, I
need the list to
> distribute the item renderer evenly.
>
> I have successfully loaded the text, wrote script to
handle the resize and
> have the list displaying the item renderers. However, on
the letters that
> have
> more than one word entry, the list box displays the item
renderers oddly.
> Some
> will have a gap between the entries large enough to get
another item
> renderer
> in. However, when I click around on different letters,
the multiple
> entried
> ones will sometimes load correctly. When I go back to
the ones that did
> not,
> they will load correctly. Sometimes requiring several
tries. Any ideas as
> to
> what might be causing this? Any simpler ways to
accomplish my task?
> Thanks.
1) You need to make sure you override measure() to provide an
accurate
height for your renderer
2) you need to set the List's variableRowHeight property to
true.
HTH;
Amy -
Dynamically changing image of personalized item
Hi,
I personalized a StackLayout region in a seeded page and added an image item in it. But I want to programatically change the image.
In the PFR of the controller, I am trying to do the following:
OAImageBean img = (OAImageBean)webBean.findChildRecursive("BarCodeImage");
System.out.println(" Image "+img.getSource());
But I get a NPE error:
oracle.apps.fnd.framework.OAException: java.lang.NullPointerException
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2662)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1665)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
at OA.jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
java.lang.NullPointerException
at oracle.apps.ap.oie.webui.xxfnPPCO.processFormRequest(xxfnPPCO.java:55)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:804)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
at oracle.apps.fnd.framework.webui.beans.OAFlexibleContentBean.processFormRequest(OAFlexibleContentBean.java:372)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
at oracle.apps.fnd.framework.webui.beans.layout.OAFlexibleLayoutBean.processFormRequest(OAFlexibleLayoutBean.java:376)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.nav.OAPageButtonBarBean.processFormRequest(OAPageButtonBarBean.java:370)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1015)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1156)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2658)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1665)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
at OA.jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
java.lang.NullPointerException
at oracle.apps.ap.oie.webui.xxfnPPCO.processFormRequest(xxfnPPCO.java:55)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:804)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
at oracle.apps.fnd.framework.webui.beans.OAFlexibleContentBean.processFormRequest(OAFlexibleContentBean.java:372)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
at oracle.apps.fnd.framework.webui.beans.layout.OAFlexibleLayoutBean.processFormRequest(OAFlexibleLayoutBean.java:376)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.nav.OAPageButtonBarBean.processFormRequest(OAPageButtonBarBean.java:370)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1015)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1156)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1000)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:966)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:821)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2658)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1665)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
at OA.jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
Is it not the correct way of getting a handle of the image bean?
The Personalization structure is :
Page Layout > Flow Layout: Confirmation Page >
Stack Layout: (OIEConfirmPage.ConfirmationPgStackLayout)
BarCodeImage (image item).Hi,
I extended the page level controller in my custom controller, and substituted the page level controller with my custom controller.
But i see that the same event is called twice, the first time I get a handle of all the beans I need, but not the second time.
For example, the controller code is:
public class xxfnPPCO extends oracle.apps.ap.oie.entry.summary.webui.ConfirmationPageCO
public static final String RCS_ID="$Header$";
public static final boolean RCS_ID_RECORDED =
VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
* Layout and page setup logic for a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
System.out.println("xxfnPPCO -> In PR");
* Procedure to handle form submissions for form elements in
* a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
System.out.println("xxfnPPCO -> In PFR");
if (pageContext.getParameter("xxfnPrintablePageButton") != null)
System.out.println("xxfnPrintablePageButton is NOT NULL");
OAApplicationModule am = (OAApplicationModule)pageContext.getApplicationModule(webBean);
System.out.println(" AM -> "+am);
System.out.println(" RepoerHeaderId "+
pageContext.getDecryptedParameter("ReportHeaderId") );
OAFlowLayoutBean flw = (OAFlowLayoutBean)webBean.findChildRecursive("OIEConfirmPage");
System.out.println(" Flw Lay "+flw);
OAStackLayoutBean stk = (OAStackLayoutBean)webBean.findChildRecursive("ConfirmationPgStackLayout");
System.out.println(" Stck Lay "+stk);
OAImageBean img = (OAImageBean)webBean.findIndexedChildRecursive("Image1");
if (img != null)
System.out.println(" Bean Found "+img+" Source = "+img.getSource());
else
System.out.println(" Bean NOT Found");
//System.out.println(" Image "+img);
else
System.out.println("xxfnPrintablePageButton is NULL");
The log messages are:
xxfnPPCO -> In PFR
xxfnPrintablePageButton is NOT NULL
AM -> oracle.apps.ap.oie.server.WebExpensesAMImpl@b173c3
RepoerHeaderId 12725
Flw Lay OAFlowLayoutBean, localName='flowLayout'
Stck Lay OAStackLayoutBean, localName='stackLayout'
Bean FoundOAImageBean, localName='image'
>> In processFormRequest null
xxfnPPCO -> In PFR
xxfnPrintablePageButton is NOT NULL
AM -> oracle.apps.ap.oie.server.WebExpensesAMImpl@e1ed5b
RepoerHeaderId 12725
Flw Lay null
Stck Lay null
Bean NOT Found
Not sure why the PFR is firing for the second time.
Any Idea how to debug this? -
Need help dynamically changing size of custom container in ALV
I am designing a screen using using two custom containers to split the screen into two parts, very similar to how Microsoft Outlook has the detail lines of their Inbox (top container) and then a preview panel for the contents of the highlighted item (bottom container). I would like the user to be able to click on the line dividing the two containers and adjust the screen to show the screen split with whatever proportions they want.
Does anyone know of a method that will help me do this? Has anyone done something similar to this and is willing to share how to accomplish it even if at a high level?
Thanks.Hi,
I reckon that using a splitter container (CL_GUI_SPLITTER_CONTAINER or CL_GUI_EASY_SPLITTER_CONTAINER) or a docking container CL_GUI_DOCKING_CONTAINER will be a easy solution to your requirement.
If you are using the splitter container, then after creating the control, you need to call the method "set_row_sash" as
CALL METHOD <your_splitter_ctrl>->set_row_sash
EXPORTING
id = 1
type = <your_splitter_ctrl>->type_movable
value = <your_splitter_ctrl>->true.
This will enable the user to adjust both the controls.
For examples on the splitter & dokcing containers, refer to package SCET.
Edited by: Sharat Chandra on Jan 23, 2008 4:46 AM -
Best Practice: Dynamically changing Item-Level permissions?
Hi all,
Can you share your opinion on the best practice for Dynamically changing item permissions?
For example, given this scenario:
Item Creator can create an initial item.
After item creator creates, the item becomes read-only for him. Other users can create, but they can only see their own entries (Created by).
At any point in time, other users can be given Read access (or any other access) by an Administrator to a specific item.
The item is then given edit permission to a Reviewer and Approver. Reviewers can only edit, and Approvers can only approve.
After the item has been reviewed, the item becomes read-only to everyone.
I read that there is only a specific number of unique permissions for a List / Library before performance issues start to set in. Given the requirements above, it looks like item-level permission is unavoidable.
Do you have certain ideas how best to go with this?
Thank you!Hi,
According to your post, my understanding is that you wanted to change item level permission.
There is no out of the box way to accomplish this with SharePoint.
You can create a custom permission level using Visual Studio to allow users to add & view items, but not edit permission.
Then create a group with the custom permission level. The users in this group would have the permission of create & add permission, but they could no edit the item.
In the CodePlex, there is a custom workflow activities, but by default it only have four permission level:
Full Control , Design ,Contribute and Read.
You should also customize some permission levels for your scenario.
What’s more, when use the SharePoint 2013 designer, you should only use the 2010 platform to create the workflow using this activities,
https://spdactivities.codeplex.com/wikipage?title=Grant%20Permission%20on%20Item
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Hi i'm working on my final year dissertation and have become
intensely stressed out/frustrated & almost mental in achieving
this particular aim!!!!
what i need to know is how to
dynamically change a flash movies document size in real time,
without squashing or stretching the content,much like the banner
adds frequently seen on hotmail by companies such as orange,lexus
etc.. where the flash movies size expands on interaction
Help on this will be greatly greatly appreciated!!
Thank you.RE: "P.S. I found it aggravating that I couldn't copy and paste text here, it wanted me to insert as a link or an image, how do you insert plain text?"
I take it you tried using the "right click" menu? That doesn't seem to work, as you noted, but, you should be able to paste text by pressing your CTRL key and while holding it down, press the "V" letter key.
CTRL + C = COPY
CTRL + X = CUT
CTRL + V = PASTE
HTH,
Ortho_Fan -
my backup file is too big? how can i change some of the items that are being backed up to decrease size?
In iPhoto, Select All the Photos you want to move... Then goto > File > Export >
Choose the settings as seen here
Click Export and select your External Drive
Best to create a Folder to put them in... and away you go... -
How to dynamically changes items properties
How to dynamically changes items properties likes position order in tabular view, width, prompt
Many object properties can be set programmatically at runtime. For example, each window object has a Visible property that can be set to either Yes or No to show and hide the window. At runtime, you can call the built-in procedure SET_WINDOW_PROPERTY to show or hide the window dynamically, as shown here:
Set_Window_Property('my_window',VISIBLE, PROPERTY_ON);
The following built-in procedures are available for setting object properties at runtime:
- SET_BLOCK_PROPERTY
- SET_CANVAS_PROPERTY
- SET_FORM_PROPERTY
- SET_ITEM_PROPERTY
- SET_LOV_PROPERTY
- SET_MENU_ITEM_PROPERTY
- SET_PARAMETER_ATTR
- SET_RADIO_BUTTON_PROPERTY
- SET_RECORD_PROPERTY
- SET_RELATION_PROPERTY
- SET_VIEW_PROPERTY
- SET_WINDOW_PROPERTY
The built-in procedure SET_ITEM_PROPERTY can be used to set the properties of any type of item, including buttons, text items, check boxes, radio groups, etc.
Note: Radio group items include individual radio buttons; use SET_ITEM_PROPERTY to set the properties of the radio group, and SET_RADIO_BUTTON_PROPERTY to set the properties of the individual buttons in the group.
Each built-in SET procedure has a corresponding GET function that allows you to programmatically determine the current setting of an object's properties. The following example uses GET_WINDOW_PROPERTY to determine if a window is currently hidden (VISIBLE = FALSE). If the window is hidden, SET_WINDOW_PROPERTY is called to show the window.
If Get_Window_Property('my_window',VISIBLE) = 'FALSE' THEN
Set_Window_Property('my_window',VISIBLE,PROPERTY_ON);
To determine if a particular property can be set programmatically, refer to the property descriptions in online Help. -
Dynamically change stage size on runtime
Hi everyone,
I need to change the stage size dynamically.
When i try to do this............
size_mc.onRelease = function(){
trace(Stage.height);
Stage.height += 100;
trace(Stage.height);
it comes always the current stage size.
Thanks in advanceYou cannot change the width and height properties of the Stage using code--it must be done in the editor. The width and height values can represent different things depending on the value you set for the scale mode, but you cannot reassign them to different values dynamically.
The solution just offered to you is under the same rules, the stageWidth and stageHeight values cannot be assigned using code, but that code is AS3 code so it will not fit in your AS2 design in any case.
The same goes for the followup offered in AS2. You will notice the stage size is not being changed... it cannot be. This is just a full screen design solution, but is not a soltuion to changing the stage size. The stage size can only be changed manually in the authoring environment. I don't know that the offering is answering what you are really trying to do, but it is not answering the titled task of dynamically changing the stage size -
Dynamically changing windows size
Hi Folks,
Is it possible to dynamically change the dimensions of windows i.e. Main and Secondary windows.Hi,
See the fallowing link
Smart forms - Dynamic sizing of the windows.
Regards,
Vijay. -
Messages Buddies window keeps changing size
The buddies list in Messages keeps growing longer and longer for me. Is there a way to make it stay the size that I want it to be?
Hi,
It is a bit odd that you have that many Buddies that have gone Idle rather than showing any that are Away.
However it does not seem you have that many Buddies in total that would make a difference.
I notice that in the View Menu > Show Buddy Pictures is Off.
This as you will have found out does allow more Buddies in the space you have allowed. (each line is only as big as the Video and Audio Only icons)
If you make the Buddy List smaller than what you have shown (i.e. hide the Off Line group title bar and a few of the Buddies) does the Scroll bar appear ?
I don't Display the Off Line Buddies and also don't use the Off Line Group from them either. I am wondering if your setting are what makes the Buddy List dynamic in size.
My test.
I tried setting my Buddy lists with no pics.
I also set the Off Line Buddies and as a Group and "turned" the reveal triangle so they were hidden like yours.
I they set a couple of other AIM Buddy Lists to Off line.
Then I resized the buddy List to not shoe the Off Line Groups Title bar and also a few buddies up from that.
I then set the Off Line accounts to Available and logged them in.
In my Buddy list more Buddies dropped out of sight and the List did not resize.
Can you open a Finder window ?
Then go to the View Menu and chose Show Path Bar.
This will add some info across the bottom of the Window.
Can you also Select View Menu > Show View Options and Select the Modified option in the Show Column choices.
Now in the Finder > Go Menu hold down the ALT key and select the Library item that appears.
Navigate to the Preferences
Find the com.apple.ichat.plist one.
Alter the size of the Buddy List Or chose to Show Pictures and see if the Modified Date Changes (it should show the Time fro today's change).
The setting you are changing (window Size and what the window contains) are written to this .plist - or they ar if you Own like you should do and have Write Permissions (as well as Read ones) if the file settings are correct.
If you have lost Ownership of this File and changes will not be written to it.
It may be the Permissions have changed and you have lost the right to Write to it.
To find out, do a Get Info (CMD + i keys together) when the file is highlighted.
At the bottom of the Info panel is the Ownership and Permission Details.
Your shortname should appear in the list with Read and Write Permissions.
If you highlight this line and then use the Cogwheel icon at the bottom it should list "Make yourshortname (Me) the Owner" but it should be greyed out as it is already done.
8:54 pm Monday; December 9, 2013
iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
Couple of iPhones and an iPad -
Expected behaviour?: input controls change size with iterator in findMode
Hi all
I'm trying to work out if the following is expected behaviour with the JDev 11g ADF Faces RC input components or a bug, before lodging a support request.
I've noticed that fields resize themselves based on the parent bound iterator being in find mode (as separate to the default execute (show) mode). This causes all sorts of havoc with page layout when switching between the 2 modes.
To demonstrate the code I have a simple inputText control with a hardcoded column size, and a Find commandButton:
<af:inputText value="#{bindings.Status.inputValue}"
label="#{bindings.Status.hints.label}" columns="20"
maximumLength="#{bindings.Status.hints.precision}" shortDesc="#{bindings.Status.hints.tooltip}"
disabled="true">
<f:validator binding="#{bindings.Status.validator}"/>
</af:inputText>
<af:commandButton actionListener="#{bindings.Find.execute}" text="Find" disabled="#{!bindings.Find.enabled}"/>There's nothing unusual about the bindings for these components:
<?xml version="1.0" encoding="UTF-8" ?>
<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel" version="11.1.1.51.88" id="untitled1PageDef"
Package="view.pageDefs">
<parameters/>
<executables>
<iterator Binds="TableView1" RangeSize="25" DataControl="AppModuleDataControl"
id="TableView1Iterator"/>
</executables>
<bindings>
<attributeValues IterBinding="TableView1Iterator" id="Status">
<AttrNames>
<Item Value="Status"/>
</AttrNames>
</attributeValues>
<action IterBinding="TableView1Iterator" id="Find" RequiresUpdateModel="true" Action="iteratorFind"/>
...and so on...Before I press the Find button (ie. Execute/show mode), the inputText renders 20 columns in width as expected, but in Find mode the field changes size.
Is this expected behaviour or a bug? Alternatively can we influence the field's size in find mode (as the column attribute seems to be ignored), as I'd like to make it the same as the execute/result mode, so my page doesn't resize.
Cheers,
CM.Hi Frank
I've recorded this following ScreenToaster session to show you the behaviour under Firefox. It's a standard search form dragged straight from the data control window. I haven't modified the columns attr at all, each component column is bound #{bindings.<fieldname>.hints.displayWidth}.
Note when the Find button is pressed the fields change size to set defined width, then after the Execute button is pressed they go back to their dynamic sizes (presumably coming from the binding):
http://www.screentoaster.com/watch/stWUtSQUVLRl1XRlpVXVta
Let me know if you can't access the ScreenToaster video, it's my first try in publlishing a video via it.
Cheers,
CM. -
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 Changing Labels for Multi Row Block Buttons
Forms [32 Bit] Version 9.0.4.1.0 (Production)
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
On my local: Windows 7 OS
I am having a difficult time in doing the following in forms, and not sure if it can be done?
I have a multi row block,based on DB table, which displays filename and another column from the table.
It also has a push button on each row, which opens and displays the physical file from its source, when clicked. The filename thus can have 3 diff statuses depending on its sources and accordingly corresponding button should display appropriate label:
a) View Image (its is in content server and successfully imaged. In this case I display the file in the browser, from the content server, when the button is clicked)
b) View File (Display the file from file system)
c) View Error (Display imaging error message from the table, as file failed to make it to the imaging server)
I have this logic currently coded in the post query trigger, at the block level, and tried using set_item_property(button_id, label, <button_lable>), where I programmatically set the button lable, based on the file status (imaged, not imaged or has error) in that row. This wroks well, only if all the files in the multi row block have the same status. If each of them have diff statuses, then only last processed files's status gets reflected into the button label. For eg: The file in the first row of the block is imaged, and one in the second row has an imaging error. The button label for the first row should say 'View Image' and button for the second row should say 'View Error'. But now buttons for both the rows display 'View Error', as thats what got processed last!
I __can not use set_item_instance property for 'label'__ (which lets us dynamically change the label on the push buttons).
Is there any way to do this for ORacle forms? I am now playing with having 3 diff button items in that block, laying them on top of each other and showing only those that are appropriate and hiding the others... But I am not sure it is going to give me what I need? I think I am going to end up facing the same issues as in above case!!
Any expert advice is highly appreciated.
Thanks in advance for your time:
Libran_Girl
Edited by: libran on Aug 30, 2011 8:04 AM
Edited by: libran on Aug 30, 2011 8:05 AM<p>I have just updated this existing PJC, that was originally constructed to handle Text Fields. You can, now, also handle buttons with it.
Set the Button's Implementation Class property to : oracle.forms.fd.MultiButton.
</p>
This is the code you have to put one triggers of your based block:
When-New-Record-Instance trigger: (based on the EMP table)
declare
LN$Pos pls_integer ;
LN$Rec pls_integer := Get_Block_Property('EMP', CURRENT_RECORD) ;
LN$Max pls_integer := Get_Block_Property('EMP', RECORDS_DISPLAYED) ;
LC$C Varchar2(15) ;
Begin
LN$Pos := LN$Rec - (trunc(LN$Rec/LN$Max) * LN$Max) ;
If LN$Pos = 0 Then LN$Pos := LN$Max ; End if ;
If LN$Pos > 0 Then
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LOG', 'true' );
-- Add the new item --
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_NEW_REC', to_char(LN$Rec) );
-- Set some properties --
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LABEL', to_char(LN$Rec) || ',' || :EMP.ENAME );
If :EMP.JOB = 'MANAGER' Then
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FONT', to_char(LN$Rec) || ',Arial,bold,14' );
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FGCOLOR', to_char(LN$Rec) || ',0,0,255' );
End if ;
If :GLOBAL.I > 250 Then :GLOBAL.I := 5 ;
Else :GLOBAL.I := :GLOBAL.I + 5 ;
End if ;
LC$C := To_Char(LN$Rec) || ','
|| To_Char(255) || ','
|| To_Char(255-:GLOBAL.I) || ','
|| To_Char(255-:GLOBAL.I) ;
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_BGCOLOR', LC$C );
Synchronize;
End if ;
end;When-Create-Record trigger:
declare
LN$N pls_integer ;
LN$Rec pls_integer := :system.cursor_record ;
LC$C Varchar2(15) ;
Begin
if get_block_property('EMP',TOP_RECORD) > 1 Then
LN$n := :system.cursor_record - get_block_property('EMP',TOP_RECORD) + 1 ;
else
LN$N := :system.cursor_record ;
end if;
If LN$N > 0 Then
Set_Custom_Property('EMP.BT', LN$n, 'SET_LOG', 'true' );
-- Add the new item --
Set_Custom_Property('EMP.BT', LN$n, 'SET_NEW_REC', to_char(LN$Rec) );
End if ;
end;Post-Query trigger:
declare
LN$Pos pls_integer ;
LN$Rec pls_integer := Get_Block_Property('EMP', CURRENT_RECORD) ;
LN$Max pls_integer := Get_Block_Property('EMP', RECORDS_DISPLAYED) ;
LC$C Varchar2(15) ;
Begin
LN$Pos := LN$Rec - (trunc(LN$Rec/LN$Max) * LN$Max) ;
If LN$Pos = 0 Then LN$Pos := LN$Max ; End if ;
If LN$Pos > 0 Then
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LOG', 'true' );
-- Add the new item --
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_NEW_REC', to_char(LN$Rec) );
-- Set some properties --
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LABEL', to_char(LN$Rec) || ',' || :EMP.ENAME );
If :EMP.JOB = 'MANAGER' Then
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FONT', to_char(LN$Rec) || ',Arial,bold,14' );
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FGCOLOR', to_char(LN$Rec) || ',0,0,255' );
End if ;
If :GLOBAL.I > 250 Then :GLOBAL.I := 5 ;
Else :GLOBAL.I := :GLOBAL.I + 5 ;
End if ;
LC$C := To_Char(LN$Rec) || ','
|| To_Char(255) || ','
|| To_Char(255-:GLOBAL.I) || ','
|| To_Char(255-:GLOBAL.I) ;
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_BGCOLOR', LC$C );
Synchronize;
End if ;
end;Don't forget to copy the multirecord.jar file in your /forms/java folder, then add it to the archive and archive_jini tags of your /forms/server/formsweb.cfg file.
Enjoy it,
Francois
Maybe you are looking for
-
Cannot not close open apps with double clicking the button Since downloading iOS8.
-
I'm having problems connecting the iBook G4 to a projector at school, on my old iBook it connected with ease but this one doesn't seem to work, i've tried clicking on detect displays and gather windows and nothing happens, my computer recognizes the
-
Cisco WLC 2504 webportal for Server 2008 R2 DC LDAP or RADIUS
HI,Friends. I want to get my mobile or Notebook clients connecting to wireless and use my Domain users ,Cisco WLC 2504 to authenticate via LDAP or RADIUS to our Windows Server 2008 Domain Controllers question: one,i can use my domain one Organizatio
-
Problem with Analytical function
hi, I have two tables and my expected result is given below.. I used the LEAD function to get (start_Date and new_Date) which i have shown in my expected result..my problem is with rel_type and org_id. I am not able to get those values to its corresp
-
Call function module in new task
I need to call a function module starting new task but the problem is that it has inporting parameters also. Please help me in doing this. Points will be rewarded.