Nested list object setters
I have a <nested:iterate> tag for a List of objects to provide table-like editing capabilities to their attributes (all within a <html:form> tag), which works fine. Some of those attributes are other objects though and while the getters work fine, when submitting the form the setters don't take (no errors, just doesn't set). Code looks something like this:
<nested:iterate id="idproperty" property="sampleproperty">
<nested:text name="idproperty" indexed="true" property="property1" />
<nested:nest property="property2" >
<nested:text property="nestedproperty" />
</nested:nest>
</nested:iterate>
So here property1 gets and sets fine and property2.nestedproperty gets fine, but any changes are ignored. Anyone do deep sets on properties in objects that are part of a List? Thanks.
Hi ,
I found solution be Searching SDN
Untill you do this the FM wont know which internal table is getting displayed, when it does not find anythinG , it defaults it to 1. thats why it works.
Make Sure the field catalog fieldcat-tabname = '1'.
You can see it in debugging mode.
Thanks
David
Similar Messages
-
How to put Nested List in HTMLDocument in JTextPane(JEditorPane)
How to put Nested List in HTMLDocument in JTextPane(JEditorPane). I was trying to put nested Bullets and Numbering but found that not enough support is provided for it. The HTMLEditorKit behaves abnormally.
There are two ways to do that:
1) just extract the whole text by getText, but the problem is you don't have the postion where the cursor was when the event was triggered so u can't add ur text to it , even if u extracted the text at cursor there can be multiple copies, so no way...also if u change it and reinsert the whole text the atributeset for whole text is lost.
2) So the only way is work with jugglery of Elements, which is full of bugs. I find it very difficult to move backward in it and insert a tag around a tag. Such a simple thing and almost no way. If anybody has any ideas please mail me.
Thanx in AdvanceSettings > Mail, Contacts, Calendars > Contacts > Sort Order/Display Order 'First, Last'
-
Call Transaction from Excel VBA macro and download ALV list object results
I have a situation that must be very common u2013 but I canu2019t find any clear information on how to get it done!
We frequently run SAP transactions, download the results (orders or inventory) into Excel, do some calculations and create a spreadsheet report.
I would like to automate this process using Excel VBA so that a macro will perform these steps:
1. Run our custom SAP report "YSD033" that summarizes orders using the previous day as the [From Date] parameter. (The user already has an active ECC 6 R3 session running.) If possible, can the TC be run using a specific variant "G111BIZ" ?
2. Download the list object that appears in an ALV grid as a table to an empty spreadsheet in the active workbook (export XXL list object)
3. Save the resulting workbook and close Excel.
Should the solution use u201Ccall transactionu201D or a GuiXT script?
Any help would be much appreciated, and some sample VBA code would be great!
Thanks.
GlennGood suggestion, but
I get "permission denied" for SapGuiAuto.GetScriptingEngine
I also tried the method below, but received this RFC error message:
User PPPPPPP has no RFC authorization for function group SYST.
Sub LoginCheck()
If login = False Then
' Setting the necessary variables for R/3 connection
Set objBAPICortrol = CreateObject("SAP.Functions")
Set objConnection = objBAPICortrol.Connection
' Establish a connection
If objConnection.Logon(0, False) Then
login = True
MsgBox "Connection Established"
CommandButton1.Caption = "Disconnect"
End If
Else
CommandButton1.Caption = "Connect 2 SAP"
login = False
objConnection.Logoff
Set objConnection = Nothing
Set objBAPICortrol = Nothing
End If
End Sub
I was told that these kinds of authority open up too big of a window that can't be monitored adequately...
I'm considering an approach like what is below if I can't convince security to grant me permissions...
Application.Wait Now + TimeValue("00:00:01")
SendKeys EnterKey, False
Since blocked RFC security settings are preventing the solution from being installed, I am markgin this question as answered.
I will post different questions about 1. how to convince the security team that it will be safe to allow the use of RFC calls, and /or 2. how use some windows-level scripting code to run the SAP jobs.
Thanks.
Edited by: GlennWebster on Mar 1, 2010 4:34 PM -
Concatination of 2 linked list objects of characters
Pleas help me to solve the following problem by using Java.
Problem: Write a program that concatenates two linked list objects of characters. The program should include method concatenate, which takes references to both list objects as arguments and concatenates the second list to the first list.
Thanking u,
RiponThis assumes that your class is 'ListConcatenate' and that you have set up your two link-lists.
public void concatenate( ListConcatenate l1, ListConcatenate l2)
if ( l1.isEmpty1() || l2.isEmpty2() )
System.out.printf( "Empty %s or Empty %s\n", name1,name2 );
return;
System.out.printf( "%s concatenated with %s is: ", name1,name2 );
NodeOne current1 = l1.firstNode1;
NodeTwo current2 = l2.firstNode2;
while (current1 != null )
System.out.printf( "%s ", current1.data1.toString() + current2.data2.toString() );
current1 = current1.nextNode1;
current2 = current2.nextNode2;
} -
LINQ sorting on List Object - Various Object Type
I try to sort a List<Object> where the Object are different classes but all share the same Property Name for instance.
I got a Base Class where Class A and Class B inherit from the Base Class.
So during the Linq query I cannot specify with object type this is.
Problem here "from ?????Entry_Global?????? list in Entries"
Thanks for helping.
////Entries is a List<Object> which consist of class object as following\\\\\
public abstract class EntryBase<T>
private string _Name;
public string Name
get { return this._Name; }
set { this.SetProperty(ref this._Name, value); }
public class Entry_Global : EntryBase<Entry_Global>
public class Entry_CC : EntryBase<Entry_CC>
private string _url; //Web url
public string Url
get { return this._url; }
set { this.SetProperty(ref this._url, value.Contains("http") ? value : "http://" + value); }
public List<Object> SortBy()
IEnumerable<KeyedList<string, object>> groupedEntryList = null;
//The proble reside in the fact that list is not only one type
//so when comes in the orderby "Name" it doesn't know Name
//or any other properties which are all common to all those class
//It does not want to convert Entry_CC or Entry_Global to EntryBase
groupedEntryList =
from ?????Entry_Global?????? list in Entries
orderby list.Name
orderby list.CategoryRef.Name
group list by list.CategoryRef.Name into listByGroup
select new KeyedList<string, object>(listByGroup);
return groupedEntryList.ToList<object>();Entry_Global and Entry_CC don't share the same base class since EntryBase<Entry_Global> and EntryBase<Entry_CC> are two totally different types so you cannot cast the objects in the List<object> to a common base class in this case.
You could cast from object to dynamic though:
public List<Object> SortBy()
List<object> objects = new List<object>();
objects.Add(new Entry_Global { Name = "K" });
objects.Add(new Entry_CC { Name = "A" });
objects.Add(new Entry_Global { Name = "I" });
objects.Add(new Entry_CC { Name = "C" });
var sortedObjectsByName = (from o in objects
let t = (dynamic)o
orderby t.Name
select o).ToList();
return sortedObjectsByName;
The dynamic keyword makes a type bypass static type checking at compile-time:
https://msdn.microsoft.com/en-us/library/dd264736.aspx. This basically means that a dynamic type is considered to have any property of any name at compile time. Of course you will get an exception at runtime if the type doesn't have a Name property but
providied that all objects in the List<T> to be sorted are of type EntryBase<T> you will be safe as long as the EntryBase<T> type defines the Name property that you sort by.
Please remember to close your threads by marking helpful posts as answer and please start a new thread if you have a new question. -
Drag and drop List Object[] collection
is it possible? If we combine JPA entities which are returned then we have to return List<Object[]> collection, e.g. some combination of the fields from Employees and Projects entities is returned by a service
Not sure what this question is pertaining to. Are you referring to the use of drag and drop in the context of ADF Faces RC with JPA? Or are you describing a design time issue with JPA? Please clarify.
Thanks,
RiC -
List Object or Just List which is better ?
Hi Guys,
List<Object> list1 = new ArrayList<Object>();
List list2 = new ArrayList();Logically speaking, both looks similiar. But which one is better to use ?
I can do something like
list1 = list2; OR
list2 = list1; but if List<String> list3 = new ArrayList<String>();Why I can not do this list1 = list3; // throws compilation error Thanks,
javaCrazyjavaCrazy wrote:
List<Object> list1 = new ArrayList<Object>(); This is senseless. Inside the braces an appropriate Interface should be used.
but if List<String> list3 = new ArrayList<String>(); Why I can not do this list1 = list3; // throws compilation error
If you declare <tt>List<String> list3 = new ArrayList<String>();</tt> you explicity state that the List will only contain Strings (or types that inherit from the declared type, but String cannot be subclassed), list1 is declared to contain objects of a different kind. Usually the interface of the type list1 is declare will not match with the interface declared for the elements in list3. Since Object is the root of all classes this is a weird exception... Thats why the compiler prohibits this assignment. If you really need such assignment look for the use of wildcards.
bye
TPD -
Hi!
I have a List object or component (java.awt.List) in my app.
I try to order it using Collections.sort(my_list) but I recieve this message which I dont understand:
The method sort(List<T>) in the type Collections is not applicable for the arguments (List)
By the way, I would like to order it using a numeric order, not an ascii order, so I guess I have to use "implements Comparable", but how can I use that if my List contains Strings?
I mean, my List has:
20 bla bla
9 bla bla
and I want this:
9 bla bla
20 bla bla bla
Any advice?
Thanks a lot for your time.
Edited by: Ricardo_Ruiz_Lopez on Dec 26, 2007 9:27 AMYou are mixing up two different kinds of Lists. One is the AWT List (java.awt.List) which is what you are using and can be thought of more as a visual component.
http://java.sun.com/javase/6/docs/api/java/awt/List.html
The other is the utility Collections List (java.util.List) which is purely a data construct.
http://java.sun.com/javase/6/docs/api/java/util/List.html
So, bottom line is, the Collections.sort( ) won't work with the AWT list. You'll have to extract your data model which I think may be a String[] and sort that, then possibly re-insert with add(String item, int index) (I'm not sure on this part).
Edited by: Encephalopathic on Dec 26, 2007 9:44 AM -
Remove duplicates for list object
Hi,
I have retrieved all the xml node values in List<object>. Now, I want to remove all the duplicates objects from that list.
Example:
If the object has n properties, I should remove only duplicate objects that have same values in all the n properties not just one property as ID or name. Please let me know how to achieve this. Preferably using LINQ.
Thank you.
Regards,
KiranYou can use a GroupBy. I took the code from last posting
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Linq;
using System.IO;
namespace ConsoleApplication1
class Program
static void Main(string[] args)
string file1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>" +
"<Methods>" +
"<Method>" +
"<ID>1234</ID>" +
"<Name>manager</Name>" +
"<Path>path1</Path>" +
"</Method>" +
"<Method>" +
"<ID>5678</ID>" +
"<Name>manager</Name>" +
"<Path>path2</Path>" +
"</Method>" +
"<Method>" +
"<ID>5678</ID>" +
"<Name>manager</Name>" +
"<Path>path2</Path>" +
"</Method>" +
"</Methods>";
string file2 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>" +
"<Methods>" +
"<Method>" +
"<Path>path1</Path>" +
"<Description>text</Description>" +
"</Method>" +
"<Method>" +
"<Path>path2</Path>" +
"<Description>text</Description>" +
"</Method>" +
"</Methods>";
string file3 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>" +
"<Methods>" +
"</Methods>";
StringReader reader = new StringReader(file1);
XDocument doc1 = XDocument.Load(reader);
reader = new StringReader(file2);
XDocument doc2 = XDocument.Load(reader);
reader = new StringReader(file3);
XDocument newXDoc = XDocument.Load(reader);
var results = from e1 in doc1.Descendants().Elements("Method")
join e2 in doc2.Descendants().Elements("Method")
on e1.Element("Path").Value equals e2.Element("Path").Value
select new XElement("Method", new object[] { e1.Element("ID"), e1.Element("Name"), e2.Element("Description") });
var results2 = results.AsEnumerable()
.GroupBy(x => x.Element("ID").Value);
var results3 = results2.AsEnumerable()
.Select(x => x.Take(1));
newXDoc.Descendants("Methods").Last().Add(results3);
jdweng -
Java List interface - retrieve contents of List Object?
I'm calling a method that retrieves a List object. The contents of that list are something like:
countryCode=US,countryCodeDescription=United States Of America. I want to create a key-value pair from the returned List so that my class can return a key-value map object.
The Key-Value pair I need to create should look like this:
key="countryCode=US",value="US - United States Of America"
How do I do accomplish that using Java? Any guidance is greatly appreciated.
Thanks in advance!If you use a LinkedHashMap, the order will be preserved. However, you cannot have the same key more than once. If you are using an LDAP style address, the same key might occur more than once.
-
Program To List Object in Change Request
Hi:
is there a standard program available which will list Object Technical Name and Description in Change Request?
Please let me know.
If you have custom code please send it to me.
ThanksHi,
There is no std program, but you can take the query element (assuming you are looking to decipher these elements) from the request and place it in SE16 > V_ELTDIR_TXT.
Hope this helps... -
How to bind bar chart(columns) to array list object in c# win form
how to bind bar chart(columns) to array list object in c#win form
Hi Ramesh,
Did you want to bind list object to bar chart? I made a simple code to achieve binding list to bar chart.
public partial class Form0210 : Form
public Form0210()
InitializeComponent();
private void Form0210_Load(object sender, EventArgs e)
BindData();
public void BindData()
List<int> yValues = new List<int>(new int[] { 20, 30, 10, 90, 50 });
List<string> xValues = new List<string>(new string[] { "1:00", "2:00", "3:00", "4:00", "5:00" });
chart1.Series[0].Points.DataBindXY(xValues, yValues);
The links below might be useful to you:
# Data Binding Microsoft Chart Control
http://blogs.msdn.com/b/alexgor/archive/2009/02/21/data-binding-ms-chart-control.aspx
# Series and Data Points (Chart Controls)
https://msdn.microsoft.com/en-us/library/vstudio/dd456769(v=vs.100).aspx
In addition, if I misunderstood you, please share us more information about your issue.
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey. -
Query builder how to list objects, description for universe
need query to list objects, object type, object description, object hidden property for selected universe
All information about Universes available using Query Builder can be queried like this:
SELECT * FROM CI_APPOBJECTS WHERE SI_KIND = 'Universe'
Information such as objects used, etc, needs to be retrieved through the SDK:
A sample for this exists in the developer library:
[Direct Link to Sample|http://devlibrary.businessobjects.com/BusinessObjectsXIR2/en/en/BO_SDK/unv_info_vb/data/dessdk_com_unvInfo_sample_115_en.zip]
"This is a Visual Basic 6.0 application which traverses the Universe Designer SDK object model and outputs the universe details to a HTML file."
http://devlibrary.businessobjects.com/BusinessObjectsXIR2/en/devsuite.htm -
All,
I have a user that we gave a new laptop to and the spreadsheet button in t-code KSB1 will no longer let him export list object to XXL. He is on GUI 7.10 and Office 2003. I have checked the settings for Marcos in Excel and set them to allow all macros along with Visual Basic. What setting am I missing?
Thanks,
SeanHi Sean,
You could also try the following:
1. run TCode SA38
2. run ABAP-Programm SALV_BS_ADMIN_MAINTAIN
3. mark Detail-Selektion
4. put a client and user
5. run
6. mark a row for the user
7. delete with F7-key (or button)
Then again the choice would have to appear for the XXL Format when exporting to Excel.
Regards,
ScriptMan -
Export list object to xxl in sap
Dear Team
when downloading to spread sheet , i unknowingly pressed the "Always use selected format". Now i am getting the pop up for export list object to xxl. i want it to deactivated and and want the "option of select format"
please help me.
Regards
Hamsa JananeeHi Hamsa Jananee
You do following:
Re: "Always Use Selected Format" check box in line items report
and
Re: Export to excel popup after SP upgrade
Hope it helps.
Thanks and Regards,
Maybe you are looking for
-
itunes and windows 8 compatability Hi just bought a new toshiba laptop installed itunes it worked at first now wont play music or movies. ran troubleshooter said its a compatabilty problem suggested turning off itunes compatability or selecting windo
-
Adobe interactive form for flexible compensation plan
Dear Experts I am new to adobe interactive form. I have to develop a form for Flexible Compensation Plan Structure in this form when an employee enter his employee id all the data should be displayed in the form and side wise a blank text field
-
Dear Experts, In our procurement scenario we get a ordered product from our vendor after 4 months from the date of order. Therefore I creat a PO today and give the delivery date of after 4 months. Now at the time of goods receipt after 4 months the p
-
Any way to validate CS3 license key is legal without installing software?
Hi, I'm going to meet someone tonight who is selling their CS3 Master Collection software. They claimed they have removed it from their PC. I've been doing some searching without luck as to whether there is a online or over the phone tool to verify I
-
1TB External Hard drive to suffice as both bootcamp and backup?
Hey guys, I've got a 2011 macbook pro, 16GB RAM and 500GB Hard Drive. I'm wondering if it would be possible to buy a 1TB external hard drive and partition it in half, and have 1/2 be a bootcamp windows 7 partition and the other be a time machine back