Combobox for Find and RowsetIterate tag

Hi,
My first question is:
When using a custom data web bean, I recognized that the rowset fetched by getRowset() is not the same rowset that the original
datasource in the jsp page uses. Is this a normal behaviour? That creates a problem when for example I want to carry the navigation
capability into a data webbean, from with the rowset.scrollRange(10); is called.. But the datasource still is in the previous range.
The only work-around I could think is, passing the rowset from the page to the datawebbean, but then what is the use of a datawebbean?
Or simply do I forget to do smt? like stateful, stateless, refreshing...
Second one:
I am trying to form up a Find bar for a list of items, that I will place on top of list. When the find button is pressed, the where clause
of the data source will be setted. And I hope then the data source on that page will refresh the rowset and only the rows of that criteria will be
available. The content of the find inputs are to be reserved between requests. I want to use a combobox for some columns.(Like the ones of InputSelect tags)
And I want to:
[list]
[*]Fetch the content of those fields when the find button is pressed
[*]Reserve their state between page requests.
[list]
Is there a code that will let me to use the InputSelect tag for find column? (It might create a problem as the same column name is used
in the list) So I have chosen to use a simple "select html tag" and fill in with RowsetIterate tag..
-- When a RowsetIterate tag is used as:
<jbo:ApplicationModule configname="cqmappbuscomp.CqmappbuscompModule.CqmappbuscompModuleLocal" id="CqmappbuscompModule" username="ecqm" password="ecqmtest" />
<jbo:DataSource id="uv" appid="CqmappbuscompModule" viewobject="UsersView" rangesize="-1" ></jbo:DataSource>
<jbo:RefreshDataSource datasource="uv" />
<%
String subm = null;
if(vParams.contains("find_submitter"))
subm = request.getParameter("find_submitter");
%>
<select name="find_submitter">
<option value="" > </option>
<jbo:RowsetIterate datasource="uv" >
<option value="<jbo:ShowValue datasource="uv" dataitem="Id" ></jbo:ShowValue>"
<jbo:Row id="row2" datasource="uv" action="Current" ></jbo:Row>
<% if((subm!=null &#0124; &#0124; !subm.equals(""))&& subm.equals((String)row2.getAttribute("Id")))
out.print(" selected");
%>
<jbo:ShowValue datasource="uv" dataitem="Surname" ></jbo:ShowValue></option></jbo:RowsetIterate>
</select>
But I get a Application error:null. This also happens when I do uv.getRowSet().getCurrentRow().getAttribute("Id"). As if there is a
problem in getAttribute("Id") call. I am sure that Id field exists. Can't you mix the tags with a code fragment that tries to get the fields using the rowset of that data source?
I need the current ID value of the row of uv datasource to compare with the previous value, so that "select" will be added to make it seem
that state is reserved.
Thanx in advance..
Ferhat

Ok, one's best problem-solver is himself I think.. Nobody didn't have any idea?
For the ones that are having similar problems: The problem was; "Id" is fetched as oracle.jbo.domain.Number, and when I cast it to String it crashes. But shouldn't it be more explicitly told instead of Application error:null ??
Ferhat

Similar Messages

  • Bsp find and replace tag

    Hi,
    I want to know how to use find and replace tag of BSP.Actually my requirement is onchange of value in Input field i want to calculate somthing.Can any body help me.

    This looks pretty weird in coding ^^
    I would solve this issue with javascript only:
    function onLoad(){
         document.getElementById('myInputField').on'keyup = function(){startTimer();};
    var timer = null;
    function startT imer(){
       if(timer != null){
          window. clear'Timeout(timer);     
       timer = window. set'Timeout("timerTick()", 3000);
    function timerTick(){
       // calculate whatever you want
    When the user enters something in the myInputField a timer is startet. As soon as no key is hit for a minimum of 3 seconds, the calculation is done.
    I had to add the ' to the javascript functions because I get an error from the forum without...

  • What's the best approach/program for finding and eliminating duplicate photos on my hard drive?

    What's the best approach/program for finding and eliminating duplicate photos on my hard drive? I have a "somewhat" older version of iPhoto (5.0.4), and it doesn't seem to offer anything like that except during the importing phase of syncing my phone...

    I wonder, is there room to transfer them to your phone, & then back to filter them?

  • Using applescript for Find and Replace All in Pages 2.0

    i saw that Pages 2.0 is scriptable
    i try to create a script for merge use to find and replace all occurence of a certain string using a script but Pages doesn't seems to respond to "Find" even using "System Events"
    how can i do to use this function with a script
    Thanx for any help
    S.B.
    ibook G3   Mac OS X (10.4.6)  

    OK, here's another example. This one gets the text as a string and uses the offset property to find "[", presuming it to be a merge delimiter. (Pages' text doesn't support "offset of").
    One failing of this scheme is that the offsets are incorrect if you have inline objects (pictures, shapes, tables, etc.). While it is probably possible to compensate for them, that's a trickier proposition.
    <PRE>-- Example merge replacements:
    property mergeText : {"[name]", "John Smith", "[address]", "1234 Anystreet"}
    on lookup(mergeWord)
    set theCount to count of mergeText
    repeat with x from 1 to theCount by 2
    if item x of mergeText = mergeWord then
    return item (x + 1) of mergeText
    end if
    end repeat
    -- If merge field is not found, delete it (replace it with the empty string)
    return ""
    end lookup
    tell application "Pages"
    repeat
    tell body text of document 1
    -- Get text as a string so that "offset of" can be used.
    set allText to it as string
    set startOffset to offset of "[" in allText
    if (startOffset = 0) then
    exit repeat
    end if
    set endOffset to offset of "]" in allText
    select (text from character startOffset to character endOffset)
    end tell
    set mergeWord to contents of selection
    tell me to lookup(mergeWord)
    set replacement to result
    set selection to replacement
    if (replacement is "") then
    -- Get rid of extra whitespace (space or return)
    -- Do it in a "try" block to handle edge cases at start or end of text.
    try
    set theSel to (get selection)
    set ch1 to character before theSel
    set ch2 to character after theSel
    if ((ch1 is " " or ch1 is return) and (ch2 is " " or ch2 is return)) then
    select character after theSel
    delete selection
    end if
    end try
    end if
    end repeat
    end tell</PRE>
    Titanium PowerBook   Mac OS X (10.4.6)  

  • Program for find and replace a string in all the reports in a package

    Hello experts,
                        Is there any standard report or transaction provided by SAP which can be used to find a String in all the program in a package ? 
    As per my knowledge there is a program RPR_ABAP_SOURCE_SCAN which can search for a string in a package but this program doesnot support the replacement .
    Any clue in this regard will be helpful.
    Thanks
    Vivek

    Vevek, you are searching for something very very destructive.. do you realize that?
    its better if you could explain us the requirement, by the way for a automated change you need to have INSERT REPORT called inside some program, so start searching that line if you can get it
    else, write a piece of code for it..

  • Best solution for finding and eliminating duplicate files? 10.8.3

    Good morning.  I just upgraded to 10.8.3 (from, 10.6.8) and have many external hard drives with tons of duplicate photos, music and general documents.
    I've been looking into what the best way is to pull all this together and have it all backed up in one spot, with duplicate deleted.
    Probably around 3TB's of data spread over 5 external drives.
    Any suggestions on best way to achieve / softweare to use woiuld be greatly appreciated.
    Thanks

    Another option that is free is DupeGuru: http://www.hardcoded.net/dupeguru/
    I have not used these personally so I am not sure how effective they are, but they do have some positive reviews by others.

  • How do I find and backup only my most recent downloads?

    Does anyone have a better solution than mine for finding and backing-up only my most recent downloads? I'm trying to make my network backups and external hard drive backups faster, by only backing-up my incremental downloads, rather than all my music every time. I created an iTunes Music sub-folder called My Music:\2005, into which I download all new purchased music. I still add the entire My Music folder to my iTunes library, so I can play all of the files, but new downloads and CD's rip into the 2005 sub-folder. I can find my most recent files, and only back those up, as I know the other files in My Music have already been backed-up. Let me know if you have a simpler solution. Thanks.

    Thanks, Lawrence. Someone at work looked at my iTunes Preferences, I think it was, and verified that a backup had been done at 10:54AM today. (Personally, I've never looked to find a date/time stamp for this -- just took it for granted that it happened as expected!)
    Since I know now that the backup was done right before the phone froze on me, I 'risked' doing a Restore, which is taking most of half an hour. I'm pretty confident I will be up and running in a few minutes. If not, I'll be looking for a cocktail or two in a bit!
    PS: I did copy all my Photostream photos into a separate folder on iPhoto .... just in case they got wiped in the Restore. 

  • Possible bug in inDesign CS5 with find and change

    This could be a problem with my script or it may be a bug, not sure.
    The script is used for finding a double space in a fragment of text and changing it to single space.
    It works only once when it is executed.
    To make it work again you have to close and reopen inDesign.
    Here's the code:
    app.findTextPreferences.findWhat = "  ";
    app.changeTextPreferences.changeTo = " ";
    app.documents[0].changeText();

    This one worked, Harbs also works but I think I'll go the unicode grep route for find and change on this one.
    I like the use of the positive lookbehind GREP character. (?<=) 
    thank you

  • I accidentally deleted my iMovie off my mac, anyone know how to get it back because it came for free and is now 15 dollars to buy back??? pls help

    i accidentally deleted my iMovie off my mac, anyone know how to get it back because it came for free and is now 15 dollars to buy back??? pls help

    If you mean you accidentally removed the icon for iMovie from the Dock (the array of icons at the bottom of the window), you can add it back easily.
    Open the Applications folder (if you open it from the Dock you may then need to click the Open in Finder icon), locate the iMovie program.
    Drag the icon for iMovie down to the Dock, somewhere between the icon for Finder and the dashed line toward the right.
    Wait for the icons at that spot to move aside, then drop it in.

  • How can I find and remove viruses from my mac

    I fear that I might have a virus on my beloved macbook pro. i message was spassing out and not sending my messages, my folders continue to dissapear from my desktop causing me to restart finder (not a big deal just annoying) and some other out-of-place things are happening. I don't like credit cards so i can't buy any intvirus software so I was curious to know if there is a way to search for, find, and remove this potential virus on my own.

    Apple provides and updates malware protection as part of the operating system functionality. There is no application you need to run. In using Macs in the corporate world and privately over the last 20+ years, the only malware that got into a Mac came from a shared MS Word document. That was in 1994.
    Everytime that I chose to run a commercial or opensource anti-virus tool, a full sweep showed no infections.
    There may be other systemic issues with your Mac that are the root cause for what you describe. As a baseline, I would do the following:
    Run /Applications/Utilities/Disk Utility. On your boot disk, choose First Aid, and verify/repair permissions.
    Reboot your Mac. Immediately press and hold the shift key until a login screen appears. Enter your login name, your password, and before continuing, press and hold the shift key again, until your desktop reappears.
    Reboot normally.
    What effect do the above have on the problems you mentioned?

  • Find and delete duplicate photos on iPad

    App for finding and deleting duplicate photos on ipad

    Decloner will compare the files themselves, not just by name or size.
    For the latest version and faster updates, also to give the developer a extra 30%, choose the developers site version, simply hold control or option key to temporarily turn off Mountain Lion's annoying Gatekeeper to run the app.
    http://www.pixelespressoapps.com/decloner/

  • How to find and delete duplicate photos in iPhoto

    How do I fins and delete duplicate photos in iPhoto?

    There are two apps, actually one app and one Applescript script, for finding and removing duplicate photos from iPhoto. They are:
    Duplicate Annihilator
    iPhoto AppleScript to Remove Duplicates (free)
    HOWEVER, only try the above if you are seeing the duplicates in the iPhoto window.  If you are seeing duplicate images via the Finder then you probably do not have duplicates.  That's because at a minimum iPhoto will have two separate image files of each photo, the original and the thumbnail file. If the photo is a portrait oriented photo from a camera with the auto-rotate feature there will be a 3rd, modified image file in iPhoto, the rotated version.
    So be sure where you're seeing these duplicates.
    OT

  • Find and delete duplicates

    How can I both FIND and DELETE duplicate photos in iphoto

    There are two apps, actually one app and one Applescript script, for finding and removing duplicate photos from iPhoto. They are:
    Duplicate Annihilator
    iPhoto AppleScript to Remove Duplicates - free
    OT

  • How to find and replace any string between " "

    Hi everyone,
    Here my sample
    String szTest;
    szTest = "Yellow banana";
    szTest = "Blue monkey";
    szTest = "Red mango";
    szTest is only needed when it's in testing progress. Now I want to put all of that in the /*comment*/ so the released program won't run those code any more (but still keep szTest so I can use it for future develop testing).
    So Here what I want after using the Find and Replace Box:
    //String szTest; //Manual
    /*szTest = "Yellow banana";*/ //use find and replace
    /*szTest = "Blue monkey";*/ //use find and replace
    /*szTest = "Red mango";*/ //use find and replace
    I think I can do this with Regular expressions or Wildcards. But I don't know how to find and replace any string between " and ".
    Find: szTest = " ??Any string?? ";
    Replace with: /*szTest = " ??Any string?? ";*/
    Thanks for reading.

    Hi Nathan.j.Smith,
    Based on your issue, I suggest you can try the Joel's suggestion check your issue again. In addition, I find a MSDN document about how to use the Regex.Replace Method to match a regular expression pattern with a specified replacement string,
    maybe you will get some useful message.
    https://msdn.microsoft.com/en-us/library/xwewhkd1(v=vs.110).aspx
    If the above suggestion still could not provide you, could you please tell me what language you use to create the program for finding and replace any string using regular expression so that we will find the correct programming develop forum to support this
    issue?
    Best Regards,
    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.

  • How to make a script for find text object?

    Hi everyone
    I want to make a script for find and select text object and then find next, find next, and so on, but without any open dialog
    Is that possible make a script for this?
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = "(\[\x{2022}\])|(\x{25CF})";
    app.findGrep();
    thanks
    Regard

    You already have that. A script does not 'find, select, find next' - it finds all texts as soon as you execute the 'app.findGrep' command.

Maybe you are looking for

  • Return Free Items should copied into the invoice.

    Dear All, We  created a return sales order with two line items.First line item is REN and second line item is RENN item category type.When we created the sales order at that time RENN was not billing relevant.(in VOV7).I have  made the delivery and d

  • M3u playlists in to iTunes. ...is it possible?

    Is there a way to convert m3u playlists to iTunes playlists? I DJ with a program called Traktor. One feature I use is it's ability to export a "history" file as an iTunes playlist. This means I can keep a log in iTunes of what I've played on specific

  • PO oriented tax

    Hi,     I was working in PO.The tax is being calculated after giving the condition values. I need to change the value of a tax amount.after po creation..I dont know where is this value is stored.When i press F1,its showing that it is komp-mwsbp. but

  • Toshiba Bulletin Board warns about poor security

    Hi all. I've noticed this since I got my laptop (L500-1XL) that every few days a message comes up, then disappears but a red warning sign is left on the security section of the Bulletin Board, and if I hover the pointer over it, it says "poor". What

  • Finder now showing PCs

    Networked PCs are now showing up on finder automatically after installing Airport Express with Airtunes at work for my MacBook Pro, strictly for using airtunes. Why does PC showing up on finder finally working now? I'm happy but would like to know wh