How to delete empty element in popup list
I have a question about a suspicious behaviour in Forms Builder 10.1.2.0.2.
When I have a list object (pop up list) I can define some values in the attribute palette of the object.
So you can set a shown name and a value behind. In this little window to set the items of the popup list you get automatically a white empty item at the end of the list. When I click now on this empty item (you do so, when you want to add an item) Forms Builder automatically adds an new empty item at the end.
When I click this new empty item, Forms Builder adss another empty one ... and so on.
It´s very suspicious because, when I end this dialog with "OK", it will be saved and when I open the form (over web) I have at the end of the list one, two (or more) empty elements in list.
But I can´t delete this empty ones from the list in Forms Builder.
So my question:
how can I delete empty items in a popup list??
I try it with hit "del" button at keyboard or delete the set value for the item (I hope Forms Builder delete items without value). But all does not help.
Thanks jwh for this great solution! :)
On my german keyboard it is:
ctrl+< for deleting a line
ctrl+> (= ctrl+shift+<) for adding a new line
Thanks! :)
I have another question (you can maybe help me, too?).
On this popup lists you can have several items. When you open a form (via web) and the list has more than x items (maybe 5 or 6) the form shows a scroll bar on the right side.
Is there any poosibility to set how much items has to show and only show a scroll bar when there are more items in the list?
Or other way: set the maximum of shown items so big, that there will be no scroll bar.
Message was edited by:
ulfk
Similar Messages
-
How to delete an element in an array...(simple way)
hi,
Newbie here... please help how to delete an element in an array list?
there are alot of codes but they're complicated for a newbie like me..
(simple codes would be better ..:) thank you...makk_88 wrote:
since u want the simple method.....
just overrite the position of the element that need to be deleted with the next element in the array..
by doing this, element need to be deleted will not be accessibe..
i think u got..what i'm saying.
thnx..Mak,
Say we wish to delete the second element of an array a[1]. Do you really believe that a[1] = a[2] somehow magically deletes a[1]? I really don't think so Tim.
Two eggs, minus 1, equals two eggs? Interesting theory, but I think you're probably wrong.
*@OP:* My advise is just use an ArrayList.
Cheers. Keith. -
How to delete empty pages in in-design document?
Hi All,
How to delete empty page which may contains text frame with no contents, or may be no text frame...
Plz provide me the script...
Thanks in advance,
Vel....Indesign CS5.
My script is,
doc=app.activeDocument;
pageObj=doc.pages.item(0);
txtObj=pageObj.textFrames.item(0);
var temp=doc.pages.length;
for(var i=0;i<temp;i++)
if(doc.pages[i].textFrames.item(0)!=null)
if(doc.pages[i].textFrames[0].contents!=null) // here, i used "contents" instead of "lines". but also not working well...
alert(doc.pages[i].textFrames[0].contents);
alert("True");
else
doc.pages[i].remove();
i=i-1;
temp--;
else
alert("False");
doc.pages[i].remove();
i=i-1;
temp--;
I've a sample document which contains a empty page without a text frame and another empty page with text frame with no contents on it... but my script remove only the empty page and not the empty page with txt frame...
pLZ HELP JONGWARE... -
How to delete an element in arraylist??
here i have an array list which contain details of an address book
I want to delete one element in the list
but its not deleting
Could anyone please take a look and help me
tank u in advance!!
else if (X.compareTo(F)==0)
{System.out.println("Pour supprimer une fiche : saisir le NUM INDEX.");
Integer c1 = new Integer(0);
Z = clavier.readLine();
c1=Integer.valueOf(Z);
System.out.println("Vous allez supprimer la fiche "+c1);
for( Iterator it= l.iterator(); it.hasNext();) {
Object p =it.next();
relations R=(relations)p;
if (R.getnumero()==c1)
l.remove(l.indexOf(p));}
for( Iterator it1= l.iterator(); it1.hasNext();) {
Object o =it1.next();
if (o.getClass().getName()=="carnetadresses.contact")
((relations) (o)).affiche();
}break;
}It's a good thing you use code tags for posting here. Could you now consider using code conventions?
- Why is the second loop nested in the first one? (this second loop looks weird anyway...)
- The Iterator has a remove method. You should use it in such case.
- Looks like you have a malpositioned/misused break statement (which is probably the reason why nothing happen, as it terminates the for loop after the first iteration.) -
HOW TO DELETE DUPLICATE ELEMENT IN A VECTOR
Hi everybody!
If I've a vector like this vectA={apple,orange,grape,apple,apple,banana}
and I want final result be vectB={apple,orange,grape,banana}.
How should I compare each element in vectA and delete duplicate element. Like here duplicated element is apple. Only one apple remain in the vectB.
Any help,
Thanks.Hello all. Good question and good answers, but I would like to elaborate.
To begin with, you specifically asked to map the following:
{apple,orange,grape,apple,apple,banana} ==> {apple,orange,grape,banana}
Both of cotton.m's solutions do NOT do this, unfortunately. They are both useful in particular cases though, so think about what you're trying to do:
cotton.m's first solution is best if order does not matter. In fact, as flounder first stated, whenever order doesn't matter, your most efficient bet is to use a Set instead of a List (or Vector) anyways.
Set vectB = new HashSet(vectA);This code maps to {banana, orange, grape, apple}, because HashSets are "randomly" ordered.
cotton.m's second solution is good if you want to impose NEW ordering on the List.
Set vectB = new TreeSet(vectA);This code maps to {apple, banana, grape, orange}, because TreeSet uses alphabetical-order on Strings by default.
java_2006, your solution is the most correct, but it's a little verbose for my taste :)
more importantly, the runtime-efficiency is pretty bad (n-squared). calling Vector.contains performs (at worst) n comparisons; you're going to call it n times! Set.contains usually performs 2 comparisons (constant, much better), so I suggest you USE a Set to do the filtering, while still sticking with your good idea to use a List. When the ordering is "arbitrary" (so can't use TreeSet) but still relevant (so can't use HashSet), you're basically talking about a List.
I think saving A LOT of time is worth using A LITTLE extra space, so here, let's save ourself some runtime, and some carpal-tunnel.
import java.util.*;
class Foo {
public static void main(String[] args) {
String[] fruits = {"apple","orange","grape","apple","apple","banana"};
List l = Arrays.asList(fruits),
m = filterDups(l);
System.out.println(m);
// remember, both of the following methods use O(n) space, but only O(n) time
static List filterDups(List l) {
List retVal = new ArrayList();
Set s = new HashSet();
for (Object o : l)
if (s.add(o))
retVal.add(o); // Set.add returns true iff the item was NOT already present
return retVal;
static void killDups(List l) {
Set s = new HashSet();
for (Iterator i = l.iterator(); i.hasNext(); )
if (! s.add(i.next()))
i.remove();
// honestly, please don't use Vectors ever again... thanks!
// if you're going to be a jerk about it, and claim you NEED a Vector result
// then here's your code, whiner
public static void mainx(String[] args) {
String[] fruits = {"apple","orange","grape","apple","apple","banana"};
List l = Arrays.asList(fruits);
Vector v = new Vector(l);
killDups(v);
System.out.println(v);
} -
JDev deletes empty elements in transform activity
Dear all,
the XSD in my BPEL process defines a "Group" element:
<xs:element name="Groups">
<xs:complexType>
<xs:sequence>
<xs:element name="Group" type="Group_Type" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="Group_Type">
<xs:sequence>
<xs:element name="id" type="xs:int"/>
<xs:element name="name" type="xs:string"/>
<xs:element name="desc" type="xs:string"/>
</xs:sequence>
</xs:complexType>
As one can see, a "Group" element contains three mandatory elements named "id", "name" and "desc". This "Group" element is the output target of an XSLT transform activity in my BPEL process.
In the output target, the "desc" element should be empty (<desc/> or <desc></desc>). Therefore, the corresponding XSLT should look like:
<foo:Group>
<foo:id>
<xsl:value-of select="'do something'"/>
</foo:id>
<foo:name>
<xsl:value-of select="'do something'"/>
</foo:name>
<foo:desc/>
</foo:Group>
First, it is not possible to define an empty element (<desc/>) in the graphical design modus of an XSLT transform activity. Or is there a workaround available?
Second, when inserting the empty element in the source modus => saving the document => changing to the graphical design modus => do something in the graphical design modus => returning to the source modus, the empty element was deleted by JDeveloper! Is there a workaround for this very annoying bug of Jdev?
Thanks in advance!
LarsYou can also append an xml fragment to put back the missing fields....for example:
- Type: Append (Note, this is different than the copy operation)
- From Type: XML Fragment
- From Value:
<ns4:ShipTo xmlns:ns4="http://www.globalcompany.com/ns/order">
<ns4:Name>
<ns4:First/>
<ns4:Last/>
</ns4:Name>
</ns4:ShipTo>
(Replace ns4 in this example with your namespace .)
- To Type: Variable -
How to delete empty Last Import albums on Ipad2
This is both a question and a partial solution to anyone who has found empty Last Import albums on their Ipad2 after upgrading to IOS 5.1. I ended up with three Last Import albums on my Ipad under the Photos App after the upgrade to 5.1 and Iphoto app.
I could not delete them no matter what I tried. Even turned off Photo sync in Itunes and had it remove all photos from the Ipad and the empty folders are still there.
I ended up trying a round about way of getting rid of the empties. I reasoned that the Camera Connection kit had created this mess and maybe it could fix it.
Solution: (Only practical with a few empty folders)
Shoot some photos with a digital camera using a SD card.
Put the SD Card in the Camera Connection Kit and connect to the Ipad. Import the images but keep them on the card.
Disconnect the CCK and hook up to your Mac with Iphoto running. Import the images and delete from the Ipad when asked.
Delete photos from Iphoto.
Repeat several times and you should notice that each time one more Last Import album vanishes from the Ipad.
Hope this helps someone else with this problem and Apple comes out with a better solution to this.I found a solution! I added a comment over on the shimworld blog (http://shimworld.wordpress.com/2011/11/02/how-to-remove-empty-photo-import-event s-on-your-ipad-2/#comment-18392), I'll repost it here:
I ran into this same issue on my new iPad(3rd gen) after upgrading from iPad 2, I had a few hundred empty events(it took at least 30s of scrolling as fast as I could to reach the bottom). I use the camera connection kit as well as the EyeFI app to import photos constantly so it was a bit of a mess. I’m doing a road trip to SF area soon and needed space for new photos so I need to figure something out. After a bunch of digging around on the internet and looking into tools from my earlier jailbreaking days, I found a solution to do a full reset on the Photos.app. This does NOT require a jailbreak!
First I imported all photos to my mac using Image Capture. Then I turned off iCloud’s PhotoStream, turned off photo syncing in iTunes and let a the iPad do a full sync and backup. Next I ran DiskAid and deleted the photo related folders under the File System -> Media area(see below). This removed EVERYTHING from the Photos.app. Then I rebooted the iPad. The Photos.app was empty just like on a new device! I snapped a couple pics with the camera and it created the camera roll, I turned PhotoStream back on, synced some photos from iTunes. Everything seems to be working great now, just like new!
BEWARE: THIS WILL DELETE ALL PHOTOS STORED ON YOUR DEVICE in Photos.app!!! MAKE A BACKUP!!!!
Connect iOS device with USB and fire up DiskAid. In DiskAid click File System, then click Media. READ WARNING and accept.
Delete these folders:
PhotoData (this has all the photos, database, etc synced from iTunes)
DCIM (this is the camera roll)
Photos (I think this is just the data to determine which iTunes library its synced with)
PhotoStreamsData (iCloud Photo Stream data)
Reboot iPad(probably not required but doesn’t hurt)
Enjoy a fully reset Photos.app!
DiskAid: I used v5.12 on my Mac Mini(10.7.3)
http://www.digidna.net/products/diskaid -
How to avoid empty elements in generated xml text
I am using XMLBeans to generate xml.
If I set text value for a tag then it displaying like
<param name="org">Satyam</param>
If I set empty text value for the same tag it generateing xml text like
<param name="org"/>
But I don't need empty elements in generated xml like this way. Even though I set empty text to a tag it has to display like
<param name="org"></param>
How can I do this one.
Message was edited by Mouli at Dec 14, 2004 2:55 AMHi,
by the book these two representations are identical
<.... />
<....></....>
as for the XML-parser.
What problem are you facing with the <... /> representation?
I will try to investigate a bit to see if the XMLBean can be forced to write the <....></....> representation.
- Anders M. -
How to delete cost element name from group after deleting the cost element
Hi,
Please let me know how to delete the cost element number from the Cost element group hierarchy.I have deleted cost element but still showing only the CE number---no valid master record.If I d not want this to be visible within hierarchy let me know what should I do.
ThanksHi
Go to change cost element group select the cost element click on select tab (3rd Tab from Left) it will take u to new screen in that screen select remove tab (1st tab from left)
Regards
Sandesh -
XMLBeans - how to delete an element?
Guys,
How do you delete an element within an xml data element?
If there's more than one way what are they?
Currently, I've generated XML java objects. I see a setNil() method and a couple removeXXX methods but neither appear to delete the element I'm trying to give the axe to.
Thanks!
-markmakk_88 wrote:
since u want the simple method.....
just overrite the position of the element that need to be deleted with the next element in the array..
by doing this, element need to be deleted will not be accessibe..
i think u got..what i'm saying.
thnx..Mak,
Say we wish to delete the second element of an array a[1]. Do you really believe that a[1] = a[2] somehow magically deletes a[1]? I really don't think so Tim.
Two eggs, minus 1, equals two eggs? Interesting theory, but I think you're probably wrong.
*@OP:* My advise is just use an ArrayList.
Cheers. Keith. -
How to delete particular row in ALV list display
Hi All,
My requirement is :
I am displaying ouput using lav list dispplay befor the first colomn i am displaying check box. i defined my own pf status here . in pf status i have 3 buttons .
1 select all
2 deselect all
3 delete.
First two options are working fine when i click select all it is selecting all the rown in a program(selectiong all the check boxex) like working fine for deselecting all.
3 optioin Delete when i click delete option it has to delete partcular row in a list display and at the same time this entry should delete from the table. this is my requirement. for the third point(delete) option i dont have any logic. anybody can suggest me or send me the sameple code. i am sending my code below.if possible please modify the code and resend it to me.
type-pools : slis.
tables : zuser_secobjects.
data : t_header1 like zuser_secobjects.
data : begin of it_secobjects occurs 0.
include structure t_header1.
*data : box,
input(1) type c,
data : checkbox type c,
flag type c,
end of it_secobjects.
data : wa_ita like line of it_secobjects.
*data : it_secobjects like zuser_secobjects occurs 0 with header line.
data : i_field type slis_t_fieldcat_alv with header line.
data : w_field like line of i_field.
data : i_sort type slis_t_sortinfo_alv.
data : w_sort like line of i_sort.
data : it_filt1 type slis_t_filter_alv with header line.
data:
i_tabname type tabname,
i_repid like sy-repid,
is_lout type slis_layout_alv.
data : it_filt type slis_t_filter_alv with header line,
it_evts type slis_t_event with header line.
DATA : is_vari type disvariant.
constants : c_default_vari value 'X',
c_save_vari value 'U',
c_checkfield type slis_fieldname value 'ACTION',
c_f2code type sy-ucomm value '&ETA'.
data : chk_box type slis_fieldname.
selection-screen: begin of block b1 with frame title text-t01.
parameters : p_appln type zuser_secobjects-appln.
parameters : p_user type usr02-bname, "zuser_secobjects-appln_user,
p_partnr type zuser_secobjects-appln_partner,
p_ptype type zuser_secobjects-partner_type default '02',
p_upostn type zuser_secobjects-user_position,
p_sdate like likp-erdat default sy-datum,
p_edate(10) default '12/31/9999',
p_revnum type zuser_secobjects-revnum,
p_cted type zuser_secobjects-created_by,
p_cdate type zuser_secobjects-creation_date,
p_ctime type zuser_secobjects-creation_time,
p_chnby type zuser_secobjects-changed_by,
p_cdate1 type zuser_secobjects-changed_date,
p_ctime1 type zuser_secobjects-changed_time.
selection-screen: end of block b1.
form user_command using p_ucomm like sy-ucomm
rs_selfield type slis_selfield.
*DATA : it_filt type slis_t_filter_alv with header line.
case p_ucomm.
when 'SELECT_ALL'. " SELALL is the FCODE of ur push button
loop at it_secobjects into wa_ita.
wa_ita-checkbox = 'X'.
modify it_secobjects from wa_ita.
endloop.
rs_selfield-refresh = 'X'. "<- ADD THIS
when 'DESLCT_ALL'.
loop at it_secobjects into wa_ita.
wa_ita-checkbox = ' '.
modify it_secobjects from wa_ita.
endloop.
rs_selfield-refresh = 'X'. "<- ADD THIS
is_lout-f2code = c_f2code.
is_lout-box_fieldname = c_checkfield.
is_lout-get_selinfos = 'X'.
is_lout-detail_popup = 'X'.
is_lout-detail_initial_lines = 'X'.
when 'HIDE_DEL'.
rs_selfield-exit = 'X'.
it_filt-fieldname = 'ACTION'.
it_filt-tabname = '1'.
it_filt-valuf = 'X'.
it_filt-intlen = '1'.
it_filt-inttype = 'C'.
it_filt-datatype = 'CHAR'.
it_filt-valuf_int = 'X'.
it_filt-sign0 = 'E'.
it_filt-optio = 'EQ'.
if it_filt[] is initial.
append it_filt.
else.
modify it_filt index 1.
endif.
perform display using i_object.
PERForm ALV_LIST_DISPLAY.
WHEN 'SHOW_DEL'.
rs_selfield-exit = 'X'.
free it_filt.
PERForm ALV_LIST_DISPLAY.
when 'SAVE1'.
select * from zuser_secobjects where
appln = zuser_secobjects-appln
and appln_partner = zuser_secobjects-appln_partner
and partner_type = zuser_secobjects-partner_type
and start_date = zuser_secobjects-start_date
and end_date = zuser_secobjects-end_date.
endselect.
if sy-subrc eq 0.
message e000(ZV) with 'Duplicate Entry'.
endif.
endcase.
endform.
*& Form delete
form delete.
data : begin of is_secobjects occurs 0.
include structure zuser_secobjects.
data : checkbox type c.
data : end of is_secobjects.
is_secobjects-checkbox = 'X'.
modify is_secobjects
from it_secobjects
transporting checkbox
where checkbox = 'X'.
endform.
*& Form get_data
form get_data.
select * from zuser_secobjects
into table it_secobjects.
endform. " get_data
*& Form prepare_fieldcatalog
text
--> p1 text
<-- p2 text
form prepare_fieldcatalog.
clear: w_field,i_field.
refresh:i_field.
i_field-key = 'X'.
i_field-col_pos = 1.
i_field-ddictxt = 'S'.
i_field-seltext_s = '@11@'.
i_field-checkbox = 'X'.
i_field-input = 'X'.
i_field-fieldname = 'HEADER'.
i_field-outputlen = 0.
append i_field.
clear i_field.
w_field-fieldname = 'APPLN'.
w_field-tabname = 'IT_SECOBJECTS'.
w_field-seltext_l = text-m01.
w_field-outputlen = '10'.
w_field-col_pos = 1.
append w_field to i_field.
clear w_field.
w_field-fieldname = 'APPLN_USER'.
w_field-tabname = 'IT_SECOBJECTS'.
w_field-just = 'C'.
w_field-seltext_l = text-m02.
w_field-outputlen = '7'.
w_field-col_pos = 2.
append w_field to i_field.
clear w_field.
endform. " prepare_fieldcatalog
*& Form ALV_LIST_DISPLAY
text
--> p1 text
<-- p2 text
form alv_list_display.
i_repid = sy-repid.
is_lout-box_fieldname = 'CHECKBOX'.
it_filt-fieldname = 'ACTION'.
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = i_repid
i_callback_pf_status_set = 'PF_STATUS_SET'
i_callback_user_command = 'USER_COMMAND'
is_layout = is_lout
it_fieldcat = i_field[]
it_filter = it_filt[]
it_events = it_evts[]
i_default = c_default_vari
i_save = c_save_vari
is_variant = is_vari
tables
t_outtab = it_secobjects.
endform. " ALV_LIST_DISPLAY
*& Form display
text
-->P_I_OBJECT text
form display using object.
case object.
ENDCASE.
endform. " display
thanks,
maheedhar.tHI
In my program checkbox(before the record is displayed)
I used following lines to display checkbox .
i_field-key = 'X'.
i_field-col_pos = 1.
i_field-ddictxt = 'S'.
i_field-seltext_s = '@11@'.
i_field-checkbox = 'X'. <- Using this command i am getting checkbox
i_field-input = 'X'.
when i select this checkbox i press delete option then this entry will remove from internal table and refresh the screen and at the same time i will click on save button this ztable has to update according to that action.
this is my requirement.
thanks,
maheedhar. -
How to delete empty tags after xml-import
Hello collegues,
I'm totally new in this forum so excuse me if I make a mistake, but I've a little question.
I've imported text and images with a xml-import but sometimes empty tags (the colored invisible blocks) are in my text, with the result that I can't Find/Change on double-returns.
Does anybody know an awnser to this matter? I would love to write an apple-script that will find/change this so i don't have to look after all my pages.
Thank you very much in advance.ThePictureCreator wrote:
...I can't Find/Change on double-returns.
What's your search query? I think you should be able to, with either a grep find of "\r+" or a normal text find of "^p^p". InDesign pretends like the tag-holding characters aren't there for the purpose of search. But you will lose the empty elements along with the extra returns. Maybe that is the problem?
Jeff -
How to delete empty albums from iCloud photo library
Finished migration to the new Photos for OS X, and my library across all devices is now the same. However, if viewing Photos through iCloud,com (via Mac), I still see many unused empty Album folders. These folders (albums) do not appear on any of my OS X or IOS devices. I can;t seem to find a method to delete these folders.
Any help would be appreciated
THXYou cannot select an album on cloud.com! You can only open it. And if you right-click on it, there is only the custom safari menu.
By the the way the empty albums are only visible is 3 cases:
1. They appear on results while searching on searching field.
2. They are visible on iCloud.com.
3. They are visible through "Documents 5" application by Readdle.
In all the 3 cases you cannot delete them.
... or I don't know how. -
How to delete an article from reading list in safari
Hi my name is kashish i just want to know that how can i remove something or a web page from the reading list in safari iam using iapd 4 retina display with ios7.0.4
Go to Reading List and swipe article from right to left and tap Delete.
-
How to delete the exceed threshold limit list in Sharepoint Online
In my share point online list having more than 5000 items. It's reached threshold limit.Then
i am trying to delete the list data using client context in console application. But I got this error message "The attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator."
If anyone know how to resolve this issue.Hi,
Unfortunately there is no option to override the list threshold in Office 365/SharePoint Online. One option is to create the folders and move the items to that folders, then try deleting the items.
And also refer to the following posts.
http://community.office365.com/en-us/f/154/t/156368.aspx
Indexing columns
http://en.community.dell.com/techcenter/sharepoint-for-all/b/blog/archive/2014/04/01/resolving-the-list-view-threshold-when-migrating-to-o365
http://aaclage.blogspot.de/2014/02/sharepoint-2013-app-manage-list.html
Please don't forget to mark it as answered, if your problem resolved or helpful.
Maybe you are looking for
-
Error Handling for Dynamic Actions (4.1.1)
Hello I'm trying to create a function to handle all possible errors but the errors generated by DA are not being caught. Is it possible to caught them? How? My function is based in: http://www.inside-oracle-apex.com/apex-4-1-error-handling-improvemen
-
Am I blind? Is there no search function on the App Store web page?
-
IPhoto auto upload from Nikon D200 is insanely SLOW
Ever since I upgraded to Yosemite, iPhoto has become terribly slow. The issue typically surfaces AFTER the pictures download and when iPhoto asks if it should delete the pictures on my camera. I say no. And then I see this "wheel of death" that keeps
-
Code to display stored multiple documents from KM into table.
Hi. I stored some documets(multiple documents) in KM those documents i have to display(multiple documents) inside table. Regards, mahesh
-
Hello, I am using SQL Server 2000 Driver for JDBC(Microsoft) to connect to a SQL 2000 server, but while I am trying to run the application I am getting "Error Establishing Socket". Hope somebody can help me in this case. Arun