Add Partition during runtime
How do you add a partition to a table during runtime
The table should grow with every month and as part of an automated process (add partition for new months data )
one should not need to change the table design on a monthly basis ( upgrade on deploy )
Would this be done with a pre mapping process with dynamic pl/sql ?
Hi,
Otherway of doing is, design staging table kind of thing similiar to your target table, load incremental data ( ie monthly data ) into that...then exchange that data with the target table partition in post mapping process...this way, your design repo metadata is unchanged.......
you may have to think about the index rebuilding .....etc.... and this is theoretical idea suggested in Oracle docs....may be u shd try and let us know.....
rgds
Mahesh
Similar Messages
-
Add Component during runtime in swing
I want to create applet which add any component at runtime.
I have done this but there is one bug.
When i add the components, they are not display in applet window.
But as soon as i change the size of the or minimize or maximize the applet window
it will display the components.
Reply as soon as possible.
ThanksALWAYS execute the following if you add or remove components from an already visible container:
container.revalidate();
container.repaint(); -
Is it possible to add/change a ViewContainerUIElement during runtime?
Hi all,
i want to add/change the content of a ViewContainerUIElement (VCUI) during runtime, but it doesn't work as expected (or hoped;). What i got working so far for an <b>already exising</b> VCUI is:
1. Find the IWDViewContainerInfo for the VCUI
2. If no default view usage exists, create an embedded view usage and set is as default.
3. Set the component usage to the IWDComponentUsageInfo requested.
4. Set the view to the IWDViewUsageInfo of the interface view, which should be the content of the VCUI.
This doesn't work, if it's done after the wdDoInit()s of the controller hierarchy has been processed. The component, which is represented by the usage, is deleted and recreated, but the visual representation doesn't get updated (e.g. no changes on the display) if it's done in an action handler for example. Why? If i change the component usage (cloned component usage) nothing happens too.
Even more problems arise, if i try to add a new VCUI. The steps are pretty the same as before, what is done additionally (and prior the steps above) is:
1. Creating a IWDViewContainerInfo from the IWDViewInfo of the "parent" view.
2. Creating a IWDViewContainerAssignmentInfo from the view usage of the "parent" view
3. Setting the created IWDViewContainerInfo as view container in the assignment.
4. Create the VCUI, set the view container name to the name of the created IWDViewContainerInfo and add the VCUI to an arbitrary container in the parent view.
But this doesn't work, i'm getting:
java.lang.NullPointerException
at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.ViewContainerUIElementAdapter.getContent(ViewContainerUIElementAdapter.java:98)
What is wrong? What am i missing?
Thanks in advance.
StefanHi,
I had the same problem with
"java.lang.NullPointerException at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.ViewContainerUIElementAdapter.getContent(ViewContainerUIElementAdapter.java:98)"
when I included ViewUsages dynamically in an action handler (outside wdDoInit()).
The code below fixed that problem.
This code creates a new OutboundPlug for the embedding view with the embedded view as target and fires the plug.
<i>// Create OutboundPlug
IWDOutboundPlugInfo outboundPlug = embedderViewInfo.createOutboundPlug();
//Create navigation link
rootViewUsage.createNavigationTarget(outboundPlug.getName(), interfaceViewUsage, "Default");
// fire navigation link
wdThis.wdGetAPI().firePlug(outboundPlug, Collections.EMPTY_MAP);
</i>
I hope I could help you. Probably you don't need the information anymore, but perhaps anybody else has the same problem.
Regards, Alex -
A question about how to change a button in a JPanel during runtime
I am a beginner of GUI. Now I am trying to change a specific component, a button, when the application is running. For example, I have 3 buttons in a JPanel. Each button has its onw icon. If I click one of them, it will change its icon, but the other two don't change. I don't know if there is any method for changing a specific component during runtime. If any one knows please let me know, I will appreciate that very much!!!
What you're going to have to do is loop inside the actionlistener but still have accessability to click while its looping. I don't know much about it, but I think you're going to need a thread. Try something like this... (it doesn't work yet, but I have to take off)
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
class buttonxdemo extends JFrame implements ActionListener{
Buttonx mybutton;
//set it all up, make it look pretty =]
public buttonxdemo()
mybutton = new Buttonx("default");
getContentPane().add(mybutton.thebutton);
mybutton.thebutton.addActionListener(this);
this.setDefaultCloseOperation(3);
this.setSize(200,200);
public void actionPerformed(ActionEvent ae){
if (ae.getSource() == mybutton.thebutton)
if (mybutton.keepGoing)
mybutton.keepGoing = false;
else if (!mybutton.keepGoing)
mybutton.keepGoing = true;
mybutton = new Buttonx(/*Icon,*/"My Button");
//getContentPane().remove(mybutton);
//getContentPane().add(mybutton.thebutton);
mybutton.startstop();
}//actionperformed
static void main(String args[])
new buttonxdemo().show();
} //movingicondemo
class Buttonx extends Thread{
public boolean keepGoing;
//public Icon ICx; //perhaps an array, so you can loop through?
public String strbuttonx;
public JButton thebutton; //may have to extend JFrame?
public Buttonx(/*Icon IC,*/ String strbutton){
//ICx = IC;
strbuttonx = strbutton;
thebutton = new JButton(strbuttonx);
public void startstop()
int i = 0;
while (keepGoing)
thebutton.setLabel(strbuttonx.substring(0,i));
//if an array of Icons ICx
//thebutton.setIcon(ICx);
i++;
if (i > strbuttonx.length() - 1)
i = 0;
try
Thread.sleep(1000);
catch (InterruptedException ie)
System.out.println("sleep caught: " + ie);
}//startstop()
}//buttonx
kev -
Can I create a dynamic number of inputs during runtime?
Can I create a dynamic number of inputs during runtime?
Oracle 11g
Application Express 4.0.2.00.06
Here is my problem:
We have a table that holds metadata about files (hardcopy or softcopy files).
We expect we may need more columns in the table at some point and don't want to modify the table or the application.
So in order to do this I would like to create:
A table called TBL_FILE with the columns:
TBL_FILE_ID NUMBER (This will be the primary key)
TBL_FILE_NAME VARCHAR2(1000) (This will be the name of the file)
A second table will be called TBL_FILE_META with the columns:
TBL_META_ID NUMBER (This will be the primary key)
TBL_FILE_ID NUMBER (This will be the forign key to the file table)
TBL_META_COLUMN VARCHAR2(30) (This is what the column name would be if it existed in TBL_FILE)
TBL_META_VALUE VARCHAR2(1000) (This is the value that record and the 'would be' column)
So a person can have as much meta data on the file with out having to add columns to the table.
The problem is how can I allow users to add as much data as they like with out having to re develop the page.
Other things to note is that we would like this to be on a single page.
I know how to add we can create multi-row inserts by using a SQL Query (updateable report),
however the TBL_META_VALUE column in the TBL_FILE_META will sometimes be a select list and other times a text box or number field.
So I don't see now a SQL Query (updateable report) would work for this and I can't create an array of page items at run time can I?
Any idea's how I could accomplish this? Is there a better way of doing this?
Also is there a term or a name for what I am doing by creating these 'virtual' columns in another table?
I found this method when looking at Oracles Workflow tables.Welcome to the Oracle Forums !
>
Can I create a dynamic number of inputs during runtime?
Oracle 11g
Application Express 4.0.2.00.06
Here is my problem:
We have a table that holds metadata about files (hardcopy or softcopy files).
We expect we may need more columns in the table at some point and don't want to modify the table or the application.
So in order to do this I would like to create:
A table called TBL_FILE with the columns:
TBL_FILE_ID NUMBER (This will be the primary key)
TBL_FILE_NAME VARCHAR2(1000) (This will be the name of the file)
A second table will be called TBL_FILE_META with the columns:
TBL_META_ID NUMBER (This will be the primary key)
TBL_FILE_ID NUMBER (This will be the forign key to the file table)
TBL_META_COLUMN VARCHAR2(30) (This is what the column name would be if it existed in TBL_FILE)
TBL_META_VALUE VARCHAR2(1000) (This is the value that record and the 'would be' column)
So a person can have as much meta data on the file with out having to add columns to the table.
The problem is how can I allow users to add as much data as they like with out having to re develop the page.
>
Creating Page Items dynamically is not available. You will have to create excess items and hide/show , etc. But you cannot change the Item Type. All in all, too many limitations in this approach.
>
Other things to note is that we would like this to be on a single page.
>
The 100 item limit will hit you if you go with extra item on page. With Tabular Form that should not be a limitation, unless you are exceeding the 50 item limit of APEX_APPLICATION.G_Fnn items, and the 60 column limitation of Report region with "Use Generic Column Names (parse query at runtime only)" of Dynamic region.
>
I know how to add we can create multi-row inserts by using a SQL Query (updateable report),
however the TBL_META_VALUE column in the TBL_FILE_META will sometimes be a select list and other times a text box or number field.
>
If the type if item is variable it only means you need a way to store the item type. Meta Data of the Meta Data.
>
So I don't see now a SQL Query (updateable report) would work for this and I can't create an array of page items at run time can I?
>
Yes, you can do it. Updatable report/ Tabular Form query can be constructed from the Meta Data using PL/SQL Function Returning SQL Query . It will be a bit of coding in PL/SQL where you use the Meta Data and the Meta Data of the Meta Data to piece together your SELECT with the right APEX_ITEMs. It might have a performance penalty associated with it, but will not be a serious degradation.
>
Any idea's how I could accomplish this? Is there a better way of doing this?
Also is there a term or a name for what I am doing by creating these 'virtual' columns in another table?
I found this method when looking at Oracles Workflow tables.
>
I guess that is just a good TNF. It is the Master-Detail Design Pattern, that sound more modern ? ;)
Regards, -
Object Referenced Error When calling the Windows Form during Runtime
Hi,
I am getting Object reference errors when running windows form during runtime. In debugging mode in MS Visual studio 2005, I am not getting this error. I'm calling the window form from menu and called the window in a thread as suggested in one of forums . I don't see anyone in the forum mentioned this problem I have. Any help would be deeply appreciated. Below are the error and code samples.
ERROR Message
Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Project1.Loadxml.Loadxml_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Edited by: Albert Tio on Feb 16, 2011 9:55 AMHere is the code.
Option Strict Off
Option Explicit On
Friend Class GetEvents
Public WithEvents SBO_Application As SAPbouiCOM.Application
Public SboGuiApi As SAPbouiCOM.SboGuiApi
Public oForm As SAPbouiCOM.Form
Public oDBDataSource As SAPbouiCOM.DBDataSource
Public oCompany As SAPbobsCOM.Company
Public RS As SAPbobsCOM.Recordset
Public oPrev_Bank As String, oPrev_AcctType As String
Public oLoadXml As Loadxml
Public Sub SetApplication()
'Dim SboGuiApi As SAPbouiCOM.SboGuiApi
Dim sConnectionString As String
SboGuiApi = New SAPbouiCOM.SboGuiApi
' by following the steps specified above, the following
' statment should be suficient for either development or run mode
sConnectionString = Environment.GetCommandLineArgs.GetValue(1)
' connect to a running SBO Application
SboGuiApi.Connect(sConnectionString)
' get an initialized application object
SBO_Application = SboGuiApi.GetApplication()
End Sub
Public Sub SetCompany()
Dim ret As Long
Dim MsgStr As String
Dim Cookie As String
Dim ConnStr As String
Try
oCompany = New SAPbobsCOM.Company
Cookie = oCompany.GetContextCookie
ConnStr = SBO_Application.Company.GetConnectionContext(Cookie)
'//before setting the SBO login context make sure the company is not connected
If oCompany.Connected = True Then
oCompany.Disconnect()
End If
ret = oCompany.SetSboLoginContext(ConnStr)
If Not ret = 0 Then
Exit Sub
End If
ret = oCompany.Connect
Catch ex As Exception
SBO_Application.MessageBox(ex.Message)
End Try
MsgStr = ""
If Not ret = 0 Then
oCompany.GetLastError(ret, MsgStr)
SBO_Application.MessageBox(MsgStr)
Else
End If
End Sub
Public Sub New()
MyBase.New()
' set SBO_Application with an initialized application object
SetApplication()
SetCompany()
AddMenuItems()
End Sub
Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
Dim myThread As New System.Threading.Thread(New System.Threading.ThreadStart(AddressOf LoadXmlMainThread))
Try
If (pVal.MenuUID = "MySubMenu") And (pVal.BeforeAction = False) Then
'SBO_Application.MessageBox("My sub menu item was clicked")
'// Create a form to be launched in response to a click on the
'// new sub menu item
myThread.SetApartmentState(System.Threading.ApartmentState.STA)
myThread.Start()
'Loadxml.ShowDialog()
End If
Catch ex As Exception
SBO_Application.MessageBox("1." & ex.Message)
End Try
'If (pVal.MenuUID = "MyGoToMenu") And (pVal.BeforeAction = False) Then
' SBO_Application.MessageBox("My GoTo Menu was clicked")
'End If
'If (pVal.MenuUID = "MySecondGoToMenu") And (pVal.BeforeAction = False) Then
' SBO_Application.MessageBox("My Second GoTo Menu was clicked")
'End If
End Sub
Private Sub LoadXmlMainThread()
'Dim lLoadxml As New Loadxml
Try
oLoadXml = New Loadxml
oLoadXml.WindowState = FormWindowState.Maximized
oLoadXml.ShowInTaskbar = True
oLoadXml.TopMost = True
oLoadXml.Activate()
Application.Run(oLoadXml)
Catch ex As Exception
SBO_Application.MessageBox("2." & ex.Message)
End Try
End Sub
Private Sub AddMenuItems()
'// Let's add a separator, a pop-up menu item and a string menu item
Dim oMenus As SAPbouiCOM.Menus
Dim oMenuItem As SAPbouiCOM.MenuItem
Dim i As Integer '// to be used as counter
Dim lAddAfter As Integer
Dim sXML As String
'// Get the menus collection from the application
oMenus = SBO_Application.Menus
'Save an XML file containing the menus...
'sXML = SBO_Application.Menus.GetAsXML
'Dim xmlD As System.Xml.XmlDocument
'xmlD = New System.Xml.XmlDocument
'xmlD.LoadXml(sXML)
'xmlD.Save("c:
mnu.xml")
Dim oCreationPackage As SAPbouiCOM.MenuCreationParams
oCreationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
oMenuItem = SBO_Application.Menus.Item("43520") 'moudles'
Dim sPath As String
sPath = Application.StartupPath
'sPath = sPath.Remove(sPath.Length - 3, 3)
If sPath.EndsWith("\") = False Then
sPath = sPath & "\"
End If
'// find the place in wich you want to add your menu item
'// in this example I chose to add my menu item under
'// SAP Business One.
oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_POPUP
oCreationPackage.UniqueID = "MyMenu01"
oCreationPackage.String = "Unbridle Menu"
oCreationPackage.Enabled = True
oCreationPackage.Image = sPath & "unbridle.bmp"
oCreationPackage.Position = 15
oMenus = oMenuItem.SubMenus
Try ' If the manu already exists this code will fail
oMenus.AddEx(oCreationPackage)
'// Get the menu collection of the newly added pop-up item
oMenuItem = SBO_Application.Menus.Item("MyMenu01")
oMenus = oMenuItem.SubMenus
'// Create s sub menu
oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
oCreationPackage.UniqueID = "MySubMenu"
oCreationPackage.String = "Unbridle Monitoring"
oMenus.AddEx(oCreationPackage)
Catch er As Exception ' Menu already exists
'SBO_Application.MessageBox("Menu Already Exists")
End Try
End Sub
End Class
Public Class Loadxml
'Inherits System.Windows.Forms.Form
Public sBPpath As String
Public sGLpath As String
Public sBillpath As String
Public bRun As Boolean
Private Sub Loadxml_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.TextGL.Text = System.Configuration.ConfigurationSettings.AppSettings("GLAcctDownloadPath").ToString()
Me.TextBP.Text = System.Configuration.ConfigurationSettings.AppSettings("BPAcctUPloadPath").ToString()
Me.TextBill.Text = System.Configuration.ConfigurationSettings.AppSettings("BillUPloadPath").ToString()
Me.NotifyIcon1.Visible = False
End Sub
End Class -
Change XSD / XML dataset during runtime and display texts in field explorer
Hi there,
I am changing the datasource of a report during runtime. Afterwards, I would like to change the texts of the fields appearing in the field explorer.
I tried:
CrystalDecisions.ReportAppServer.DataDefModel.XMLDataSetClass xmlDS =
new CrystalDecisions.ReportAppServer.DataDefModel.XMLDataSetClass();
byte[] xmlContent = reportContent.getXmlContent();
byte[] xsdContent = reportContent.getXsdContent();
CrystalDecisions.ReportAppServer.CommonObjectModel.ByteArray xmlData =
new CrystalDecisions.ReportAppServer.CommonObjectModel.ByteArray();
CrystalDecisions.ReportAppServer.CommonObjectModel.ByteArray xsdData =
new CrystalDecisions.ReportAppServer.CommonObjectModel.ByteArray();
xmlData.ByteArray = xmlContent;
xmlDS.XMLData = xmlData;
xsdData.ByteArray = xsdContent;
xmlDS.XMLSchema = xsdData;
rasDoc.DatabaseController.SetDataSource(xmlDS, "", "");
rasDoc.Database.Tables[0].Description = "POMMES";
for (int i = 0; i < rasDoc.DatabaseController.Database.Tables[0].DataFields.Count; i++)
rasDoc.Database.Tables[0].DataFields.Name = "TEST";
MessageBox.Show(rasDoc.Database.Tables[0].DataFields.Name);
rasDoc.Database.Tables[0].DataFields.HeadingText = "HOORAY";
rasDoc.Database.Tables[0].DataFields.Description = "NOPE";
MessageBox.Show(rasDoc.Database.Tables[0].DataFields.Description);
MessageBox.Show(rasDoc.Database.Tables[0].DataFields.HeadingText);
When running this, the message boxes include the right strings I set before but when this is done, the filed explorer still shows no changes. What am I doing wrong?
Also, I would like to change the field texts that are displayed in the field explorer. How can this be done?
Thanks,
PascalAlso, I do not understand why I am not able to change the display of the fields in the filed explorer.
This coding does not change a bit, but why??
//preparation
string tableName = reportDataSet.Tables[0].TableName;
// Get the table definition exactly like the definition of my own dataset.
CrystalDecisions.ReportAppServer.DataDefModel.Table table = GetTable(tableName);
table.ConnectionInfo = connectionInfo;
//delete all existing tables if there are any
foreach (CrystalDecisions.ReportAppServer.DataDefModel.Table oldTable in rasDoc.DatabaseController.Database.Tables)
rasDoc.DatabaseController.RemoveTable(oldTable.Name);
//add my new table with the IDs of the XSD
rasDoc.DatabaseController.AddTable(table, null);
//now I want to change the displayed fields texts
CrystalDecisions.ReportAppServer.DataDefModel.Tables modifyTables =
rasDoc.DatabaseController.Database.Tables;
CrystalDecisions.ReportAppServer.DataDefModel.Table myTable =
(CrystalDecisions.ReportAppServer.DataDefModel.Table)modifyTables[0];
Fields fields = myTable.DataFields;
for (int i = 0; i < fields.Count; i++)
ISCRField field = fields<i>;
ResultFieldController resultFieldController =
rasDoc.DataDefController.ResultFieldController;
try
resultFieldController.Remove(field);
string sText = "";
sText = "Bäschreibung" + i.ToString();
field.Description = new string(sText.ToCharArray());
sText = "Häding" + i.ToString();
field.HeadingText = new string(sText.ToCharArray());
//sText = "Näme" + i.ToString();
//field.Name = new string(sText.ToCharArray());
resultFieldController.Add(-1, field);
catch (Exception exp)
MessageBox.Show(exp.Message);
I am completely stuck.
Thanks for any help.
Pascal
Edited by: Pascal Schmidt-Volkmar on Sep 30, 2008 9:31 AM -
How to create Confirmation Item QUANTITY during Runtime
Hi Experts,
I am trying to create Confirmation ITEM with QUANTITY during runtime.
I have successfully created item using CRM_ORDERADM_I_MAINTAIN_OW however it doesnot have scheduling_i structure which hold QUANTITY. I tried with CRM_ORDER_MAINTAIN_MULTI_OW. getting following error, I tried with CRM_SCHEDLIN_I_READ_OW it creating quantity on CRM Confirmation screen.
Can you pls tell me how to get quantity.
Thanks
Anee
The current application program detected a situation which really
should not occur. Therefore, a termination with a short dump was
triggered on purpose by the key word MESSAGE (type X)
ls_fund_h TYPE crmt_fund_h_com,
ls_cla_h TYPE crmt_cla_h_com,
ls_lawref_h TYPE crmt_lawref_h_com,
lt_lawref_h TYPE crmt_lawref_h_comt,
ls_orderadm_i TYPE crmt_orderadm_i_com,
lt_orderadm_h TYPE crmt_orderadm_h_comt,
lt_chngproc_i TYPE crmt_chngproc_i_comt,
ls_chngproc_i TYPE crmt_chngproc_i_com.
DATA:
ls_entry TYPE crmt_guid_handle,
lv_dummy TYPE crmt_msgtext,
lv_vona_kind_copy TYPE crmt_boolean,
lv_count TYPE i,
ls_msg_handle TYPE balmsghndl,
ls_exception TYPE crmt_exception_logical_ke
lv_subrc TYPE sy-subrc.
FIELD-SYMBOLS:
<ls_order_item> TYPE crmt_order_items.
* check correct call
ADD 1 TO gv_recursive_call.
ADD 1 TO gv_maintain_active.
CALL FUNCTION 'CRM_ORDER_CHECK_RECURSIVE_OW'
EXCEPTIONS
recursive_call = 1
call_without_order_maintain = 2
OTHERS = 0.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
EXIT.
ENDIF.Did you solve the problem?
-
Post Author: BusinessObject
CA Forum: .NET
Hi,
Wondering is there way to add external image that is stored somewhere in hard disk DURING RUNTIME!
ThanksPost Author: LisaConsult
CA Forum: .NET
I have an OLE object which is an image. I set it during development as a linked object. During runtime, I change the reference to the object to a file currently on the user's workstation. Everything works fine. However, upon load, is it looking for the location set up at development first/by default? I connect remotely to the client's environment and the client tells me that the reports run faster when I'm connected to their network. I'm wondering if it's because of the linked image file? When I look in the raw rpt file via notepad, I can see a reference to my computer in the rpt file. Thanks -
Extending enums during runtime
Hey folks,
i have a question concerning enums. Is it possible to extend enums during runtime? For example i have following enum:
public enum MyValues
VALUE1, VALUE2, VALUE3
}is it possible that i have a method for example which adds VALUE4 and VALUE5 to this enum???
Thanks alot.
OhnoNo, it wouldn't make sense.
The point of enums is that the possible values are known at compile time so that you can, for example, use them as switch cases.
If extra values are being added at run time you probably want some kind of Map. -
Embed fonts in dynamic TLF textfied which is created during runtime!!
Hi Experts,
I have two TLF textfileds in my application. The first TLF textfield is on the stage and the second one is created dynamically during runtime. Now I am able to embed the fonts in the first TLF textfield by using "use device fonts" since it is on stage. The flash player the rendering the data absolutely fine. I want to get the same look and feel for the second TLF textfield which is created dynamically during runtime. I tried so many ways. But it still seems ugly. Please help me out.
Here is the code I am trying.
var fmt:TextFormat = new TextFormat(); //Text Format
fmt.color = 0x000000;
fmt.font = "Verdana";
fmt.size = 14;
fmt.align="left";
fmt.bold = true;
txt.defaultTextFormat = fmt; //txt is a textfield which is on stage
txt.text = e.target.xml..textField_stage;//textField_stage is a node in the xml
txt.wordWrap = true;
var tlf:TLFTextField=new TLFTextField();
tlf.x = 80;
tlf.y= 80;
tlf.width = 290;
tlf.height = 200;
tlf.selectable=false;
tlf.mouseEnabled=false;
tlf.mouseChildren=false;
tlf.wordWrap = true;
addChild(tlf);
tlf.defaultTextFormat = fmt;
tlf.text = e.target.xml..textField_runtime; //textField_runtime is a node in the xml
Thanks for your help,
srinivasto embed fonts dynamically, you need to add a font your library (click the library panel's upper right, click new font, select your font, select your characters, tick export for actionscript and assign a class name - eg, VerdanaClass).
you would then use:
var fmt:TextFormat = new TextFormat(); //Text Format
var verdana:Font=new VerdanaClass();
fmt.color = 0x000000;
fmt.font = verdana.fontName;
fmt.size = 14;
fmt.align="left";
fmt.bold = true;
txt.defaultTextFormat = fmt; //txt is a textfield which is on stage
txt.text = e.target.xml..textField_stage;//textField_stage is a node in the xml
txt.wordWrap = true;
var tlf:TLFTextField=new TLFTextField();
tlf.embedFonts=true;
tlf.x = 80;
tlf.y= 80;
tlf.width = 290;
tlf.height = 200;
tlf.selectable=false;
tlf.mouseEnabled=false;
tlf.mouseChildren=false;
tlf.wordWrap = true;
addChild(tlf);
tlf.defaultTextFormat = fmt;
tlf.text = e.target.xml..textField_runtime; //textField_runtime is a node in the xml -
To change view property during runtime
Hi,
I have a scenario where we have 2 views embedded in a window.
First View's property is set to True and second View's property is set to false.
We have a button say "show view" in first view and now we want to change the second view's property to True on click of that button i.e we want to change the view proerties to True during runtime.
We are unabelt o achieve this thruogh plugs are first view is in another DC and second view is in other DC.
Is there any other way to through which we can achieve this?
Any help is this regard is highly appreciated.
Regards,
Richa SinhaHi,
I got your requirement,
Yes if you want navigate back to source view, the problem is you cannot add the the Comp2 again in Comp1 as used comp. This will give cyclic dependancy error.
Try like this.
In Comp2, create an additional view like NavigationView (for example).
In NavigationView create two ViewContainerUIElements (ViewContainerUIElement1 & ViewContainerUIElement2).
Embed this NavigationView into Comp2Window and remove View1's Inteface view & View2 from this window. Change the NavigationView property to true.
And go the Comp2Window Navigation Modeler, embed View1's Inteface view in ViewContainerUIElement1 & View2 in ViewContainerUIElement2.
Now create two context attributes View1Visibility & View2Visibilty in NavigationView and modify the type property to WDVisibility.
Bind these two attributes to corresponding ViewContainerUI elements.
Now in Navigation view, You can create one button and in that button action you can control the visibility of these views.
Hope this info helps. If you need more clarification or info please let me know.
Regards,
Charan -
How can i add items like display,text etc during runtime as it is done in visual basics
In Forms you can set items invisible. You can do it by Set_Item_Property('your_item',VISIBLE,PROPERTY_FALSE).You can also change position of item. All about what you can do with item you can read in the Forms on-line help "Set_Item_Property built-in".
I hope this will help you.
Helena
null -
Hello There,
Is it possible to add "Fragments" to PDF dynamically at runtime (Using JS)?
I have couple of fragments and i want to assemble it in sigle page in particular order.
For example:
I have three different fragments and the result order can be any of the below.
Here are few results.
Result I
1. Fragment 1
2. Fragment 2
3. Fragment 3
Result II
1. Fragment 2
2. Fragment 3
3. Fragment 1
Result III
1. Fragment 3
2. Fragment 1
3. Fragment 2
Thanks in advance,
SivaPost Author: LisaConsult
CA Forum: .NET
I have an OLE object which is an image. I set it during development as a linked object. During runtime, I change the reference to the object to a file currently on the user's workstation. Everything works fine. However, upon load, is it looking for the location set up at development first/by default? I connect remotely to the client's environment and the client tells me that the reports run faster when I'm connected to their network. I'm wondering if it's because of the linked image file? When I look in the raw rpt file via notepad, I can see a reference to my computer in the rpt file. Thanks -
"Calculated UME LDAP id is null" error received during runtime.
Hello All,
I am new to this community and this is my first post.
Therefore please pardon me for providing inadequate explanation/resources while mentioning my problem.
I am trying to build a SOAP webservice in SAP NetWeaver Developer Studio 7.3. This webservice will be used for integration between SAP user management (AS Java) with Dell's Quest Identity Management (Q1IM).
The webservice will be used for
Fetching
-> All UME Users
-> All UME Groups
-> All UME Roles
Add/Delete
-> User to/from Group
-> User to/from Role
Change
-> User Account Details
The current scenario is the webservice built in Java is ready and all the functional components are working fine during runtime except for one and that is when I try to retrieve all the UME Users.
Below mentioned piece of code is for getAllUser function
public SAPUser[] getAllUsers() throws UMException {
IUserFactory userFactory = UMFactory.getUserFactory();
IUserSearchFilter searchFilter = userFactory.getUserSearchFilter();
searchFilter.setDisplayName("*", ISearchAttribute.LIKE_OPERATOR, false);
ISearchResult searchResult = userFactory.searchUsers(searchFilter);
ArrayList<SAPUser> ar = new ArrayList<SAPUser>();
while (searchResult.hasNext())
String uniqueid = searchResult.next().toString();
if (uniqueid.startsWith("USER.PRIVATE_DATASOURCE.un"))
IUser user = userFactory.getUser(uniqueid);
IUserAccount[] userAcc = user.getUserAccounts();
for (int i = 0; i<userAcc.length;i++)
ar.add(new SAPUser(userAcc[i]));
SAPUser[] users = new SAPUser[ar.size()];
return ar.toArray(users);
Similar logic have been used for Groups and Roles and they are working fine.
During runtime it gives following error
Web service returned error. Fault Code: "(http://schemas.xmlsoap.org/soap/envelope/)Server" Fault String: "Calculated UME LDAP id is null"
(Screenshot has also been attached)
I tried searching for a solution on internet and specially on SAP SCN but couldn't come across any suitable option.
Thereby my request to member-experts of this forum to please look into my matter mentioned above and provide some appropriate solution for it.
Thanks in advance.
Regards,
Tanuj JaitlyHi Soumya,
Thanks for the valuable suggestion.
Now I have another situation and this I would like to share with you and other experts in this forum.
Apart from above scenario I was trying to fetch all the LDAP users as well, but due to large number of employees in my organization I received Connection Time Out. We thus changed our requirement.
We now want to display those LDAP users which have UME roles and groups associated with their accounts. In other words LDAP users who can login to SAP Java portal to access their roles and groups.
From UME API as getLastSuccessfulLogonDate() and getPreviousSuccessfulLogonDate() are already deprecated I am unable to find any concrete solution.
Request to please help. Thanks in advance.
Tanuj Jaitly
Maybe you are looking for
-
SAPSCRIPT problem in printing on Dot Matrix Printer
Hi! I have a SAPSCRIPT Form with page format INCH12. The SAPSCRIPT output is displayed properly in print preview. But when it is sent for printing on the Dot matrix printer the first three lines of the second page are printed on the first page at the
-
Permanet change of style format in Apple mail
If I change via the command and + key the style format in an email, these settings will be deleted when making a new email. How can I make changes in a style in an email permanently?
-
Aperture 2.1.4 - 'unsupported image format'
Aperture has suddenly gone haywire. All photos apparently lost as they all disappeared and 'unsupported image format' appeared for each one instead - but at the same time they are all showing in the thumbnails at the foot of the screen. They are all
-
Photoshop Elements will only print to fax
I have Adobe Photoshop Elements 8 and it will do everything I want it to do except print. When I open PE and File – Print, the print page opens and (1) Select Printer: [HP Officejet 6500 E709n Series] shows. The (1) Select Printer dropdown also lists
-
Hi I have a report which is used by 50 plants. In the selection variable screen, 0PLANT is to be entered when executing the query. I have 50 user names created like PL001, PL002, PL003...PL050. When PL001 user executes the query, by default S001 (pla