LOV with IF else Condition

Hi All,
Item with LOV defined and i wnat to dispaly the lov based on :
for Ex
if :P1_item >=1
then
select ename d, ename r from emp;
else
select deptno d, deptno r from dept;
end if;
it is not working any idea?
I am getting error
ERR-1000 Unable to determine LOV from "declare function x return varchar2 is begin if :P1_from_value >=1

You need to have your LOV be based upon a function returning query..:Dynamic LOV - Function returning LOV query
Thank you,
Tony Miller
Webster, TX
Never Surrender Dreams!
JMS
If this question is answered, please mark the thread as closed and assign points where earned..

Similar Messages

  • Dynamic LOV with where conditions

    Hi all! I have a question regarding Dynamic LOVs. I have a List of values that can be used from three pages, the query is something like this:
    SELECT a.CODE CODE_DISPLAY,
    a.CODE CODE_RETURN
    FROM OREF_COUNTRIES a,
    OREF_REGIONS b
    WHERE a.REG_ID = b.ID AND
    b.CODE = :P336_LOV_REGION;
    The thing is I don't want to hardcode the name of the item ":P336_LOV_REGION" because this is the name of 1 item of one page, and I'd like to use this LOV from another two pages, so the name of the item won't be ":P336_LOV_REGION". How can I create a reusable dynamic LOV with a where condition depending on one item of the page?
    Thanks!!

    hi! anyone has any information about this?
    Daniela.

  • Procedure with out parameter in if-then-else condition

    Hi,
    I want to fetch the out parameter of a procedure inside another procedure that has if-then-else condition.
    <<Proc1_start>>
    if ..
    then <<proc2_>> --- with out parameter
    end if;
    <<proc1_end>>
    How to do this...
    Thanks.

    Ummm, the same way you would do it anywhere else?
    Declare variable in proc1 to hold the output of proc2 and then call proc2.
    John

  • IF - Else condition is not working properly in Bex Query Designer

    Hi All,
    I have a KF called KPI Value. Based on the KPI Value, my report display has to show by using the if-else condition.  If the KPI value is '999999' then that particular KPI value has to display as 'X' against to that KPI No. Thats all my requirement. To achieve this I have created a formula based on the KF.
    (KPI Value == 999999)*(1/0)+(KPI Value <> 999999)*(KPI Value)*1
    Unfortunately, the above expression is shwoing the entire colmn as 'X' irrespective of the KPI value. i.e., logic is not working Could any one please suggest how to achieve this requirement. Your assistance is highly appreciable and very helpful. Thank you in advance!!!
    Best Regards
    Venkat...

    AL,
    I can visualize how condition should give results. The problem here is reality, I tired in my system with your formula and I got like as I mentioned.
    If you observe closely your If..else formula, (KPI Value == 999999)*0+(KPI Value <> 999999)*KPI Value
    If KPI Value == 999999 Result is 0, Else(Assuming) KPI Value <> 999999 Result is other nos like 1111, 2222 etc.
    Actually it is not If..else, it is IF..ENDIF. Both conditions should get satisfied to give below:--
    KPI value  Formula
    9999          X
    1111         1111
    2222          2222
    9999          X
    3333          3333
    4444          4444
    9999           X
    In the course of adding both conditions results, system is not able to add 0+ Other Values in single column. So it is giving mixed values * like below:--
    KPI value  Formula
    9999          X
    1111           *
    2222           *
    9999          X
    3333           *
    4444           *
    9999           X
    Note: Once again I want to say it is not to prove you wrong. Let's get some clarity on the issue. I might be also wrong. But I want to know the actual result. If you can test it tomorrow and let me know..it would be great.
    Regards,
    Suman

  • RETURN Clause in IF...ELSE Condition in PL/SQL Block

    Hi
    Could you please explain me the importance of a RETURN Clause in IF..ELSE Condition in PL/SQL Block with
    an example.
    Regards
    Nakul.V

    Hi,
    RETURN clause permits get out of the block. For more information you can see [Using the RETURN Statement|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/subprograms.htm#sthref1683]
    SET SERVEROUTPUT ON
    BEGIN
        IF 1 = 1 THEN
            dbms_output.put_line('Before return');
            RETURN;
        ELSE
            dbms_output.put_line('Else');
        END IF;
        dbms_output.put_line('After if');
    END;
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
    Connected as hr
    SQL>
    SQL> BEGIN
      2      IF 1 = 1 THEN
      3          dbms_output.put_line('Before return');
      4          RETURN;
      5      ELSE
      6          dbms_output.put_line('Else');
      7      END IF;
      8      dbms_output.put_line('After if');
      9  END;
    10  /
    Before return
    PL/SQL procedure successfully completed
    SQL> Regards,
    Edited by: Walter Fernández on Dec 12, 2008 9:41 AM - Adding output
    Edited by: Walter Fernández on Dec 12, 2008 9:43 AM - Adding URL...

  • Using LOV with Validation on the Numeric Fields results in Error

    Dear JHeadstart Team,
    During my work with lov I encountered another problem. I defined a lov and attached the lov to a numeric field and check the LOV for validation. Now when I use LOV using the LOV button it works fine but when I enter some numbers and then press tab the LOV was not shown correctly and resulted in the following errors and the worst thing is that you can not navigate to any other pages and all try to navigate to other pages results in errors too. When we put the same LOV on a string field (which is not desirable for us) it worked fine.
    It seems to me like a bug. Am I right? Is ther any solution or workaround for this problem?
    Thanks in advance,
    Navid
    16:31:29 DEBUG (LovItemBean) -Cleared value of item HrTrainingCourseSchedulesTitle
    16:31:29 DEBUG (LovItemBean) -Cleared value binding #{bindings.HrTrainingCourseSchedulesTitle.inputValue} of item HrTrainingCourseSchedulesTitle
    16:31:29 ERROR (ApplyRequestValuesPhase) -java.lang.ClassCastException: java.lang.Long
    javax.faces.el.EvaluationException: java.lang.ClassCastException: java.lang.Long
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
         at oracle.adf.view.faces.component.UIXComponentBase.__broadcast(UIXComponentBase.java:1079)
         at oracle.adf.view.faces.component.UIXEditableValue.broadcast(UIXEditableValue.java:247)
         at oracle.adf.view.faces.component.UIXSelectInput.broadcast(UIXSelectInput.java:215)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:249)
         at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:307)
         at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at com.pooya.controller.jsf.PooyaAuthenticationFilter.doFilter(PooyaAuthenticationFilter.java:256)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ClassCastException: java.lang.Long
         at oracle.jheadstart.controller.jsf.bean.LovItemBean.validateWithLov(LovItemBean.java:101)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
         ... 31 more

    Hi Navid,
    We ran into the same bug and have the next workaround for it:
    We extended the JHeadstart class 'LovItemBean' and we have overridden the method 'validateWithLov(...)' with:
      public void validateWithLov(ValueChangeEvent valueChangeEvent)
        Object newValue = valueChangeEvent.getNewValue();
        if(newValue != null && !(newValue instanceof String))
          newValue = newValue.toString();
          ValueChangeEvent newEvent = new ValueChangeEvent(valueChangeEvent.getComponent(), valueChangeEvent.getOldValue(), newValue);
          newEvent.setPhaseId(valueChangeEvent.getPhaseId());
          super.validateWithLov(newEvent);
        else
          super.validateWithLov(valueChangeEvent);
      }Next step is to use a custom template in your JHeaedstart Application Structure file for 'LOV_ITEM_BEAN'. In this custom template you should use your own class as 'managed-bean-class' instead of the default JHeadstart one.
    Now you can safely generate LOV with validation of number fields.
    Maybe something the JHeadstart can pcik up in the next release of JHeadstart :-)
    Hope this helps.
    Pascal

  • Powershell Name Change with If else not working as expected

    The script we've written below executes the if statement correctly and changes the name properly though the else condition is not working properly.  The example data file we  use for input is shown below and it's name is namechanges.csv
    Test,User,User1,1111,2222,[email protected]
    Test,Smith,User2,2222,3333,[email protected]
    Test,Jones,User3,3333,4444,[email protected]
    Test,Doe,User4,4444,5555,[email protected]
    Test,Example,User5,5555,7777,[email protected]
    The script shown below changes the name in Active Directory, home directory, and Exchange to a unique username and new last name (eg. maiden name needs changed to married name)
    $ADRoot = [ADSI]''
    $ADSearch = New-Object System.DirectoryServices.DirectorySearcher($ADRoot)
    add-PSSnapIn -name Microsoft.Exchange.Management.PowerShell.Admin
    Import-module ActiveDirectory
    Get-Content C:\New_Account\namechanges.csv |
    ForEach {
        $Fname = ($_ -split ',')[0]
        $nLname = ($_ -split ',')[1]
        $lname = ($_ -split ',')[2]
        $NUM = ($_ -split ',')[3]
        $ID = ($_ -split ',')[4]
        $requestor = ($_ -split ',')[5]
     $Counter = 0
    $Emp = Get-aduser -Filter {(employeeID -eq $ID)-and (EmployeeNumber -eq $NUM)}
    $SamAccount = (get-aduser -Filter {employeeID -eq $ID }).SamAccountName
    $SamAccount
    $FNAME = (get-aduser -Filter {employeeID -eq $ID }).GivenName
    $FNAME
    $LNAME = (get-aduser -Filter {employeeID -eq $ID }).Surname
    $LNAME
    $UserPrincipalName = (get-aduser -Filter {employeeID -eq $ID }).UserPrincipalName
    $UserPrincipalName
    Start-Sleep 2
    Set-ADUser $SamAccount -surname $nlname -DisplayName $FNAME" "$nlname
    Start-Sleep 2
    if ($Emp -ne $null)
          $Counter = 1
       $Counter
          Do
         $F = $Fname.remove($Counter)
         $newusername = $F + $nLname
         $ADSearch.Filter = "(&(objectClass=user)(sAMAccountName=$newusername))"
         $Result = $ADSearch.FindAll()
         $t = $result.Count          
                   if ($t -lt 1)
          $FoundUniqueUserName = $True
             Else
          $Counter = $Counter + 1
          $FoundUniqueUserName = $False
       While ($FoundUniqueUserName -eq $False)  
       $newusername 
    Start-Sleep 2
    rename-adobject -identity ((get-aduser $Emp).ObjectGUID) -NewName "$Fname $nLname"
    Start-Sleep 2
    Rename-Item \\secret.com\share\home\$SamAccount $newusername
    Start-Sleep 2
    Set-ADUser $SamAccount -surname $nlname -DisplayName $Fname" "$nlname
    Start-Sleep 2
    $newUPN = $newusername + "@secret.com"
    Start-Sleep 2
    Set-ADUser $SamAccount -SamAccountName $newusername -UserPrincipalName $newUPN
    Start-Sleep 5
    $Mailbox = Get-Mailbox -Identity $SamAccount
    $SMTPAddress = $Mailbox.PrimarySmtpAddress
    $Domain = $SMTPAddress.Domain
    Start-Sleep 5
    $emailaddress = "$newusername@$Domain"
    Start-Sleep 5
    Set-Mailbox $SamAccount -EmailAddressPolicyEnabled:$False -PrimarySmtpAddress $emailaddress -Alias $newusername
    Start-Sleep 5
    Set-Mailbox $emailaddress -EmailAddressPolicyEnabled:$true
    Start-Sleep 5
         $smtpServer = "mail.secret.com"
         $msg = new-object Net.Mail.MailMessage
         $smtp = new-object Net.Mail.SmtpClient($smtpServer)
         $msg.From = "[email protected]"
         $msg.To.Add($requestor)
         $msg.subject = "A name change request for $FNAME $LNAME was succesfull"
         $msg.body = "A name change request for $FNAME $LNAME was succesfull"
         $smtp.Send($msg)  
    Start-Sleep 8
    Else
         $smtpServer = "mail.secret.com"
         $msg = new-object Net.Mail.MailMessage
         $smtp = new-object Net.Mail.SmtpClient($smtpServer)
         $msg.From = "[email protected]"
         $msg.To.Add($requestor)
         $msg.subject = "A Name change request was received but the script failed to make the change."
         $msg.body = "A name change request for $FNAME $LNAME was requested with the employee id and number of $ID and $NUM. The request was not succesfull"
         $smtp.Send($msg)   
    Out-File C:\New_Account\name_change_log.txt -InputObject "At $([datetime]::now) there was a name change request for $Fname $lname-$nLname with ID of $ID and number of $NUM." -Append
    Start-Sleep 5
    #Remove-Item C:\New_Account\namechanges.csv
    Else {
    "Something went wrong"
    Can someone take a look at the code and see where I went wrong with the else statement?  Let's say hypothetically Test Smith is a common name and already exists in Active Directory in the same OU we attempt to make the username unique however if that
    fails I would like to receive the email and  update the name change in some other way.

    Well the code you presented has two issues that I can see
    You have the following
    While ($FoundUniqueUserName -eq $False)
    $newusername
    Start-Sleep 2
    rename-adobject -identity ((get-aduser $Emp).ObjectGUID) -NewName "$Fname $nLname"
    Start-Sleep 2
    Rename-Item \\secret.com\share\home\$SamAccount $newusername
    Start-Sleep 2
    Set-ADUser $SamAccount -surname $nlname -DisplayName $Fname" "$nlname
    Start-Sleep 2
    $newUPN = $newusername + "@secret.com"
    Start-Sleep 2
    Set-ADUser $SamAccount -SamAccountName $newusername -UserPrincipalName $newUPN
    Start-Sleep 5
    $Mailbox = Get-Mailbox -Identity $SamAccount
    $SMTPAddress = $Mailbox.PrimarySmtpAddress
    $Domain = $SMTPAddress.Domain
    Start-Sleep 5
    $emailaddress = "$newusername@$Domain"
    Start-Sleep 5
    Set-Mailbox $SamAccount -EmailAddressPolicyEnabled:$False -PrimarySmtpAddress $emailaddress -Alias $newusername
    Start-Sleep 5
    Set-Mailbox $emailaddress -EmailAddressPolicyEnabled:$true
    Start-Sleep 5
    $smtpServer = "mail.secret.com"
    $msg = new-object Net.Mail.MailMessage
    $smtp = new-object Net.Mail.SmtpClient($smtpServer)
    $msg.From = "[email protected]"
    $msg.To.Add($requestor)
    $msg.subject = "A name change request for $FNAME $LNAME was succesfull"
    $msg.body = "A name change request for $FNAME $LNAME was succesfull"
    $smtp.Send($msg)
    Start-Sleep 8
    Which has no open and closing brackets for the while loop, then at the end of the script you have
    #Remove-Item C:\New_Account\namechanges.csv
    Else
    "Something went wrong"
    That else has no opening If statement.....I would fix these issues first, straighten your code out a bit and see if it works then, as the no opening and closing brackets on the While loop and the extra else statement, may be giving you some issues.
    If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.
    Don't Retire Technet

  • How to incorporate If Else condition for MDX

    Hi,
    I am creating a webi report from a universe built on Bex Query.
    Below are my queries:
    1) Can we drill on objects created at report level?
    2) I am having a dimension "Organizational Unit" which is a BW hierarchy having 6 levels (L1 to L5). Now, i want to modify the L2  
        level such as it buckets the values of it starting with "Corp" else show other values of it. So i am trying to modify the L2 level
        dimension at universe level. Please tell me how to incorporate the If Else MDX condition in it. (condition is as : =If(Left([L02 Organizational Unit];5)="Corp ") Then "Corporate" Else [L02 Organizational Unit])
    The version:
    BO XI 3.1 SP3
    SAP BW 7.1 Patch Level 16
    Pls advice <REMOVED_BY_MODERATOR>
    Regards,
    Akhil
    Edited by: Pravender on Dec 10, 2010 8:06 PM

    Thanks for the reply Oscar!!!
    I wan't to club some members (starting with Corp) into one bucket and name it as "Corporate" for one of the hierarchy. so i was putting a condition =If(Substr([L2 Level];1;4)="Corp";"Corporate";[L2 Level]).
    So how to use this condition at the universe level rater than using at report level because at universe level we need to provide MDX query for the same.
    Can you please let me know the syntax put the above condition in terms of MDX recognizable query.
    Hope you understood my point.
    Many thanks in advance!!!
    Regards,
    Akhil

  • I have to use count function  in "if-else" condition in rtf tempelate

    I have a nedd to use count fucntion in my rtf fucntion in IF-ELSE condition like this :
    if
    (count INVOICE_LEVEL from xml where (INVOICE_LEVEL=SM_SUMMARY_LEVEL)) =  (count coloumn_A from xml ) --- if the count matches
    THEN print "NO DATA FOUND"
    else --- if not
    end if ;
    --------XML------
    <COMP123>
       <SM_SUMMARY_LEVEL>2</SM_SUMMARY_LEVEL>
      <SM_CHARGE_HEAD>2</SM_CHARGE_HEAD>
      <INVOICE_LEVEL>2</INVOICE_LEVEL>
      <RCVR_ADDRS3_PART1>SG</RCVR_ADDRS3_PART1>
      <RCVR_ADDRS3_PART2>ASIA ,</RCVR_ADDRS3_PART2>
      <TXN_CSTMR_REF>ABC-DEF</TXN_CSTMR_REF>
      <TAX_ID>PCT-ID</TAX_ID>
      </COMP123>
    <COMP123>
       <SM_SUMMARY_LEVEL>2</SM_SUMMARY_LEVEL>
      <SM_CHARGE_HEAD>2</SM_CHARGE_HEAD>
      <INVOICE_LEVEL>2</INVOICE_LEVEL>
      <RCVR_ADDRS3_PART1>SG</RCVR_ADDRS3_PART1>
      <RCVR_ADDRS3_PART2>ASIA ,</RCVR_ADDRS3_PART2>
      <TXN_CSTMR_REF>ABC-DEF</TXN_CSTMR_REF>
      <TAX_ID>PCT-ID</TAX_ID>
      </COMP123>
    can any one help me to write the correct syntax and logic for this .
    THANKS!

    I am using the below way but it is not working as desired it is always printing the derived value.
    <?xdofx:if (xdofx:round((to_number(to_char(SYSDATE,'JSSSSS'))-to_number(to_char(to_date(DOB_DATE, 'YYYY-MM-DD'),'JSSSSS'))) div 100000)) <= 30 then '(1-30)' else '(1-100)' end if?>
    Let me know if i missed anything..
    Thanks,
    Jana

  • How to share my iPad screen with someone else who is not on my network?

    I'd like to share my iPad screen with someone else who has an iPad and is connected to the internet, but not on my WiFi. Is this possible? Any apps that do this?

    Sorry, you can't do that unless they are on your LAN.  I don't know of any apps that will let you do it.

  • LOV with FRM-41042: No such property for SET_ITEM_PROPERTY

    Hi all,
    I have a field (not a database item of the block ) of LOV object and a button next to it to trigger to the LOV list item.
    However, whenever, i click on the button, FRM-41042: No such property for SET_ITEM_PROPERTY will be prompted. Though the list item do appear and the item can be set into the field.
    Here is the procedure called by the when-button-pressed trigger of the button.
    PROCEDURE press_lov_btn IS
    v_lov_name           varchar2(30);
         v_sel                              boolean;
         l_target_item      varchar2(100);
    BEGIN
    l_target_item := NAME_IN ( 'SYSTEM.TRIGGER_BLOCK' ) || '.' ||
    GET_ITEM_PROPERTY ( NAME_IN ( 'SYSTEM.TRIGGER_ITEM' ), PREVIOUSITEM );
    IF l_target_item != NAME_IN ( 'SYSTEM.CURSOR_ITEM' ) THEN
    GO_ITEM ( l_target_item );
         v_lov_name := get_item_property ( l_target_item, lov_name );
    END IF;
         v_sel := show_lov ( v_lov_name );
    if not v_sel then
         raise form_trigger_failure;
    end if;
    END press_lov_btn;
    Any one know the error is due to the setting in the field or that in the button?????
    Thanks a lot.

    Your code to call a lov is a little complicated and errornous (as it depends on the item-ordering). The following code it a little easier (in my eyes). It depends just on naming-conventions, the button-name has to be 'BT_XXX' where XXX is the name of the item the lov is attached to.
    PROCEDURE PR_LOV IS
      vcItem VARCHAR2(61):=REPLACE(NAME_IN ('SYSTEM.TRIGGER_ITEM'), '.BT_', '.');
      itItem  ITEM;
    BEGIN
      itItem:=FIND_ITEM(vcItem);
      IF NOT ID_Null(itItem) THEN
        -- Navigate to the item
        GO_ITEM(vcItem);
        -- Show its lov
        DO_KEY('LIST_VALUES');
      ELSE
        message('invalid item ' || vcItem);
        RAISE FORM_TRIGGER_FAILURE;
      END IF;
    END;Hope this helps.

  • Got mixed up with someone else's account, please help!

    Alright guys, I'm sorry for the long post, but this is quite a complicated situation now and I haven't been able to get help anywhere else.  I talked to a Reddit user who happens to work for Best Buy Corporate, and he recommended asking one of the Community Connectors.  So here I am.
    Let me start with my original issue:
    Back when "Best Buy RewardZone" was still around, my mother had signed up for an account for my family to use. At the time, I wasn't yet 18 and therefore a parent had to sign up on my behalf. My mom never actually shops at the store, though... the only time she even goes there is if she's buying a gift for me or picking something up that I had put on hold.
    I'm now 23, meaning we've had this account for probably six years. Obviously RewardZone is now just called My Best Buy, but it's the same number, and we're still getting the bonus points.
    Up until about a year ago, the emails were still going to my mother's email, including the rewards certificate. I had created a free account for myself (not associated with any rewards account) in order to buy something back in 2007 or so (before we signed up for RewardZone), so I couldn't change her email address to mine - the system simply would not let me do that since my email already had an account.
    What I did in the meantime was just create a second email for myself and change her account's address to that. That way I was able to check it and get my reward certificates, and she wasn't bothered. But, the account was still in her name. Now that I'm older than 18, I should be able to get it in my name. We have the same last name - it's obvious that I'm not trying to scam the system or anything. I can understand if "Jane Doe" wanted to transfer an account to "John Smith" and the customer service rep wouldn't allow it because that's completely sketchy, but why can't two members of the same family shift around who actually owns the thing?
    Well, I noticed a few months ago that there was an option to link my account to a different My Best Buy number. So I put in my "mom's" ID, then logged into that account to confirm it. The result was basically two different logins that belonged to the same rewards account - however, the purchase history was still separate.
    So anyway, on December 30, my mom and I called the Best Buy customer service number. She explained the whole situation, and was told that they can't change the name on an account - only two letters. This seems a bit suspicious to me, because if they had typed in somebody's name wrong when they signed up, that person would basically be stuck with it forever...
    I explained that even though the account had my mother's name on it, I was the one who was making the purchases for the past couple years. I used my credit card or PayPal account, so they were all technically under my name. What the lady said I can do is create a new Member ID, and that somebody could transfer those purchases to my new ID, under my own name. She said that since I already had an account (which was now tied to my mother's ID), what she'd do is just delete my account and then I would sign up using that same email address, and this time not put in a member ID.
    I did that, and she said somebody would transfer the applicable purchases (basically all of them for the past year at least) to my "new" account.
    It's been almost 3 weeks now and so far, my account still has absolutely nothing in it. I do notice that purchases made with my account have been moved over to my mother's account... the completely opposite direction as I wanted.
    A more serious issue, however. I preordered the Meta Knight Amiibo figure (Best Buy exclusive) from the site back when it was still in stock. Obviously now it's completely sold out, because of the high demand. Because the order hasn't been fulfilled yet, it completely disappeared from both accounts. I still have my order confirmation email, with the order number, but cannot actually pull it up online to view the status.
    So I called back today and explained all of this. I was basically told "We can't transfer points, period. Whoever you talked to last time was wrong." Well that's great, now my account is completely empty, despite the hundreds of dollars of purchases I've made, because of someone's mistake? This needs to be fixed. The person I talked to today said he'd tie the Amiibo preorder back with my account "in 7-10 business days" as the other person said. I have to hope this guy is actually telling the truth this time.
    But what can I do to fix this problem?
    This was my situation a month ago. 
    Luckily the Meta Knight has arrived just fine, and I did get the emails updating the status for me.
    I since then contacted customer support via the website, and got an offer to merge the two accounts in my name.  But here's the thing... they combined the wrong account! I'm not sure why they thought the other account belongs to me, but all of the purchases were made at stores in Ohio, and I'm not from there. The address on file is somewher eI've never been. It's clearly someone else's account.  Oh, and my Gamer's Club Unlocked has completely vanished as well, which I was told wouldn't happen.
    So basically right now, when I log in with my email address, I get somebody else's member ID, somebody who happens to have an Elite Plus membership - but no Gamer's Club Unlocked.  I've made a couple purchases in-store, but I need some help fixing this problem as soon as possible.
    The only purchase I *know* was made with the older account (the member ID that was auto-created when the My Best Buy program was launched, probably?) is that Meta Knight order, and I still have all the emails with the order number if somebody can look it up and find what My Best Buy ID it was tied to.  I also have the second member ID, the one I created while on the phone with customer service - and the current (WRONG) one.
    You see how this is just one massive problem?  I want to solve one thing at a time, though.  If one of the Community Connectors is able to move accounts and memberships around, please let me know and I'll shoot you a private message with details.  My first priority is simply getting that Gamer's Club Unlocked membership back as I did pay for it and want to buy some more video games, but I've been holding off since I haven't been getting that discount.  I can worry about getting the stuff moved over from the account in my mother's name after that.
    Thanks

    Hi drfsupercenter,
    Thank you for taking the time to sign up for the forum and connect with us. 
    After reading over your post, I can definitely see how everything involved may seem complicated; however, I am confident that I can get everything straightened out for you.  There is no reason why you should have to call into us over and over again or wait week after week for a resolution.  The terms of the My Best Buy program are pretty direct, so I believe any level of frustration could have been avoided.
    A My Best Buy account (formerly Reward Zone) is intended to be used by a single member, and a member is not to share their account, benefits, points, or certificates with anyone else.  If the account was in your mother's name, then it should have only been actively used by her.  When it comes to merging multiple accounts the name on each account must be the same.  While there are occasions where we can change/alter the name on an account, we cannot completely change a name.
    I looked over your account history using the email address you registered with the forum and see that two accounts were merged a few weeks ago.  If any purchases you did not make were somehow merged with your primary account, then I should be able to remove them.  I would also suggest that we make sure the information associated with your account is up-to-date.  You do have an active Unlocked membership, so we may just want to have you relink your accounts (My Best Buy and BestBuy.com).
    I want to apologize for any inconvenience you have experienced, and I would like to gather some additional information and go over your My Best Buy account with you, so I will be sending you a private message.  To check your private messages, you will want to login to the forum and click on the little yellow envelope icon located at the top of the page.  I look forward to further speaking with you to see what I can do to help.
    How to Link a My Best Buy™ membership to your BestBuy.com Account
    I hope you enjoy the rest of your day.
    Derek|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Can I share my iCloud Photostream with someone else with a different Apple ID? How?

    Can I share my iCloud Photostream with someone else with a different Apple ID? How?

    Yeah no kidding.
    I have a big paid up MobileMe account with tons of gallery stuff - this will all go away for me in July, and I'll miss it - it took no learning to use, and it was built into everything - just intuitive to post to a gallery password protect it, and send a link to a friend.  Click click done!
    It bothers me a lot when features I really enjoy and use are pulled in these half baked new apps and services.
    iMovie used to be quite good, but the new one is very restrictive - it's a step backwards in some ways.
    MobileMe was fine, but iCloud takes away the Gallery???? - another step backward.
    We use some iPhones at work for shooting some videos and technical engineering photo's, and while it's pretty cool that the iPhone photo's get put on the photostream of "Jason's iMac", I don't have instant access, and I would really like to be able to do that. If it could be done, then I can stay at home and work sometimes and I can get the photo's automagically.  
    Apple - please fix this.

  • I bought this MAC from a family member. Did everything need to change items to my apple id. Today I did the update for IOS Yosemite now the app store is auto filling with someone else id?? But they seem to be my apps??

    I bought this MAC from a family member. Did everything need to change items to my apple id. Today I did the update for IOS Yosemite now the app store is auto filling with someone else id?? But they seem to be my apps??

    If you didn’t erase the drive and install using you AppleID, then the OS and the purchased apps are still registered to the other AppleID. You cannot change that by logging into iCloud. Apps are forever tied to the AppleID used to purchase/download them.
    You have to erase the drive and download/install the Apps using your AppleID.

  • Got prob with if else

    Hi, i'm a newbie to java and while i'm studying it, i got one problem with the code. Can you help me please because i don't know how to interpret correctly. I just know that when i excute and run it, then enter any number larger than 200, it still gimme the same result which is "you are ok". Here is the code:
    public class IQ
    public static void main(String[] args) throws Exception
    int iq;
    System.out.println("Enter your IQ number: ");
    iq = (int)System.in.read();
    if (iq > 200)
    System.out.println("Abnormal");
    else
    System.out.println("you are ok");
    }

    Looks like a troll (there is no problem with if/else).
    But if it's not a troll (and for the benefit of other n00bs).
    The OP had int iq = (int)System.in.read();We look up the System class and find it containspublic static final java.io.Inputstream in;so we look up the InputStream class and see that int read() reads a single byte and returns it (or -1 for EOF). [Also int read(byte[]) returns bytes in the array passed.]
    Maybe it's worth noting that the ascii values for '0' thru '9' is 48 thru 57.
    If the user attempts to enter <1><0><7><Enter> then read() returns the ascii value for '1' which is 49 and the rest of the user input is discarded.
    Now to the post made by PhHein.
    BufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));
    int iq = Integer.parseInt(keyboard.readLine());We look up the InputStreamReader class and find that it converts byte[] to char[] (not strictly true, but that explanation will have to suffice in this context).
    We look up the BufferedReader class and find that readLine() very handily reads until it encounters a line terminator (user pressed enter), and returns the input as a String.
    We look up the Integer class and find that parseInt() gets the numeric value of a number stored in a String.
    If the user enters <1><0><7><Enter> then readLine() returns a String containing "107" and parseInt() returns 107. Neat, eh.

Maybe you are looking for